运行 ID: 123311

Main.cc: In function ‘int main()’:
Main.cc:22:7: error: ‘tail’ was not declared in this scope
     q[tail]=x;
       ^~~~
Main.cc:22:7: note: suggested alternative: ‘tanl’
     q[tail]=x;
       ^~~~
       tanl
Main.cc:24:5: error: ‘head1’ was not declared in this scope
     head1++;
     ^~~~~
Main.cc:28:7: error: ‘tail’ was not declared in this scope
     q[tail]=y;
       ^~~~
Main.cc:28:7: note: suggested alternative: ‘tanl’
     q[tail]=y;
       ^~~~
       tanl
Main.cc:30:5: error: ‘head2’ was not declared in this scope
     head2++;
     ^~~~~
Main.cc:34:7: error: ‘tail’ was not declared in this scope
     q[tail]=x;
       ^~~~
Main.cc:34:7: note: suggested alternative: ‘tanl’
     q[tail]=x;
       ^~~~
       tanl
Main.cc:36:5: error: ‘head1’ was not declared in this scope
     head1++;
     ^~~~~
Main.cc:37:5: error: ‘head2’ was not declared in this scope
     head2++;
     ^~~~~
Main.cc:40:11: error: ‘tail’ was not declared in this scope
   cout<