Problem lunchbox
User fanqie
Submission Time 2023-11-15 13:51:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int32_t main()’:
lunchbox.cpp:11:21: error: expected ‘;’ before ‘)’ token
11 | for (x=0, x<=m, x++){
| ^
| ;
lunchbox.cpp:14:6: error: could not convert ‘std::sort<long long int*>(((long long int*)(& A)), (((long long int*)(& A)) + ((sizetype)(((long unsigned int)m) * 8))))’ from ‘void’ to ‘bool’
14 | sort(A, A+m);
| ~~~~^~~~~~~~
| |
| void
lunchbox.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
lunchbox.cpp:15:2: note: in expansion of macro ‘int’
15 | int i, s;
| ^~~
lunchbox.cpp:14:15: error: expected ‘)’ before ‘long’
14 | sort(A, A+m);
| ^
| )
lunchbox.cpp:11:6: note: to match this ‘(’
11 | for (x=0, x<=m, x++){
| ^
lunchbox.cpp:16:9: error: ‘i’ was not