Borderou de evaluare (job #1431162)
Utilizator | Data | 9 mai 2015 01:05:10 | |
---|---|---|---|
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: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/ostream:38,
from /usr/include/c++/4.8/iostream:39,
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/ostream:38,
from /usr/include/c++/4.8/iostream:39,
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:10:2: error: ‘in’ was not declared in this scope
in>>a>>b;
^
user.cpp:11:2: 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 !