Borderou de evaluare (job #782712)

Utilizator avatar DominicDragan2023 Dragan Dominic DominicDragan2023 IP ascuns
Problemă Balaur (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 18 iul. 2024 12:19:41 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:3:7: error: expected nested-name-specifier before 'namespaces' 3 | using namespaces std; | ^~~~~~~~~~ main.cpp:5:1: error: 'ifstream' does not name a type 5 | ifstream fin("balaur.in"); | ^~~~~~~~ main.cpp:6:1: error: 'ofstream' does not name a type 6 | ofstream fout("balaur.out"); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:11:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 11 | cin>>n; | ^~~ | std::cin In file included from main.cpp:2: /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ main.cpp:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 12 | cout<<5*n<<endl; | ^~~~ | std::cout /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ main.cpp:12:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 12 | cout<<5*n<<endl; | ^~~~ | std::endl In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:41, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/fstream:40, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:735:5: note: 'std::endl' declared here 735 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~