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);
^
|