Borderou de evaluare (job #1430130)
Utilizator | Data | 7 mai 2015 21:59:02 | |
---|---|---|---|
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:7:2: error: ‘ifstream’ was not declared in this scope
ifstream f.open("adunare.in");
^
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:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:7:11: error: expected ‘;’ before ‘f’
ifstream f.open("adunare.in");
^
user.cpp:9:2: error: ‘f’ was not declared in this scope
f>>a>>b;
^
user.cpp:10:2: error: ‘ofstream’ was not declared in this scope
ofstream g.open("adunare.out");
^
user.cpp:10: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:10:11: error: expected ‘;’ before ‘g’
ofstream g.open("adunare.out");
^
user.cpp:11:2: error: ‘g’ was not declared in this scope
g<<a+b<<endl;
^
user.cpp:11:10: error: ‘endl’ was not declared in this scope
g<<a+b<<endl;
^
user.cpp:11:10: note: suggested alternative:
In file included from /usr/include/c++/4.8/iostream:39:0,
from user.cpp:1:
/usr/include/c++/4.8/ostream:564:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !