Problem sumint
User ov5rki11
Submission Time 2025-06-16 14:51:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:9:15: error: expected primary-expression before ‘int’
9 | cin >> hold(int);
| ^~~
sumint.cpp:10:6: error: no match for ‘operator+=’ (operand types are ‘int’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
10 | sum+=hold;
| ~~~^~~~~~