Borderou de evaluare (job #3175016)

Utilizator fortyforBroscoi Mihai fortyfor Data 25 noiembrie 2023 11:31:47
Problema Numarare triunghiuri Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:7:5: error: 'fin' was not declared in this scope 7 | fin >> n; | ^~~ main.cpp:15:28: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 15 | for (unsigned int i=0;i<n-2;i++) | ~^~~~ main.cpp:17:34: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 17 | for (unsigned int j=i+1;j<n-1;j++) | ~^~~~ main.cpp:21:30: error: expected ';' before 'if' 21 | probe=(l+r)/2 | ^ | ; 22 | if (target<=Stix[probe]) { | ~~ main.cpp:29:19: error: 'else' without a previous 'if' 29 | } else { | ^~~~ main.cpp:38:5: error: 'fout' was not declared in this scope 38 | fout << s; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?