Borderou de evaluare (job #787951)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Analiza (clasa a 5-a) | Compilator | cpp-32 |
Rundă | lasm_26_09_2024_clasa10_11 | Status | evaluat |
Dată | 26 sept. 2024 11:40:41 | Scor | 0 |
Raport evaluator
Eroare de compilare:
cc1plus: error: '::main' must return 'int'
main.cpp: In function 'int main()':
main.cpp:42:17: error: overloaded function with no contextual type information
42 | tmp = max = 0;
| ^
main.cpp:47:12: error: 'palindom' was not declared in this scope; did you mean 'palindrom'?
47 | if(palindom(x))
| ^~~~~~~~
| palindrom
main.cpp:59:29: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and '<unresolved overloaded function type>')
59 | cout<<max;
| ~~~~^~~~~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:41,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/sstream:40,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/complex:45,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ccomplex:39,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:127,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:110:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
110 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:110:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
110 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:119:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]'
119 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:119:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
119 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:129:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
129 | operator<<(ios_base& (*__pf) (ios_base&))
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:129:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
129 | operator<<(ios_base& (*__pf) (ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:168:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
168 | operator<<(long __n)
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:168:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int'
168 | operator<<(long __n)
| ~~~~~^~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:172:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
172 | operator<<(unsigned long __n)
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:172:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int'
172 | operator<<(unsigned long __n)
| ~~~~~~~~~~~~~~^~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:176:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
176 | operator<<(bool __n)