Borderou de evaluare (job #1086012)
Utilizator | Data | 17 ianuarie 2014 17:22:02 | |
---|---|---|---|
Problema | Numere Prime | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:1: error: ‘ifstream’ does not name a type
ifstream f("prim.in");
^
user.cpp:8:1: error: ‘ofstream’ does not name a type
ofstream g("prim.out");
^
user.cpp: In function ‘int main()’:
user.cpp:12:5: error: ‘f’ was not declared in this scope
f>>k;f.close();
^
user.cpp:20:12: error: ‘g’ was not declared in this scope
g<<i*i<<endl;gasit=1;
^
user.cpp:20:20: error: ‘endl’ was not declared in this scope
g<<i*i<<endl;gasit=1;
^
user.cpp:20:20: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/istream:39:0,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/ostream:564:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^
user.cpp:24:5: error: ‘g’ was not declared in this scope
g.close();return 0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !