Borderou de evaluare (job #1731751)
Utilizator | Tivadar Ionut codebreaker24 | Data | 19 iulie 2016 19:43:42 |
---|---|---|---|
Problema | Bere | 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:5: error: ‘ifstream’ was not declared in this scope
ifstream fin ("br.in");
^
user.cpp:8:5: 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:8:14: error: expected ‘;’ before ‘fin’
ifstream fin ("br.in");
^
user.cpp:9:5: error: ‘ofstream’ was not declared in this scope
ofstream fout ("br.out");
^
user.cpp:9:5: 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:9:14: error: expected ‘;’ before ‘fout’
ofstream fout ("br.out");
^
user.cpp:11:5: error: ‘fout’ was not declared in this scope
fout << 0;
^
user.cpp:12:5: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
return;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !