Problem paint
User helloworld
Submission Time 2023-08-30 13:41:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:20:4: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
20 | s+=b{i]*i;
| ~^~~
| |
| int*
paint.cpp:20:7: error: expected ‘;’ before ‘{’ token
20 | s+=b{i]*i;
| ^
| ;
paint.cpp:23:1: error: expected ‘}’ at end of input
23 | }
| ^
paint.cpp:4:1: note: to match this ‘{’
4 | {
| ^