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