Borderou de evaluare (job #2393379)
Utilizator | Data | 31 martie 2019 13:30:56 | |
---|---|---|---|
Problema | Deque | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:1: error: 'ifstream' does not name a type
ifstream fin("deque.in");
^~~~~~~~
main.cpp:4:1: error: 'ofstream' does not name a type
ofstream fout("deque.out");
^~~~~~~~
main.cpp:5:1: error: 'deque' does not name a type
deque <int> dq;
^~~~~
main.cpp: In function 'int main()':
main.cpp:10:5: error: 'fin' was not declared in this scope
fin>>n>>k;
^~~
main.cpp:14:13: error: 'dq' was not declared in this scope
if(!dq.empty()&&v[i]<=v[dq.back()])
^~
main.cpp:15:13: error: 'deque' was not declared in this scope
deque.pop_back();
^~~~~
main.cpp:15:13: note: suggested alternative:
In file included from /usr/include/c++/6/deque:64:0,
from main.cpp:2:
/usr/include/c++/6/bits/stl_deque.h:829:11: note: 'std::deque'
class deque : protected _Deque_base<_Tp, _Alloc>
^~~~~
main.cpp:16:9: error: 'dq' was not declared in this scope
dq.push_back(i);
^~
main.cpp:18:13: error: 'q' was not declared in this scope
q.pop_front();
^
main.cpp:22:5: error: 'fout' was not declared in this scope
fout<<s;
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !