Problem | lunchbox |
---|---|
User | dl2704 |
Submission Time | 2023-11-15 09:32:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cc1plus: error: ‘::main’ must return ‘int’
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:18:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
18 | for (int total2 = 0;(t < n)&&(m < s); total++){
| ^
lunchbox.cpp:18:40: error: ‘total’ was not declared in this scope; did you mean ‘total2’?
18 | for (int total2 = 0;(t < n)&&(m < s); total++){
| ^~~~~
| total2
lunchbox.cpp:21:4: error: ‘maxschools’ was not declared in this scope
21 | maxschools += 1;
| ^~~~~~~~~~
lunchbox.cpp:23:4: error: ‘maxschools’ was not declared in this scope
23 | maxschools -= 1;
| ^~~~~~~~~~
lunchbox.cpp:26:10: error: ‘maxschools’ was not declared in this scope
26 | cout << maxschools;
| ^~~~~~~~~~