Problem card
User Ningja
Submission Time 2023-11-09 23:37:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:10:2: error: ‘deque’ was not declared in this scope
10 | deque <int> d;
| ^~~~~
card.cpp:2:1: note: ‘std::deque’ is defined in header ‘<deque>’; did you forget to ‘#include <deque>’?
1 | #include <iostream>
+++ |+#include <deque>
2 | using namespace std;
card.cpp:10:9: error: expected primary-expression before ‘int’
10 | deque <int> d;
| ^~~
card.cpp:12:3: error: ‘d’ was not declared in this scope
12 | d.insert(i);
| ^
card.cpp:14:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | while (input != ".") {
| ^~~
card.cpp:16:15: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
16 | if (input = "A" ) {
| ^~~
| |
| const char*
card.cpp:20:20: error: i