Borderou de evaluare (job #1753954)
Utilizator | Data | 7 septembrie 2016 12:59:23 | |
---|---|---|---|
Problema | Dunarea | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:25:19: error: expected ‘)’ before ‘;’ token
sort(v.begin();v.end(),cmp);
^
user.cpp:25:31: error: expected ‘;’ before ‘)’ token
sort(v.begin();v.end(),cmp);
^
user.cpp:25:32: warning: right operand of comma operator is a reference, not call, to function ‘cmp’ [-Waddress]
sort(v.begin();v.end(),cmp);
^
user.cpp:25:32: warning: right operand of comma operator has no effect [-Wunused-value]
user.cpp:26:29: error: ‘struct std::pair<int, int>’ has no member named ‘fisrt’
for(auto el:v) g << el.fisrt << ' ' << el.second << '\n';
^
user.cpp:28:10: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::value_type {aka std::pair<int, int>}’ to ‘int’ in assignment
ultim=v[0];
^
user.cpp:31:16: error: ‘class __gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >’ has no member named ‘first’
if(*it.first <= ultim.second && ultim.second < *it.second){
^
user.cpp:31:31: error: request for member ‘second’ in ‘ultim’, which is of non-class type ‘int’
if(*it.first <= ultim.second && ultim.second < *it.second){
^
user.cpp:31:47: error: request for member ‘second’ in ‘ultim’, which is of non-class type ‘int’
if(*it.first <= ultim.second && ultim.second < *it.second){
^
user.cpp:31:60: error: ‘class __gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >’ has no member named ‘second’
if(*it.first <= ultim.second && ultim.second < *it.second){
^
user.cpp:32:13: error: ‘s’ was not declared in this scope
s++;
^
user.cpp:33:19: error: cannot convert ‘__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >’ to ‘int’ in assignment
ultim = it;
^
user.cpp:34:22: error: request for member ‘second’ in ‘ultim’, which is of non-class type ‘int’
if(ultim.second == stop) gasit = true;
^
user.cpp:37:10: error: ‘s’ was not declared in this scope
g << s;
^
user.cpp:16:11: warning: unused variable ‘s1’ [-Wunused-variable]
int n,s1,ultim,x,y;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !