Borderou de evaluare (job #1022730)
Utilizator | Data | 5 noiembrie 2013 21:30:43 | |
---|---|---|---|
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()’:
user.cpp:5:4: error: ‘ifstream’ was not declared in this scope
ifstream in("adunare.in");
^
user.cpp:5:4: 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/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:5:13: error: expected ‘;’ before ‘in’
ifstream in("adunare.in");
^
user.cpp:6:5: error: ‘ofstream’ was not declared in this scope
ofstream out("adunare.out");
^
user.cpp:6:5: 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/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:6:14: error: expected ‘;’ before ‘out’
ofstream out("adunare.out");
^
user.cpp:7:5: error: ‘in’ was not declared in this scope
in>>a>>b;
^
user.cpp:8:5: error: ‘out’ was not declared in this scope
out<<a+b;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !