Borderou de evaluare (job #1624842)
Utilizator | Data | 2 martie 2016 14:08:40 | |
---|---|---|---|
Problema | Photoshop | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:50:15: error: ‘cmp’ was not declared in this scope
std::set<int, cmp>s[LIM];
^
user.cpp:50:18: error: template argument 2 is invalid
std::set<int, cmp>s[LIM];
^
user.cpp:50:25: error: invalid type in declaration before ‘;’ token
std::set<int, cmp>s[LIM];
^
user.cpp:51:15: error: ‘cmp2’ was not declared in this scope
std::set<int, cmp2>s2[LIM];
^
user.cpp:51:19: error: template argument 2 is invalid
std::set<int, cmp2>s2[LIM];
^
user.cpp:51:27: error: invalid type in declaration before ‘;’ token
std::set<int, cmp2>s2[LIM];
^
user.cpp: In function ‘void update(int, int, int)’:
user.cpp:53:18: error: request for member ‘insert’ in ‘s[p]’, which is of non-class type ‘int’
if(t==0)s[p].insert(a);
^
user.cpp:54:15: error: request for member ‘erase’ in ‘s[p]’, which is of non-class type ‘int’
else s[p].erase(a);
^
user.cpp: In function ‘void query(int, int, int)’:
user.cpp:66:18: error: request for member ‘empty’ in ‘s[p]’, which is of non-class type ‘int’
if(!s[p].empty()){
^
user.cpp:68:21: error: request for member ‘lower_bound’ in ‘s[p]’, which is of non-class type ‘int’
it=s[p].lower_bound(v);
^
user.cpp:69:26: error: request for member ‘end’ in ‘s[p]’, which is of non-class type ‘int’
if((it!=s[p].end())&&(it->y<=y.y)){
^
user.cpp:77:21: error: request for member ‘upper_bound’ in ‘s[p]’, which is of non-class type ‘int’
it=s[p].upper_bound(y);
^
user.cpp:78:25: error: request for member ‘begin’ in ‘s[p]’, which is of non-class type ‘int’
if(it!=s[p].begin()){
^
user.cpp: In function ‘void update2(int, int, int)’:
user.cpp:101:19: error: request for member ‘insert’ in ‘s2[p]’, which is of non-class type ‘int’
if(t==0)s2[p].insert(b);
^
user.cpp:102:16: error: request for member ‘erase’ in ‘s2[p]’, which is of non-class type ‘int’
else s2[p].erase(b);
^
user.cpp: In function ‘void query2(int, int, int)’:
user.cpp:114:19: error: request for member ‘empty’ in ‘s2[p]’, which is of non-class type ‘int’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !