Borderou de evaluare (job #3338385)

Utilizator kojoCojocaru Aurelian kojo Data 2 februarie 2026 21:56:01
Problema Jocul Flip Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'long int suma_neg(int, int)': main.cpp:42:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 42 | for(int i=1;i<=n;i++) | ^~~ main.cpp:46:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 46 | if(a[x][y]<0) | ^~ main.cpp: In function 'void maneta(int, int)': main.cpp:58:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 58 | for(int i=1;i<=n;i++) | ^~~ main.cpp:61:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 61 | a[x][y]*=-1; | ^ main.cpp: At global scope: main.cpp:64:1: error: '::main' must return 'int' 64 | void main() | ^~~~ main.cpp: In function 'int main()': main.cpp:75:5: error: 'i' was not declared in this scope 75 | for(i=1;i<=n;i++) | ^ Non zero exit status: 1

Ceva nu functioneaza?