Borderou de evaluare (job #1922909)
Utilizator | Data | 10 martie 2017 19:34:39 | |
---|---|---|---|
Problema | Deque | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Citire()’:
user.cpp:12:5: error: ‘ifstream’ was not declared in this scope
ifstream fin ("deque.in");
^
user.cpp:12:5: 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:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:12:14: error: expected ‘;’ before ‘fin’
ifstream fin ("deque.in");
^
user.cpp:13:5: error: ‘fin’ was not declared in this scope
fin >> N >> K;
^
user.cpp: In function ‘int main()’:
user.cpp:21:5: error: ‘ofstream’ was not declared in this scope
ofstream fout ("deque.out");
^
user.cpp:21:5: 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:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:21:14: error: expected ‘;’ before ‘fout’
ofstream fout ("deque.out");
^
user.cpp:37:5: error: ‘fout’ was not declared in this scope
fout << Sum;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !