Borderou de evaluare (job #710080)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Elementul Majoritar (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 mar. 2023 21:35:54 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:11: error: size of array 'v' exceeds maximum object size '2147483647'
9 | long long v[1000000000] = {};
| ^
main.cpp:15:13: error: 'v' was not declared in this scope
15 | v[a]++;
| ^
main.cpp:25:9: error: 'v' was not declared in this scope
25 | if (v[i] >= n/2+1){
| ^
main.cpp:33:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
33 | if (ok==0)
| ^~
main.cpp:35:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
35 | return 0;
| ^~~~~~