#include<bits/stdc++.h>
using namespace std;
queue<long long> a;
int main()
{
int n;
char b[1000000]={};
for(int i=0;i<n;i++)
{
cin>>b[i];
if(b[i]=='1')
{
int x;
cin>>x;
a.push(x);
}
if(b[i]=='2')
{
if(a.empty()==0)
{
a.pop();
}
else
{
cout<<"ERR_CANNOT_POP"<<endl;
}
}
if(b[i]=='3')
{
if(a.empty()==0)
{
cout<<a.top();
}
else
{
cout<<"ERR_CANNOT_QUERY"<<endl;
}
}
if(b[i]=='4')
{
cout<<a.size()<<endl;
}
}
}
代码32行的位置就是编译错误