Borderou de evaluare (job #2257848)
Utilizator | Data | 10 octombrie 2018 16:18:53 | |
---|---|---|---|
Problema | Permsplit | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void add(sw39)’:
user.cpp:24:9: error: request for member ‘inf’ in ‘nou’, which is of pointer type ‘stevea*’ (maybe you meant to use ‘->’ ?)
nou.inf=info;
^~~
user.cpp: In function ‘bool empti()’:
user.cpp:39:18: error: ‘null’ was not declared in this scope
return (top!=null);
^~~~
user.cpp: In function ‘int main()’:
user.cpp:52:24: error: request for member ‘ma’ in ‘top’, which is of pointer type ‘stevea*’ (maybe you meant to use ‘->’ ?)
if(aux.mi==top.ma+1)
^~
user.cpp:54:17: error: no match for ‘operator=’ (operand types are ‘sw39’ and ‘stevea*’)
aux=top;
^~~
user.cpp:6:8: note: candidate: constexpr sw39& sw39::operator=(const sw39&)
struct sw39
^~~~
user.cpp:6:8: note: no known conversion for argument 1 from ‘stevea*’ to ‘const sw39&’
user.cpp:6:8: note: candidate: constexpr sw39& sw39::operator=(sw39&&)
user.cpp:6:8: note: no known conversion for argument 1 from ‘stevea*’ to ‘sw39&&’
user.cpp:56:13: error: ‘poz’ was not declared in this scope
poz--;
^~~
user.cpp:59:24: error: request for member ‘mi’ in ‘top’, which is of pointer type ‘stevea*’ (maybe you meant to use ‘->’ ?)
if(aux.ma==top.mi-1)
^~
user.cpp:61:17: error: no match for ‘operator=’ (operand types are ‘sw39’ and ‘stevea*’)
aux=top;
^~~
user.cpp:6:8: note: candidate: constexpr sw39& sw39::operator=(const sw39&)
struct sw39
^~~~
user.cpp:6:8: note: no known conversion for argument 1 from ‘stevea*’ to ‘const sw39&’
user.cpp:6:8: note: candidate: constexpr sw39& sw39::operator=(sw39&&)
user.cpp:6:8: note: no known conversion for argument 1 from ‘stevea*’ to ‘sw39&&’
user.cpp:64:9: error: expected ‘;’ before ‘}’ token
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !