Language: C++

#include <iostream>
using namespace std;

int n,r;

int main(){

	while(1){
    cin >> n >> r;
    if ((n == 0)&&(r == 0)){
          break;
		}
	int A[n];
	for (int i = 0; i <= n-1; i++){
		A[i] = n-i;
		//cout << A[i] << endl;
	}
	int p,c;


for (int i = r; i >=1; i--){

		cin >> p >> c;

		int M[p-1];
		int N[c];
		for (int i = 0; i <= p-2; i++){
			M[i] = A[i];
		}
		for (int i = 0; i <= c-1; i++){
			N[i] = A[p-1+i];
		}
		//??????
???????????????for (int i = 0; i <= c-1; i++){
			A[i]  = N[i];
		}
		for (int i = 0; i <= p-2; i++){
			A[c+i]  = M[i];
		}
		if(i == 1){
			cout << A[0] << endl;
		}

	}
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:1: error: expected primary-expression before '?' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      | ^
a.cc:34:2: error: expected primary-expression before '?' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |  ^
a.cc:34:3: error: expected primary-expression before '?' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |   ^
a.cc:34:4: error: expected primary-expression before '?' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |    ^
a.cc:34:5: error: expected primary-expression before '?' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |     ^
a.cc:34:6: error: expected primary-expression before '?' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |      ^
a.cc:34:7: error: expected primary-expression before '?' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |       ^
a.cc:34:8: error: expected primary-expression before '?' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |        ^
a.cc:34:9: error: expected primary-expression before '?' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |         ^
a.cc:34:10: error: expected primary-expression before '?' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |          ^
a.cc:34:11: error: expected primary-expression before '?' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |           ^
a.cc:34:12: error: expected primary-expression before '?' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |            ^
a.cc:34:13: error: expected primary-expression before '?' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |             ^
a.cc:34:14: error: expected primary-expression before '?' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |              ^
a.cc:34:15: error: expected primary-expression before '?' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |               ^
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:16: error: expected ':' before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
      |                :
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:16: error: expected ':' before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
      |                :
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:16: error: expected ':' before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
      |                :
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:16: error: expected ':' before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
      |                :
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:16: error: expected ':' before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
      |                :
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:16: error: expected ':' before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
      |                :
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:16: error: expected ':' before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
      |                :
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:16: error: expected ':' before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
      |                :
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:16: error: expected ':' before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
      |                :
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:16: error: expected ':' before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
      |                :
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:16: error: expected ':' before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
      |                :
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:16: error: expected ':' before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
      |                :
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:16: error: expected ':' before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
      |                :
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:16: error: expected ':' before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
      |                :
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:16: error: expected ':' before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
      |                :
a.cc:34:16: error: expected primary-expression before 'for'
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                ^~~
a.cc:34:45: error: expected ';' before ')' token
   34 | ???????????????for (int i = 0; i <= c-1; i++){
      |                                             ^
      |                                             ;