Borderou de evaluare (job #617795)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Căutare binară | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 nov. 2021 13:34:00 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int bsearch1(int, int, int)':
main.cpp:26:12: warning: unused variable 'n' [-Wunused-variable]
26 | int m, n = u;
| ^
main.cpp: In function 'int main()':
main.cpp:62:5: error: 'ifstream' was not declared in this scope
62 | ifstream("cautbin.in","r",stdin);
| ^~~~~~~~
main.cpp:63:5: error: 'ofstream' was not declared in this scope
63 | ofstream("cautbin.out","w",stdout);
| ^~~~~~~~
main.cpp:64:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
64 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
main.cpp:66:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
66 | scanf("%d", &v[i]);
| ~~~~~^~~~~~~~~~~~~
main.cpp:68:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
68 | scanf("%d", &m);
| ~~~~~^~~~~~~~~~
main.cpp:71:16: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
71 | scanf("%d%d", &tip, &val);
| ~~~~~^~~~~~~~~~~~~~~~~~~~