Borderou de evaluare (job #2054513)

Utilizator neth------ neth Data 2 noiembrie 2017 00:41:06
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:3:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] main(){int a,b;x(in,>>)a>>b;x(out,<<)a+b;} ^ user.cpp: In function ‘int main()’: user.cpp:2:55: error: expected primary-expression before ‘;’ token #define x(y,z) std::fstream("adunare."#y,std::ios::y)z; ^ user.cpp:3:16: note: in expansion of macro ‘x’ main(){int a,b;x(in,>>)a>>b;x(out,<<)a+b;} ^ user.cpp:3:25: warning: statement has no effect [-Wunused-value] main(){int a,b;x(in,>>)a>>b;x(out,<<)a+b;} ^ user.cpp:2:55: error: expected primary-expression before ‘;’ token #define x(y,z) std::fstream("adunare."#y,std::ios::y)z; ^ user.cpp:3:29: note: in expansion of macro ‘x’ main(){int a,b;x(in,>>)a>>b;x(out,<<)a+b;} ^ user.cpp:3:39: warning: statement has no effect [-Wunused-value] main(){int a,b;x(in,>>)a>>b;x(out,<<)a+b;} ^

Ceva nu functioneaza?