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