Borderou de evaluare (job #954695)
Utilizator | Data | 29 mai 2013 21:09:33 | |
---|---|---|---|
Problema | Numere Prime | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:6:2: error: ‘ofstream’ was not declared in this scope
ofstream g("test.out");
^
user.cpp:6:2: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/ios:38:0,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:6:11: error: expected ‘;’ before ‘g’
ofstream g("test.out");
^
user.cpp:19:4: error: ‘g’ was not declared in this scope
g<<n<<',';
^
user.cpp:23:2: error: ‘g’ was not declared in this scope
g.close();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !