| Problem | card |
|---|---|
| User | xiaocai918 |
| Submission Time | 2026-11-13 09:22:47 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
card.cpp: In function ‘int main()’:
card.cpp:20:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
20 | if (cin >> d && d == "A") {
| ^~~
card.cpp:23:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
23 | } else if (cin >> d && d == "B") {
| ^~~
card.cpp:26:3: error: expected primary-expression before ‘]’ token
26 | ] else if (cin >> d && d == " ") {
| ^
card.cpp:30:12: error: ‘k’ was not declared in this scope
30 | cout << c[k - 2] << c[k - 1] << c[k] << "\n";
| ^
card.cpp:32:1: error: expected ‘}’ at end of input
32 | }
| ^
card.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^