Problem paint
User KYKY027
Submission Time 2026-03-06 11:01:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:22:44: error: expected ‘;’ before ‘)’ token
22 | for(int i = 0; i < incrementBy.size(), i++){
| ^
| ;
paint.cpp:25:6: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘long int’)
25 | cout>>cumSum;
| ~~~~^~~~~~~~
| | |
| | long int
| std::ostream {aka std::basic_ostream<char>}
paint.cpp:25:6: note: candidate: ‘operator>>(int, long int)’ <built-in>
25 | cout>>cumSum;
| ~~~~^~~~~~~~
paint.cpp:25:6: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from paint.cpp:1:
/usr/include/c++/9/cstddef: