Problem | lunchbox |
---|---|
User | Maggie |
Submission Time | 2023-11-09 10:09:20 |
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:5:8: error: ‘A’ was not declared in this scope
5 | sort (A,A + m);
| ^
lunchbox.cpp:5:14: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
5 | sort (A,A + m);
| ^
| tm
lunchbox.cpp:7:34: error: ‘N’ was not declared in this scope
7 | for (int k = 0; k < m && sum <= N; k++){
| ^
lunchbox.cpp:14:3: error: expected ‘}’ at end of input
14 | }
| ^
lunchbox.cpp:7:41: note: to match this ‘{’
7 | for (int k = 0; k < m && sum <= N; k++){
| ^
lunchbox.cpp:14:3: error: expected ‘}’ at end of input
14 | }
| ^
lunchbox.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^