Borderou de evaluare (job #701789)

Utilizator avatar vladnicu Vlad Nicu vladnicu IP ascuns
Problemă Secv5 (clasa a 9-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 6 mar. 2023 16:55:51 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:14: error: size of array 'a' exceeds maximum object size '2147483647' 8 | unsigned int a[MAX_N + 1]; | ^ main.cpp:9:14: error: size of array 'val' exceeds maximum object size '2147483647' 9 | unsigned int val[MAX_N + 1], fr[MAX_N + 1], urm[MAX_N + 1], lst[M], nr; | ^~~ main.cpp:9:30: error: size of array 'fr' exceeds maximum object size '2147483647' 9 | unsigned int val[MAX_N + 1], fr[MAX_N + 1], urm[MAX_N + 1], lst[M], nr; | ^~ main.cpp:9:45: error: size of array 'urm' exceeds maximum object size '2147483647' 9 | unsigned int val[MAX_N + 1], fr[MAX_N + 1], urm[MAX_N + 1], lst[M], nr; | ^~~ main.cpp: In function 'long long unsigned int exista(long long unsigned int)': main.cpp:16:18: error: 'val' was not declared in this scope 16 | if (x == val[p]) { | ^~~ main.cpp:19:13: error: 'urm' was not declared in this scope 19 | p = urm[p]; | ^~~ main.cpp: In function 'long long unsigned int adauga(long long unsigned int)': main.cpp:27:9: error: 'fr' was not declared in this scope; did you mean 'nr'? 27 | fr[p]++; | ^~ | nr main.cpp:31:5: error: 'val' was not declared in this scope 31 | val[++nr] = x; | ^~~ main.cpp:32:5: error: 'fr' was not declared in this scope; did you mean 'nr'? 32 | fr[nr] = 1; | ^~ | nr main.cpp:33:5: error: 'urm' was not declared in this scope 33 | urm[nr] = lst[c]; | ^~~ main.cpp: In function 'long long unsigned int sterge(long long unsigned int)': main.cpp:40:5: error: 'fr' was not declared in this scope; did you mean 'nr'? 40 | fr[p]--; | ^~ | nr main.cpp: In function 'long long int Count(long long int)': main.cpp:45:23: warning: comparison of integer expressions of different signedness: 'long long int' and 'long long unsigned int' [-Wsign-compare] 45 | for (int i = 1; i <= n; i++) { | ~~^~~~ main.cpp:46:9: error: 'fr' was not declared in this scope; did you mean 'nr'? 46 | fr[i] = 0; | ^~ | nr main.cpp:54:23: warning: comparison of integer expressions of different signedness: 'long long int' and 'long long unsigned int' [-Wsign-compare] 54 | for (int i = 1; i <= n; i++) { | ~~^~~~