Problem | lunchbox |
---|---|
User | fanqie |
Submission Time | 2023-11-15 13:52:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:10:21: error: expected ‘;’ before ‘)’ token
10 | for (x=0, x<=m, x++){
| ^
| ;
lunchbox.cpp:13:6: error: could not convert ‘std::sort<int*>(((int*)(& A)), (((int*)(& A)) + ((sizetype)(((long unsigned int)m) * 4))))’ from ‘void’ to ‘bool’
13 | sort(A, A+m);
| ~~~~^~~~~~~~
| |
| void
lunchbox.cpp:14:2: error: expected primary-expression before ‘int’
14 | int i, s;
| ^~~
lunchbox.cpp:13:15: error: expected ‘)’ before ‘int’
13 | sort(A, A+m);
| ^
| )
14 | int i, s;
| ~~~
lunchbox.cpp:10:6: note: to match this ‘(’
10 | for (x=0, x<=m, x++){
| ^
lunchbox.cpp:15:9: error: ‘i’ was not declared in this scope
15 | cin >> i >>s;
| ^
lunchbox.cpp:15:13: