Borderou de evaluare (job #3170099)

Utilizator xxUnrealUxxNiculae Adrian-Ioan xxUnrealUxx Data 16 noiembrie 2023 19:57:28
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int go_up(int, int)': main.cpp:11:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 11 | for(int i = 16; i>=0; i--) | ^~~ main.cpp:17:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 17 | return nod; | ^~~~~~ main.cpp: In function 'int main()': main.cpp:34:12: error: 'n' was not declared in this scope 34 | cin >> n >> m; | ^ main.cpp:34:17: error: 'm' was not declared in this scope; did you mean 'tm'? 34 | cin >> n >> m; | ^ | tm main.cpp:65:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 65 | for(int i = 16; i>=0; i--) | ^~~ main.cpp:71:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 71 | cout << rmq[0][x] << '\n'; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?