Borderou de evaluare (job #804299)

Utilizator avatar DeakDarius HackerPrime DeakDarius IP ascuns
Problemă Analiza (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 13 ian. 2025 14:14:30 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool VerifPal(int)': main.cpp:12:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 12 | if(ogl == n) | ^~ main.cpp:14:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 14 | return false; | ^~~~~~ main.cpp: In function 'int main()': main.cpp:49:9: error: 'sort' was not declared in this scope; did you mean 'short'? 49 | sort(v2.begin(),v2.end() , greater<int>()); | ^~~~ | short main.cpp:20:40: warning: unused variable 'mx1' [-Wunused-variable] 20 | int n , x , c , lmax = -1 , l = 0 , mx1 = -1 , mx2 = -1 , e2 ; | ^~~ main.cpp:20:53: warning: unused variable 'mx2' [-Wunused-variable] 20 | int n , x , c , lmax = -1 , l = 0 , mx1 = -1 , mx2 = -1 , e2 ; | ^~~ main.cpp:20:64: warning: unused variable 'e2' [-Wunused-variable] 20 | int n , x , c , lmax = -1 , l = 0 , mx1 = -1 , mx2 = -1 , e2 ; | ^~