Borderou de evaluare (job #2200990)
Utilizator | Data | 3 mai 2018 08:19:54 | |
---|---|---|---|
Problema | Ramen | 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:33:17: error: ‘std::set<std::pair<int, std::pair<int, int> > >::iterator {aka struct std::_Rb_tree_const_iterator<std::pair<int, std::pair<int, int> > >}’ has no member named ‘first’
pp=*itp.first;
^~~~~
user.cpp:34:17: error: ‘std::set<std::pair<int, std::pair<int, int> > >::iterator {aka struct std::_Rb_tree_const_iterator<std::pair<int, std::pair<int, int> > >}’ has no member named ‘second’
tt=*itp.second.first;
^~~~~~
user.cpp:35:17: error: ‘std::set<std::pair<int, std::pair<int, int> > >::iterator {aka struct std::_Rb_tree_const_iterator<std::pair<int, std::pair<int, int> > >}’ has no member named ‘second’
oo=*itp.second.second;
^~~~~~
user.cpp:38:15: error: request for member ‘size’ in ‘st’, which is of non-class type ‘int’
dr=st.size();
^~~~
user.cpp:42:13: error: ‘mij’ was not declared in this scope
mij=(st+dr)/2;
^~~
user.cpp:44:13: error: ‘tcb’ was not declared in this scope
tcb=sett[mij].first;
^~~
user.cpp:64:17: error: no match for ‘operator[]’ (operand types are ‘std::set<std::pair<int, std::pair<int, int> > >’ and ‘int’)
if (setp[dr].second>tt)
^
user.cpp:66:13: error: ‘poz’ was not declared in this scope
poz=dr;
^~~
user.cpp:68:22: error: no match for ‘operator[]’ (operand types are ‘std::set<std::pair<int, std::pair<int, int> > >’ and ‘int’)
else if (setp[st].second>tt)
^
user.cpp:70:13: error: ‘poz’ was not declared in this scope
poz=st;
^~~
user.cpp:73:9: error: ‘af’ was not declared in this scope
af[oo]=t[poz]+d+pp;
^~
user.cpp:73:18: error: ‘poz’ was not declared in this scope
af[oo]=t[poz]+d+pp;
^~~
user.cpp:81:22: error: ‘af’ was not declared in this scope
printf ("%d",af[i]);
^~
user.cpp:17:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("ramen.in","r",stdin);
^
user.cpp:18:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("ramen.out","w",stdout);
^
user.cpp:20:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d",&n,&d);
^
user.cpp:24:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !