Borderou de evaluare (job #1042955)
Utilizator | Data | 27 noiembrie 2013 20:25:16 | |
---|---|---|---|
Problema | Stramosi | 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:1: error: ‘ifstream’ was not declared in this scope
ifstream fin("stramosi.in");
^
user.cpp:11:1: 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:10: error: expected ‘;’ before ‘fin’
ifstream fin("stramosi.in");
^
user.cpp:12:1: error: ‘ofstream’ was not declared in this scope
ofstream fout("stramosi.out");
^
user.cpp:12:1: 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:12:10: error: expected ‘;’ before ‘fout’
ofstream fout("stramosi.out");
^
user.cpp:13:1: error: ‘fin’ was not declared in this scope
fin>>n>>m;
^
user.cpp:35:3: error: ‘fout’ was not declared in this scope
fout<<p;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !