Borderou de evaluare (job #1130375)
Utilizator | Data | 28 februarie 2014 12:56:49 | |
---|---|---|---|
Problema | Plopi | 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:11:2: error: ‘ifstream’ was not declared in this scope
ifstream f("plopi.in");
^
user.cpp:11: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/ostream:38,
from /usr/local/include/c++/4.8.0/iostream:39,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:11:11: error: expected ‘;’ before ‘f’
ifstream f("plopi.in");
^
user.cpp:13:2: error: ‘f’ was not declared in this scope
f>>n;
^
user.cpp:40:2: error: ‘ofstream’ was not declared in this scope
ofstream g("plopi.out");
^
user.cpp:40: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/ostream:38,
from /usr/local/include/c++/4.8.0/iostream:39,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:40:11: error: expected ‘;’ before ‘g’
ofstream g("plopi.out");
^
user.cpp:41:2: error: ‘g’ was not declared in this scope
g<<hany/2;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !