Borderou de evaluare (job #2778204)
Utilizator | Data | 30 septembrie 2021 10:25:15 | |
---|---|---|---|
Problema | Alibaba | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:1: error: 'ifstream' does not name a type
5 | ifstream fin("alibaba.in");
| ^~~~~~~~
main.cpp:6:1: error: 'ofstream' does not name a type
6 | ofstream gout("alibaba.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:9:5: error: 'deque' was not declared in this scope; did you mean 'std::deque'?
9 | deque<int> d;
| ^~~~~
| std::deque
In file included from /usr/include/c++/10/deque:67,
from main.cpp:2:
/usr/include/c++/10/bits/stl_deque.h:764:11: note: 'std::deque' declared here
764 | class deque : protected _Deque_base<_Tp, _Alloc>
| ^~~~~
main.cpp:9:11: error: expected primary-expression before 'int'
9 | deque<int> d;
| ^~~
main.cpp:13:5: error: 'fin' was not declared in this scope
13 | fin>>n>>k;
| ^~~
main.cpp:19:23: error: 'd' was not declared in this scope
19 | while(digit > d.back() && !d.empty() && k > 0) {
| ^
main.cpp:23:9: error: 'd' was not declared in this scope
23 | d.push_back(digit);
| ^
main.cpp:27:12: error: 'd' was not declared in this scope
27 | while(!d.empty()){
| ^
main.cpp:28:9: error: 'gout' was not declared in this scope
28 | gout<<d.front();
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !