Borderou de evaluare (job #1574338)
Utilizator | Data | 20 ianuarie 2016 15:19:48 | |
---|---|---|---|
Problema | Licenta | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:15: error: expected ‘)’ before ‘a’
bool cmp(time a, time b)
^
user.cpp:8:23: error: expected ‘)’ before ‘b’
bool cmp(time a, time b)
^
user.cpp:8:24: error: expression list treated as compound expression in initializer [-fpermissive]
bool cmp(time a, time b)
^
user.cpp:8:24: warning: left operand of comma operator is a reference, not call, to function ‘time’ [-Waddress]
user.cpp:8:24: warning: left operand of comma operator has no effect [-Wunused-value]
user.cpp:9:1: error: expected ‘,’ or ‘;’ before ‘{’ token
{
^
user.cpp:12:12: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
vector<time>v;
^
user.cpp:12:12: error: expected a type, got ‘time’
user.cpp:12:12: error: template argument 2 is invalid
user.cpp:12:14: error: invalid type in declaration before ‘;’ token
vector<time>v;
^
user.cpp:14:1: error: ‘time’ does not name a type
time x;
^
user.cpp: In function ‘int main()’:
user.cpp:18:5: error: ‘x’ was not declared in this scope
x.c='s';
^
user.cpp:22:11: error: request for member ‘push_back’ in ‘v’, which is of non-class type ‘int’
v.push_back(x);
^
user.cpp:24:11: error: request for member ‘push_back’ in ‘v’, which is of non-class type ‘int’
v.push_back(x);
^
user.cpp:31:11: error: request for member ‘push_back’ in ‘v’, which is of non-class type ‘int’
v.push_back(x);
^
user.cpp:33:11: error: request for member ‘push_back’ in ‘v’, which is of non-class type ‘int’
v.push_back(x);
^
user.cpp:35:12: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘int’
sort(v.begin(),v.end(),cmp);
^
user.cpp:35:22: error: request for member ‘end’ in ‘v’, which is of non-class type ‘int’
sort(v.begin(),v.end(),cmp);
^
user.cpp:36:13: error: request for member ‘size’ in ‘v’, which is of non-class type ‘int’
int l=v.size();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !