Borderou de evaluare (job #1861700)
Utilizator | Data | 29 ianuarie 2017 11:07:26 | |
---|---|---|---|
Problema | Deque | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:7: error: ‘elem’ was not declared in this scope
deque<elem> x;
^
user.cpp:7:11: error: template argument 1 is invalid
deque<elem> x;
^
user.cpp:7:11: error: template argument 2 is invalid
user.cpp:7:14: error: invalid type in declaration before ‘;’ token
deque<elem> x;
^
user.cpp: In function ‘int main()’:
user.cpp:15:12: error: request for member ‘val’ in ‘x’, which is of non-class type ‘int’
fin >> x.val;
^
user.cpp:16:5: error: request for member ‘pos’ in ‘x’, which is of non-class type ‘int’
x.pos = i;
^
user.cpp:17:11: error: ‘v’ was not declared in this scope
while (!v.empty() && v.back().val > x.val)
^
user.cpp:17:41: error: request for member ‘val’ in ‘x’, which is of non-class type ‘int’
while (!v.empty() && v.back().val > x.val)
^
user.cpp:19:3: error: ‘v’ was not declared in this scope
v.push_back(x);
^
user.cpp:21:22: error: ‘v’ was not declared in this scope
cst = 1;cdr = k;s = v.front().val;
^
user.cpp:26:12: error: request for member ‘val’ in ‘x’, which is of non-class type ‘int’
fin >> x.val;x.pos = i;
^
user.cpp:26:18: error: request for member ‘pos’ in ‘x’, which is of non-class type ‘int’
fin >> x.val;x.pos = i;
^
user.cpp:28:41: error: request for member ‘val’ in ‘x’, which is of non-class type ‘int’
while (!v.empty() && v.back().val > x.val)
^
user.cpp:29:6: error: request for member ‘pop_back’ in ‘x’, which is of non-class type ‘int’
x.pop_back();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !