Borderou de evaluare (job #2428742)
Utilizator | Data | 6 iunie 2019 11:24:05 | |
---|---|---|---|
Problema | Lupul Urias si Rau | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'bool oaie::operator<(const oaie&) const':
main.cpp:11:20: error: 'd' was not declared in this scope
return d<aux.d;
^
main.cpp:11:26: error: 'const struct oaie' has no member named 'd'
return d<aux.d;
^
main.cpp: In function 'int main()':
main.cpp:24:9: error: 'n' was not declared in this scope
in>>n>>x>>l;
^
main.cpp:25:22: error: 'i' was not declared in this scope
for(long longi=1;i<=n;i++)
^
main.cpp:26:18: error: 'struct oaie' has no member named 'd'
in>>auxx.d>>auxx.l,v.push_back(auxx);
^
main.cpp:25:14: warning: unused variable 'longi' [-Wunused-variable]
for(long longi=1;i<=n;i++)
^~~~~
main.cpp:28:22: error: 'i' was not declared in this scope
for(long longi=0;i<n;i++){
^
main.cpp:36:44: error: 'cnt' was not declared in this scope
sumad+=pq2.top(),pq2.pop(),cnt++;
^~~
main.cpp:37:13: error: 'cnt' was not declared in this scope
cnt--;
^~~
main.cpp:40:34: error: 'j' was not declared in this scope
for(long longj=1;j<=cnt;j++)
^
main.cpp:40:26: warning: unused variable 'longj' [-Wunused-variable]
for(long longj=1;j<=cnt;j++)
^~~~~
main.cpp:32:18: warning: unused variable 'longcnt' [-Wunused-variable]
long longcnt=0,last=0;
^~~~~~~
main.cpp:32:28: warning: unused variable 'last' [-Wunused-variable]
long longcnt=0,last=0;
^~~~
main.cpp:28:14: warning: unused variable 'longi' [-Wunused-variable]
for(long longi=0;i<n;i++){
^~~~~
main.cpp:23:10: warning: unused variable 'longn' [-Wunused-variable]
long longn,x,l;
^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !