Borderou de evaluare (job #638196)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cartofi (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 4 mar. 2022 16:39:32 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'std::pair<int, int> fibo(long long int)':
main.cpp:10:23: error: expected ')' before 'll'
10 | auto p = fibo(n >> 1 ll);
| ~ ^~~
| )
main.cpp: In function 'void solve1()':
main.cpp:41:28: error: expected ')' before 'll'
41 | long long ct = 0, ax = (1 ll * n * m) / 60 ll, ap = (1 ll * n * m) % 60 ll;
| ~ ^~~
| )
main.cpp:45:13: error: 'ap' was not declared in this scope; did you mean 'a'?
45 | if (i < ap) rez += !b;
| ^~
| a
main.cpp:50:11: error: expected ';' before 'll'
50 | rez += 1 ll * ax * ct;
| ^~~
| ;
main.cpp:41:21: warning: unused variable 'ax' [-Wunused-variable]
41 | long long ct = 0, ax = (1 ll * n * m) / 60 ll, ap = (1 ll * n * m) % 60 ll;
| ^~
main.cpp: In function 'void build()':
main.cpp:86:16: error: expected ';' before 'll'
86 | cols[i] = 1 ll * cols[i] * ct + aux[i], cols[i] += cols[i - 1];
| ^~~
| ;
main.cpp:73:44: warning: unused variable 'ct' [-Wunused-variable]
73 | long long aux[61], prv = 0, md = n % 60, ct = n / 60, ind;
| ^~
main.cpp: In function 'long long int query(int)':
main.cpp:90:21: error: expected ',' or ';' before 'll'
90 | long long rez = 1 ll * (poz / 60) * cols[60];
| ^~