Borderou de evaluare (job #1272706)
Utilizator | Data | 22 noiembrie 2014 14:20:33 | |
---|---|---|---|
Problema | TDeque | Status | done |
Runda | FMI No Stress 5 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:1: error: ‘ifstream’ does not name a type
ifstream f("tdeque.in");
^
user.cpp:7:1: error: ‘ofstream’ does not name a type
ofstream g("tdeque.out");
^
user.cpp: In function ‘int main()’:
user.cpp:12:5: error: ‘f’ was not declared in this scope
f >> n;
^
user.cpp:16:5: error: ‘deque’ was not declared in this scope
deque<int> mydeque;
^
user.cpp:16:5: note: suggested alternative:
In file included from /usr/include/c++/4.8/deque:64:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_deque.h:730:11: note: ‘std::deque’
class deque : protected _Deque_base<_Tp, _Alloc>
^
user.cpp:16:11: error: expected primary-expression before ‘int’
deque<int> mydeque;
^
user.cpp:16:11: error: expected ‘;’ before ‘int’
user.cpp:17:5: error: ‘stack’ was not declared in this scope
stack<int> mystack;
^
user.cpp:17:5: note: suggested alternative:
In file included from /usr/include/c++/4.8/stack:61:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_stack.h:96:11: note: ‘std::stack’
class stack
^
user.cpp:17:11: error: expected primary-expression before ‘int’
stack<int> mystack;
^
user.cpp:17:11: error: expected ‘;’ before ‘int’
user.cpp:20:12: error: ‘mydeque’ was not declared in this scope
if(mydeque.empty()){
^
user.cpp:28:17: error: ‘mystack’ was not declared in this scope
mystack.push(a);
^
user.cpp:36:20: error: ‘mystack’ was not declared in this scope
while(!mystack.empty()){
^
user.cpp:46:5: error: ‘g’ was not declared in this scope
g << nr << "\n";
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !