Problem card
User charliethetree
Submission Time 2023-04-19 21:43:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:20:17: error: ‘class std::queue<long long int>’ has no member named ‘top’; did you mean ‘pop’?
20 | first = nums.top();
| ^~~
| pop
card.cpp:24:18: error: ‘class std::queue<long long int>’ has no member named ‘top’; did you mean ‘pop’?
24 | second = nums.top();
| ^~~
| pop
card.cpp:29:40: error: expected ‘;’ before ‘nums’
29 | cout << first << " " << second << " " nums.top();
| ^~~~~
| ;
card.cpp:31:33: error: ‘class std::queue<long long int>’ has no member named ‘top’; did you mean ‘pop’?
31 | cout << second << " " << nums.top()<< " ";
| ^~~
| pop
card.