F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_37677283_18513.cpp:6:1: error: 'll' does not name a type
 ll exgcd(ll a, ll b, ll &x, ll &y) {
 ^
0_0_37677283_18513.cpp: In function 'int main()':
0_0_37677283_18513.cpp:18:2: error: 'ios' has not been declared
  ios::sync_with_stdio(false);
  ^
0_0_37677283_18513.cpp:21:2: error: 'll' was not declared in this scope
  ll m = n[1] * n[2] * n[3];
  ^
0_0_37677283_18513.cpp:23:9: error: 'cin' was not declared in this scope
  while (cin >> a[1] >> a[2] >> a[3] >> d) {
         ^
0_0_37677283_18513.cpp:26:6: error: expected ';' before 'ans'
   ll ans = 0;
      ^
0_0_37677283_18513.cpp:28:7: error: expected ';' before 'w'
    ll w = m / n[i];
       ^
0_0_37677283_18513.cpp:29:7: error: expected ';' before 'x'
    ll x = 0, y = 0;
       ^
0_0_37677283_18513.cpp:30:10: error: 'w' was not declared in this scope
    exgcd(w, n[i], x, y);
          ^
0_0_37677283_18513.cpp:30:19: error: 'x' was not declared in this scope
    exgcd(w, n[i], x, y);
                   ^
0_0_37677283_18513.cpp:30:22: error: 'y' was not declared in this scope
    exgcd(w, n[i], x, y);
                      ^
0_0_37677283_18513.cpp:30:23: error: 'exgcd' was not declared in this scope
    exgcd(w, n[i], x, y);
                       ^
0_0_37677283_18513.cpp:32:4: error: 'ans' was not declared in this scope
    ans = (ans + a[i] * w * x) % m;
    ^
0_0_37677283_18513.cpp:32:33: error: 'm' was not declared in this scope
    ans = (ans + a[i] * w * x) % m;
                                 ^
0_0_37677283_18513.cpp:34:10: error: 'ans' was not declared in this scope
   while (ans <= d)
          ^
0_0_37677283_18513.cpp:35:11: error: 'm' was not declared in this scope
    ans += m;
           ^
0_0_37677283_18513.cpp:39:73: error: 'ans' was not declared in this scope
   printf("Case %d: the next triple peak occurs in %lld days.\n", ++cnt, ans - d);
                                                                         ^
0_0_37677283_18513.cpp:39:80: error: 'printf' was not declared in this scope
   printf("Case %d: the next triple peak occurs in %lld days.\n", ++cnt, ans - d);
                                                                                ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-02 13:07:01, Gzip enabled