Borderou de evaluare (job #630312)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Increment & Max | Compilator | cpp-32 |
Rundă | 4feb2022_vs9 | Status | evaluat |
Dată | 4 feb. 2022 20:34:59 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:15: error: expected initializer before 'n'
8 | int a[100003] n, q;
| ^
main.cpp: In function 'int main()':
main.cpp:14:12: error: 'n' was not declared in this scope
14 | fin >> n >> q;
| ^
main.cpp:14:17: error: 'q' was not declared in this scope
14 | fin >> n >> q;
| ^
main.cpp:16:9: error: 'a' was not declared in this scope
16 | a[i] = 0;
| ^
main.cpp:24:13: error: 'a' was not declared in this scope
24 | a[poz] = a[poz] + pl;
| ^
main.cpp:30:21: error: 'a' was not declared in this scope
30 | if (a[i] > maxx) maxx = a[i];
| ^
main.cpp:32:17: error: 'a' was not declared in this scope
32 | a[i] = maxx;
| ^
main.cpp:37:17: error: 'a' was not declared in this scope
37 | fout << a[i] << " ";
| ^