Problem | potatosalad |
---|---|
User | dieunq1309 |
Submission Time | 2023-03-22 16:43:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:13:17: error: cannot convert ‘std::__cxx11::list<int>’ to ‘int’ in assignment
13 | input = mass[i];
| ~~~~~~^
| |
| std::__cxx11::list<int>
potatosalad.cpp:15:7: error: request for member ‘sort’ in ‘mass’, which is of non-class type ‘std::__cxx11::list<int> [N]’
15 | mass.sort();
| ^~~~
potatosalad.cpp:18:8: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::__cxx11::list<int>’)
18 | cout << mass[i];
| ~~~~ ^~ ~~~~~~~
| | |
| | std::__cxx11::list<int>
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/iostream:39,
from potatosalad.cpp:1:
/usr/include/c++/9/ostream:108:7: note