Borderou de evaluare (job #1290757)
Utilizator | Data | 11 decembrie 2014 18:57:08 | |
---|---|---|---|
Problema | Noname 3 | 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:5:5: error: ‘ifstream’ was not declared in this scope
ifstream f("noname3.in");
^
user.cpp:5:5: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:5:14: error: expected ‘;’ before ‘f’
ifstream f("noname3.in");
^
user.cpp:6:5: error: ‘ofstream’ was not declared in this scope
ofstream g("noname3.out");
^
user.cpp:6:5: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:6:14: error: expected ‘;’ before ‘g’
ofstream g("noname3.out");
^
user.cpp:9:5: error: ‘f’ was not declared in this scope
f>>n>>s;
^
user.cpp:17:9: error: ‘g’ was not declared in this scope
g<<i-1;
^
user.cpp:20:9: error: ‘g’ was not declared in this scope
g<<i;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !