Borderou de evaluare (job #1431294)
Utilizator | Data | 9 mai 2015 10:09:32 | |
---|---|---|---|
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:8:6: error: ‘fstream’ was not declared in this scope
fstream fin("adunare.in", ios::in);
^
user.cpp:8:6: 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:163:33: note: ‘std::fstream’
typedef basic_fstream<char> fstream;
^
user.cpp:8:14: error: expected ‘;’ before ‘fin’
fstream fin("adunare.in", ios::in);
^
user.cpp:9:6: error: ‘fin’ was not declared in this scope
fin >> a;
^
user.cpp:13:14: error: expected ‘;’ before ‘fout’
fstream fout("adunare.out", ios::out);
^
user.cpp:14:6: error: ‘fout’ was not declared in this scope
fout << (a + b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !