Borderou de evaluare (job #726849)

Utilizator avatar Anghel_Leon Leon-Eugen Anghel Anghel_Leon IP ascuns
Problemă Elementul Majoritar (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 19 iul. 2023 01:23:00 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:11:19: error: size '4000000000' of array 'v' exceeds maximum object size '2147483647' 11 | int n,i,a,v[1000000000]; | ^ main.cpp:15:17: error: 'v' was not declared in this scope 15 | v[i]==0; | ^ main.cpp:21:17: error: 'v' was not declared in this scope 21 | v[a]++; | ^ main.cpp:26:20: error: 'v' was not declared in this scope 26 | if(v[i]>=(n/2)+1){ | ^