Borderou de evaluare (job #726848)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Elementul Majoritar (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 19 iul. 2023 01:16:53 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:5: error: size '4000000000' of array 'v' exceeds maximum object size '2147483647'
9 | int v[1000000000];
| ^
main.cpp: In function 'int main()':
main.cpp:18:17: error: 'v' was not declared in this scope
18 | v[a]++;
| ^
main.cpp:23:20: error: 'v' was not declared in this scope
23 | if(v[i]>=(n/2)+1){
| ^