Problem | lunchbox |
---|---|
User | KingKian |
Submission Time | 2023-09-14 08:30:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:12:36: error: expected ‘;’ before ‘)’ token
12 | for(int i = 0; i < schools, i++)
| ^
| ;
lunchbox.cpp:18:5: error: ‘school’ was not declared in this scope; did you mean ‘schools’?
18 | school
| ^~~~~~
| schools
lunchbox.cpp:27:10: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
27 | cout >> numschool
| ~~~~ ^~ ~~~~~~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
lunchbox.cpp:27:10: note: candidate: ‘operator>>(int, int)’ <built-in>
27 | cout >> numschool
| ~~~~~^~~~~~~~~~~~
lunchbox.cpp:27:10: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::ba