运行 ID: 102064

Main.cc: In function ‘int main()’:
Main.cc:7:2: error: expected ‘;’ before ‘for’
  for(int i=1;i<=n;i++) {int x;cin>>x;q.push(x)} 
  ^~~
Main.cc:7:14: error: ‘i’ was not declared in this scope
  for(int i=1;i<=n;i++) {int x;cin>>x;q.push(x)} 
              ^