Borderou de evaluare (job #818059)

Utilizator avatar bogdanoancea68 Bogdan Marius bogdanoancea68 IP ascuns
Problemă Ocr (clasa a 7-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 3 apr. 2025 19:40:04 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:59:55: error: expected primary-expression at end of input 59 | if(diff < minDiffRow || (diff == minDiffRow && | ^ main.cpp:59:55: error: expected ')' at end of input 59 | if(diff < minDiffRow || (diff == minDiffRow && | ~ ^ | ) main.cpp:59:55: error: expected ')' at end of input 59 | if(diff < minDiffRow || (diff == minDiffRow && | ~ ^ | ) main.cpp:59:55: error: expected statement at end of input main.cpp:59:55: error: expected '}' at end of input main.cpp:54:33: note: to match this '{' 54 | for (int i = 1; i <= n; i++){ | ^ main.cpp:59:55: error: expected '}' at end of input 59 | if(diff < minDiffRow || (diff == minDiffRow && | ^ main.cpp:5:11: note: to match this '{' 5 | int main(){ | ^ main.cpp:53:9: warning: unused variable 'bestRow' [-Wunused-variable] 53 | int bestRow = 1; | ^~~~~~~ main.cpp:7:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 7 | freopen("ocr.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp:8:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | freopen("ocr.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~