Problem card
User Leeyee
Submission Time 2026-02-13 15:59:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:21:11: error: ‘j’ was not declared in this scope
21 | elif (c[j] == 'B'){
| ^
card.cpp:21:3: error: ‘elif’ was not declared in this scope
21 | elif (c[j] == 'B'){
| ^~~~
card.cpp: At global scope:
card.cpp:28:2: error: ‘cout’ does not name a type
28 | cout<<d[b-1]<<" "<<d[b]<<" "<<d[b+1];
| ^~~~
card.cpp:30:2: error: expected unqualified-id before ‘return’
30 | return 0;
| ^~~~~~
card.cpp:31:1: error: expected declaration before ‘}’ token
31 | }
| ^