Borderou de evaluare (job #697294)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Bravo, ai şir! (Clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 18 feb. 2023 20:46:12 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:28: error: size '4000000020' of array 'cnt' exceeds maximum object size '2147483647'
9 | int P, M, n, a[N], ans[N], cnt[L], mx[L];
| ^~~
main.cpp:9:36: error: size '4000000020' of array 'mx' exceeds maximum object size '2147483647'
9 | int P, M, n, a[N], ans[N], cnt[L], mx[L];
| ^~
main.cpp: In function 'void solve_query_1()':
main.cpp:20:18: error: 'mx' was not declared in this scope; did you mean 'x'?
20 | cout << (mx[x] == x ? 1 : 0) << '\n';
| ^~
| x
main.cpp: In function 'void solve_query_2()':
main.cpp:28:13: error: 'mx' was not declared in this scope; did you mean 'x'?
28 | if (mx[x] != x) {
| ^~
| x
main.cpp:36:32: error: 'mx' was not declared in this scope; did you mean 'x'?
36 | if (used[j] && mx[j] > cur_mx) {
| ^~
| x
main.cpp: In function 'int main()':
main.cpp:57:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
57 | cnt[a[i]]++;
| ^~~
| int
main.cpp:58:9: error: 'mx' was not declared in this scope
58 | mx[a[i]] = a[i];
| ^~
main.cpp:64:21: error: 'cnt' was not declared in this scope; did you mean 'int'?
64 | if (cnt[j] > 0) {
| ^~~
| int
main.cpp:65:21: error: 'mx' was not declared in this scope
65 | mx[i] = max(mx[i], j);
| ^~