Borderou de evaluare (job #2440232)

Utilizator Andreiul2312Fulger Andrei-Iulian Andreiul2312 Data 17 iulie 2019 23:50:28
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:4:12: error: expected unqualified-id before ';' token int a, b,; ^ main.cpp:5:3: error: 'ofsteram' was not declared in this scope ofsteram f("adunare.in"); ^~~~~~~~ main.cpp:6:12: error: variable 'std::fstream f' has initializer but incomplete type fstream f("adunare.out",ios::out); ^ main.cpp:7:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=] scanf("%d%d",a ,b ); ^ main.cpp:7:21: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=] main.cpp:7:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",a ,b ); ^ Non zero exit status: 1

Ceva nu functioneaza?