Borderou de evaluare (job #665506)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Căutare binară | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 1 oct. 2022 10:12:22 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:11: error: variable 'std::ifstream f' has initializer but incomplete type
8 | ifstream f("cautbin.in");
| ^
main.cpp:9:11: error: variable 'std::ofstream g' has initializer but incomplete type
9 | ofstream g("cautbin.out");
| ^
main.cpp: In function 'int caut2(int)':
main.cpp:59:1: warning: no return statement in function returning non-void [-Wreturn-type]
59 | }
| ^
main.cpp: In function 'int main()':
main.cpp:78:19: error: expected ':' before ';' token
78 | case 0;
| ^
| :
main.cpp:80:19: error: expected ':' before ';' token
80 | case 1;
| ^
| :
main.cpp:82:19: error: expected ':' before ';' token
82 | case 2;
| ^
| :