Problem card
User Akshar
Submission Time 2024-06-21 09:57:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function β€˜int main()’:
card.cpp:9:17: error: invalid types β€˜<unresolved overloaded function type>[int]’ for array subscript
9 | dq.push_back[i];
| ^
card.cpp:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if(s[i]=="a"){
| ^~~