Problem card
User Qxhb3
Submission Time 2025-02-20 19:53:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘void shuffle()’:
card.cpp:12:30: error: no match for ‘operator[]’ (operand types are ‘std::queue<long long int>’ and ‘int’)
12 | for (int b = 0; b<n; b++) a[b] = b;
| ^
card.cpp:15:32: error: no matching function for call to ‘std::basic_istream<char>::getline(std::istream&, std::string&, const char [2])’
15 | cin.getline(cin, moves, ".");
| ^
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from card.cpp:1:
/usr/include/c++/9/istream:647:5: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(std::basic_istream<_CharT, _Traits>::char_type*, std::streamsize, std::basi