Problem | lunchbox |
---|---|
User | NotTYR |
Submission Time | 2023-02-08 21:40:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:9:17: error: expected ‘;’ before ‘)’ token
9 | for(int i=0;i++){
| ^
| ;
lunchbox.cpp:13:13: error: request for member ‘begin’ in ‘array’, which is of non-class type ‘int [c]’
13 | sort(array.begin(),array.end());
| ^~~~~
lunchbox.cpp:13:27: error: request for member ‘end’ in ‘array’, which is of non-class type ‘int [c]’
13 | sort(array.begin(),array.end());
| ^~~
lunchbox.cpp:13:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
13 | sort(array.begin(),array.end());
| ^~~~
| qsort
lunchbox.cpp:15:15: error: expected ‘)’ before ‘,’ token
15 | while(int i=0, m>=c){
| ~ ^
| )
lunchbox.cpp:15:15: error: expected primary-expression before ‘,’ token
lunchbox.cpp:15:17: error: ‘m’ was not decla