Borderou de evaluare (job #1731098)
Utilizator | Data | 18 iulie 2016 12:29:56 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main(int, char**)’:
user.cpp:6:2: error: ‘ifstream’ was not declared in this scope
ifstream in("adunare.in");
^
user.cpp:6:2: 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:6:11: error: expected ‘;’ before ‘in’
ifstream in("adunare.in");
^
user.cpp:7:2: error: ‘ofstream’ was not declared in this scope
ofstream out("adunare.out");
^
user.cpp:7:2: 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:7:11: error: expected ‘;’ before ‘out’
ofstream out("adunare.out");
^
user.cpp:9:2: error: ‘in’ was not declared in this scope
in>>a; in>>b;
^
user.cpp:11:2: error: ‘out’ was not declared in this scope
out<<<c;
^
user.cpp:11:7: error: expected primary-expression before ‘<’ token
out<<<c;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !