Problem | lunchbox |
---|---|
User | haiquan |
Submission Time | 2025-06-18 17:43:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:21:26: error: ‘greatest’ was not declared in this scope
21 | sort(blah, blah + m, greatest<int>());
| ^~~~~~~~
lunchbox.cpp:21:35: error: expected primary-expression before ‘int’
21 | sort(blah, blah + m, greatest<int>());
| ^~~
lunchbox.cpp:23:18: error: ‘N’ was not declared in this scope
23 | while (sum < N){
| ^
lunchbox.cpp:25:13: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
25 | sum += blah;
| ~~~~^~~~~~~
| |
| int*