Problem card
User GanJaeHan
Submission Time 2026-03-15 14:03:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:26:40: error: invalid operands of types ‘const char*’ and ‘const char [2]’ to binary ‘operator+’
26 | string answer = c[k - 1] + " " + c[k] + " " + c[k + 1];
| ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~
| | |
| | const char [2]
| const char*