Problem | lunchbox |
---|---|
User | Feiyang |
Submission Time | 2025-06-18 15:25:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:14:28: error: expected ‘;’ before ‘int’
14 | sort(vec.begin(),vec.end())
| ^
| ;
15 | int counter =0;
| ~~~
lunchbox.cpp:17:8: error: ‘counter’ was not declared in this scope
17 | while (counter==0) {
| ^~~~~~~
lunchbox.cpp:19:13: error: expected ‘;’ before ‘vec’
19 | n-vec.back()
| ^
| ;
20 | vec.pop_back()
| ~~~
lunchbox.cpp:23:5: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
23 | cout>> schools;
| ~~~~^~ ~~~~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
lunchbox.cpp:23:5: note: candidate: ‘operator>>(int, int)’ <built-in>
23 | cout&g