Borderou de evaluare (job #2536589)

Utilizator cyg_vladioanBirsan Vlad cyg_vladioan Data 2 februarie 2020 12:19:52
Problema Schi Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int bs(int)': main.cpp:20:12: error: 'i' was not declared in this scope st = v[i]; ^ main.cpp: In function 'int main()': main.cpp:41:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("schi.in" , "r" , stdin); ^ main.cpp:42:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("schi.out" , "w" , stdout); ^ main.cpp:44:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d" , &n); ^ main.cpp:46:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d" , &v[i]); ^ Non zero exit status: 1

Ceva nu functioneaza?