Problem card
User MintTea
Submission Time 2024-01-12 14:50:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int32_t main()’:
card.cpp:14:20: error: expected ‘;’ before ‘}’ token
14 | deck.push_back(i)
| ^
| ;
15 | }
| ~
card.cpp:18:21: error: conversion from ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’} to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
18 | string op = inst[i];
| ^
card.cpp:20:4: error: ‘n’ was not declared in this scope
20 | n = deque.at(0);
| ^
card.cpp:20:13: error: missing template arguments before ‘.’ token
20 | n = deque.at(0);
| ^
card.cpp:21:9: error: expected unqualified-id before ‘.’ token
21 | deque.pop_front();
| ^
card.cpp:22:9: error: expected unqualified-id before ‘.’ token
22 | deque.push_back(n);
|