| Problem | lunchbox |
|---|---|
| User | estkn |
| Submission Time | 2026-03-11 23:16:47 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:12:29: error: expected ‘;’ before ‘int’
12 | sort(r.begin(), r.end())
| ^
| ;
13 | int count = 0;
| ~~~
lunchbox.cpp:18:18: error: no post-increment operator for type
18 | count++;
| ^~
lunchbox.cpp:23:10: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
23 | cout << count;
| ~~~~~^~~~~~~~
In file included from /usr/include/c++/9/iostream:39,
from lunchbox.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&