Problem lunchbox
User elegantarmour
Submission Time 2024-08-11 00:11:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:20:14: error: invalid type argument of unary ‘*’ (have ‘int’)
20 | if (sum + *it > N) {
| ^~
lunchbox.cpp:23:11: error: invalid type argument of unary ‘*’ (have ‘int’)
23 | sum += *it;
| ^~