Borderou de evaluare (job #617801)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Căutare binară | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 nov. 2021 13:39:33 | 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:61:5: error: 'ifstream' was not declared in this scope
61 | ifstream in("cautbin.in");
| ^~~~~~~~
main.cpp:62:1: error: 'ofstream' was not declared in this scope
62 | ofstream out("cautbin.out");
| ^~~~~~~~
main.cpp:63:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
63 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
main.cpp:65:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
65 | scanf("%d", &v[i]);
| ~~~~~^~~~~~~~~~~~~
main.cpp:67:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
67 | scanf("%d", &m);
| ~~~~~^~~~~~~~~~
main.cpp:70:16: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
70 | scanf("%d%d", &tip, &val);
| ~~~~~^~~~~~~~~~~~~~~~~~~~