Borderou de evaluare (job #801474)

Utilizator avatar m4teioana Ioana Matei m4teioana IP ascuns
Problemă Elementul Majoritar (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 29 dec. 2024 12:31:07 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:8:18: error: size '2400000000' of array 'v' exceeds maximum object size '2147483647' 8 | long long n,cnt,v[300000000],z; | ^ main.cpp:12:10: error: 'v' was not declared in this scope 12 | fin>>v[i]; | ^ main.cpp:21:12: error: 'v' was not declared in this scope 21 | if(v[i]==v[z]) | ^ main.cpp:28:12: error: 'v' was not declared in this scope 28 | fout<<v[i]<<" "<<cnt; | ^