Borderou de evaluare (job #604003)

Utilizator avatar ghitacz Ghita Cezar ghitacz IP ascuns
Problemă Maxim (clasa 7-8) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 17 aug. 2021 12:55:43 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:20: error: size of array 'v' exceeds maximum object size '2147483647' 9 | long long a, b, c, v[1000000005], i, nr, y[1000000005], k; | ^ main.cpp:9:42: error: size of array 'y' exceeds maximum object size '2147483647' 9 | long long a, b, c, v[1000000005], i, nr, y[1000000005], k; | ^ main.cpp: In function 'int main()': main.cpp:19:13: error: 'v' was not declared in this scope 19 | v[++nr]=i/10000; | ^ main.cpp:21:13: error: 'v' was not declared in this scope 21 | v[++nr]=(i/1000)%10; | ^ main.cpp:23:13: error: 'v' was not declared in this scope 23 | v[++nr]=(i/100)%10; | ^ main.cpp:25:13: error: 'v' was not declared in this scope 25 | v[++nr]=(i/10)%10; | ^ main.cpp:24:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 24 | if (i>9) | ^~ main.cpp:26:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 26 | v[++nr]=i%10; | ^ main.cpp:26:13: error: 'v' was not declared in this scope main.cpp:30:31: error: 'v' was not declared in this scope 30 | while (!s.empty() && v[i]>s.top()&&c>0) | ^ main.cpp:35:16: error: 'v' was not declared in this scope 35 | s.push(v[i]); | ^ main.cpp:39:9: error: 'y' was not declared in this scope 39 | y[++k]=s.top(); | ^ main.cpp:42:18: error: 'y' was not declared in this scope 42 | g << y[i]; | ^