Borderou de evaluare (job #611432)

Utilizator avatar kylobit Mocanu Bogdan kylobit IP ascuns
Problemă Tdrept (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 20 oct. 2021 12:15:41 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:7:5: error: expected ',' or ';' before 'ofstream' 7 | ofstream cout("tdrept.out") | ^~~~~~~~ main.cpp:9:12: error: 'n' was not declared in this scope; did you mean 'yn'? 9 | cin >> n; | ^ | yn main.cpp:13:16: error: 'xuri' was not declared in this scope 13 | cin >> xuri[i] >> yuri[i]; | ^~~~ main.cpp:13:27: error: 'yuri' was not declared in this scope 13 | cin >> xuri[i] >> yuri[i]; | ^~~~ main.cpp:21:16: error: 'xuri' was not declared in this scope 21 | if(xuri[j]==xuri[i]) {gasit++; break;} | ^~~~ main.cpp:21:35: error: 'gasit' was not declared in this scope 21 | if(xuri[j]==xuri[i]) {gasit++; break;} | ^~~~~ main.cpp:24:16: error: 'yuri' was not declared in this scope 24 | if(yuri[i]==yuri[k]){gasit++; break;} | ^~~~ main.cpp:24:34: error: 'gasit' was not declared in this scope 24 | if(yuri[i]==yuri[k]){gasit++; break;} | ^~~~~ main.cpp:26:12: error: 'gasit' was not declared in this scope 26 | if(gasit>=2) raspuns=gasit/4; | ^~~~~ main.cpp:26:22: error: 'raspuns' was not declared in this scope 26 | if(gasit>=2) raspuns=gasit/4; | ^~~~~~~ main.cpp:28:39: error: 'raspuns' was not declared in this scope 28 | cout << "triunghiuri gasite= " << raspuns+1; | ^~~~~~~ main.cpp:16:9: warning: unused variable 'copyi' [-Wunused-variable] 16 | int copyi=i; | ^~~~~ main.cpp:18:9: warning: unused variable 'copyk' [-Wunused-variable] 18 | int copyk=k; | ^~~~~