Borderou de evaluare (job #2967407)

Utilizator Zamolxis25Sebastian Gradinaru Zamolxis25 Data 19 ianuarie 2023 16:25:30
Problema Paduri de multimi disjuncte Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:35:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 35 | for(int i = 1; i <= queries; i++) | ^~~ main.cpp:37:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 37 | fin >> op >> x >> y; | ^~~ main.cpp:36:13: warning: unused variable 'op' [-Wunused-variable] 36 | int op, x, y; | ^~ main.cpp:36:17: warning: unused variable 'x' [-Wunused-variable] 36 | int op, x, y; | ^ main.cpp:36:20: warning: unused variable 'y' [-Wunused-variable] 36 | int op, x, y; | ^ main.cpp:37:16: error: 'op' was not declared in this scope 37 | fin >> op >> x >> y; | ^~ main.cpp:37:22: error: 'x' was not declared in this scope 37 | fin >> op >> x >> y; | ^ main.cpp:37:27: error: 'y' was not declared in this scope 37 | fin >> op >> x >> y; | ^ main.cpp: At global scope: main.cpp:44:5: error: 'fin' does not name a type 44 | fin.close(); | ^~~ main.cpp:45:5: error: 'fout' does not name a type 45 | fout.close(); | ^~~~ main.cpp:46:1: error: expected declaration before '}' token 46 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?