Problem | management |
---|---|
User | altuser1609 |
Submission Time | 2023-04-19 12:17:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
management.cpp: In function ‘int main()’:
management.cpp:11:16: error: no ‘operator++(int)’ declared for postfix ‘++’ [-fpermissive]
11 | vector[x - 1]++;
| ~~~~~~~~~~~~~^~
management.cpp:14:8: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<int>’)
14 | cout << vector[i] << endl;
| ~~~~ ^~ ~~~~~~~~~
| | |
| | std::vector<int>
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/iostream:39,
from management.cpp:1:
/usr/include/c++/9/ostream:108:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT