Borderou de evaluare (job #2136442)

Utilizator iandavidroIan David Bocioaca iandavidro Data 19 februarie 2018 22:05:03
Problema Numere Prime Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:1: error: ‘ifstream’ does not name a type ifstream f ("prim.in"); ^ user.cpp:5:1: error: ‘ofstream’ does not name a type ofstream g ("prim.out"); ^ user.cpp: In function ‘int main()’: user.cpp:8:2: error: ‘f’ was not declared in this scope f >> k; ^ user.cpp:11:2: error: ‘cout’ was not declared in this scope cout<<"k="<<k<<endl; ^ user.cpp:11:2: note: suggested alternative: In file included from user.cpp:1:0: /usr/include/c++/5/iostream:61:18: note: ‘std::cout’ extern ostream cout; /// Linked to standard output ^ user.cpp:11:17: error: ‘endl’ was not declared in this scope cout<<"k="<<k<<endl; ^ user.cpp:11:17: note: suggested alternative: In file included from /usr/include/c++/5/iostream:39:0, from user.cpp:1: /usr/include/c++/5/ostream:590:5: note: ‘std::endl’ endl(basic_ostream<_CharT, _Traits>& __os) ^ user.cpp:26:2: error: ‘g’ was not declared in this scope g<<v[k+1];*v[k+1]<<" "; ^ user.cpp:26:18: error: invalid type argument of unary ‘*’ (have ‘long long int’) g<<v[k+1];*v[k+1]<<" "; ^

Ceva nu functioneaza?