Borderou de evaluare (job #632013)

Utilizator avatar robert_dumitru Dumitru Robert Ionut robert_dumitru IP ascuns
Problemă Maximumsum Compilator cpp-32
Rundă 11feb2022_vs9 Status evaluat
Dată 11 feb. 2022 19:49:56 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void suma()': main.cpp:14:17: error: ordered comparison of pointer with integer zero ('void (*)()' and 'int') 14 | if(suma < 0) | ~~~~~^~~ main.cpp: In function 'int main()': main.cpp:25:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 25 | for(i = 1; i <= n; i++) | ^~~ main.cpp:31:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 31 | for(p = 1; p < n; p++) | ^~~