Borderou de evaluare (job #738545)

Utilizator avatar victor_vatasescu Vatasescu Victor victor_vatasescu IP ascuns
Problemă Bani Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 16 oct. 2023 20:40:34 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:13:9: error: 'cin' was not declared in this scope 13 | cin >> x; | ^~~ main.cpp:18:5: error: 'cout' was not declared in this scope 18 | cout << g[s]; | ^~~~ main.cpp:7:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 7 | freopen("bani.in","r",stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:8:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | freopen("bani.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | scanf("%lld%lld",&n,&s); | ~~~~~^~~~~~~~~~~~~~~~~~