Borderou de evaluare (job #1976853)
Utilizator | Data | 4 mai 2017 13:34:37 | |
---|---|---|---|
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:4:3: error: ‘ifstream’ was not declared in this scope
{ ifstream fin("adunare.in");
^
user.cpp:4:3: 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:4:12: error: expected ‘;’ before ‘fin’
{ ifstream fin("adunare.in");
^
user.cpp:5:3: error: ‘ofstream’ was not declared in this scope
ofstream fout("adunare.out");
^
user.cpp:5:3: 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:5:12: error: expected ‘;’ before ‘fout’
ofstream fout("adunare.out");
^
user.cpp:7:3: error: ‘fin’ was not declared in this scope
fin>>a;
^
user.cpp:10:3: error: ‘fout’ was not declared in this scope
fout<<suma;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !