Borderou de evaluare (job #2179260)
Utilizator | Data | 20 martie 2018 02:50:07 | |
---|---|---|---|
Problema | CMMDC | 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:1: error: ‘ifstream’ was not declared in this scope
ifstream in("cmmdc.in");
^
user.cpp:5:1: note: suggested alternative:
In file included from /usr/include/c++/5/ios:38:0,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/fstream:38,
from user.cpp:1:
/usr/include/c++/5/iosfwd:162:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:6:1: error: ‘ofstream’ was not declared in this scope
ofstream out("cmmdc.out");
^
user.cpp:6:1: note: suggested alternative:
In file included from /usr/include/c++/5/ios:38:0,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/fstream:38,
from user.cpp:1:
/usr/include/c++/5/iosfwd:165:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:8:1: error: ‘in’ was not declared in this scope
in>>a>>b;
^
user.cpp:14:1: error: ‘out’ was not declared in this scope
out<<cmmdc;
^
user.cpp:16:2: error: ‘out’ was not declared in this scope
out<<"0";}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !