Problem paint
User votesac
Submission Time 2024-02-19 15:09:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
paint.cpp: In function ‘int main()’:
paint.cpp:15:17: error: ‘counter’ was not declared in this scope
15 | total += nut[counter].first;
| ^~~~~~~
paint.cpp:18:18: error: ‘counter’ was not declared in this scope
18 | total += (nut[counter].first + nut[counter].second);
| ^~~~~~~