Borderou de evaluare (job #2269019)
Utilizator | Data | 25 octombrie 2018 17:16:24 | |
---|---|---|---|
Problema | Ramen | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:8: error: 'struct' tag used in naming 'union wait' [-fpermissive]
struct wait
^~~~
In file included from /usr/include/stdlib.h:42:0,
from /usr/include/c++/6/cstdlib:75,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:47,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/waitstatus.h:66:7: note: 'union wait' was previously declared here
union wait
^~~~
main.cpp:6:8: error: redefinition of 'union wait'
struct wait
^~~~
In file included from /usr/include/stdlib.h:42:0,
from /usr/include/c++/6/cstdlib:75,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:47,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/waitstatus.h:66:7: error: previous definition of 'union wait'
union wait
^~~~
main.cpp: In member function 'bool compare::operator()(const wait&, const wait&)':
main.cpp:16:12: error: 'const union wait' has no member named 'when'
if ( a.when != b.when )
^~~~
main.cpp:16:22: error: 'const union wait' has no member named 'when'
if ( a.when != b.when )
^~~~
main.cpp:17:18: error: 'const union wait' has no member named 'when'
return !(a.when < b.when);
^~~~
main.cpp:17:27: error: 'const union wait' has no member named 'when'
return !(a.when < b.when);
^~~~
main.cpp:18:16: error: 'const union wait' has no member named 'tarv'
return !(a.tarv < b.tarv);
^~~~
main.cpp:18:25: error: 'const union wait' has no member named 'tarv'
return !(a.tarv < b.tarv);
^~~~
main.cpp: In function 'int main()':
main.cpp:47:39: error: 'union wait' has no member named 'tarv'
if ( !comi.empty () && wh > cur.tarv )
^~~~
main.cpp:58:16: error: 'union wait' has no member named 'when'
if ( cur.when + ms[i] < cur.tarv )
^~~~
main.cpp:58:35: error: 'union wait' has no member named 'tarv'
if ( cur.when + ms[i] < cur.tarv )
^~~~
main.cpp:60:22: error: 'union wait' has no member named 'when'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !