Problem platonic5
User dacashew
Submission Time 2025-08-26 09:25:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic5.cpp: In function ‘int main()’:
platonic5.cpp:108:11: error: no match for ‘operator+=’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
108 | cout<<ans+=abs(n-p);
| ~~~~~~~~~^~~~~~~~~~