Problem sum2
User proplayermason
Submission Time 2026-06-25 09:39:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sum2.cpp: In function ‘int main()’:
sum2.cpp:12:13: error: no match for ‘operator+=’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’})
12 | cout<< A[0] += A[1] ;
sum2.cpp:13:9: error: expected ‘;’ before ‘}’ token
13 | return 0
| ^
| ;
14 | }
| ~