Problem splithunny
User Jiajing
Submission Time 2026-08-19 09:12:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘int main()’:
splithunny.cpp:51:46: error: invalid operands of types ‘const char*’ and ‘const char [17]’ to binary ‘operator+’
51 | cout << "Oh, bother. There are " + count + " pools of hunny.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
| | |
| | const char [17]
| const char*