Language: C++

#include <stdio.h>
int main()
{
????int i=0, l,?? p, q, j=0;
????int d[50];
??
????while(1)
????????{
????????????for ( i = 0; i < 50; i++)
????????{
????????????d[i] = 0;
????????}???? 
????????????scanf("%d %d", &l, &p);
????????????if( l == 0 && p == 0 ) break;
????????????q = p;
????????????while(1)
????????{
????????????????????if ( i >= l ) i = 0;
????????????if ( p > 0 )
????????????????{
????????????????????d[i] += 1;
????????????????????p--;
????????????????????if ( d[i] == q && p == 0)
????????????????{
????????????????????break;
????????????????}?? 
????????????????}
????????????else if ( p == 0 )
????????????????{
????????????????????p = d[i];
????????????????????d[i] = 0;
????????????????}
????????????i++;
????????}
????????????printf("%d\n", i);
????????}
????return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: expected primary-expression before '?' token
    4 | ????int i=0, l,?? p, q, j=0;
      | ^
a.cc:4:2: error: expected primary-expression before '?' token
    4 | ????int i=0, l,?? p, q, j=0;
      |  ^
a.cc:4:3: error: expected primary-expression before '?' token
    4 | ????int i=0, l,?? p, q, j=0;
      |   ^
a.cc:4:4: error: expected primary-expression before '?' token
    4 | ????int i=0, l,?? p, q, j=0;
      |    ^
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int i=0, l,?? p, q, j=0;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int i=0, l,?? p, q, j=0;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int i=0, l,?? p, q, j=0;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int i=0, l,?? p, q, j=0;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int i=0, l,?? p, q, j=0;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int i=0, l,?? p, q, j=0;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int i=0, l,?? p, q, j=0;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int i=0, l,?? p, q, j=0;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int i=0, l,?? p, q, j=0;
      |     ^~~
a.cc:5:1: error: expected primary-expression before '?' token
    5 | ????int d[50];
      | ^
a.cc:5:2: error: expected primary-expression before '?' token
    5 | ????int d[50];
      |  ^
a.cc:5:3: error: expected primary-expression before '?' token
    5 | ????int d[50];
      |   ^
a.cc:5:4: error: expected primary-expression before '?' token
    5 | ????int d[50];
      |    ^
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int d[50];
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int d[50];
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int d[50];
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int d[50];
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int d[50];
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int d[50];
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int d[50];
      |     ^~~
a.cc:5:5: error: expected ':' before 'int'
    5 | ????int d[50];
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ????int d[50];
      |     ^~~
a.cc:6:1: error: expected primary-expression before '?' token
    6 | ??
      | ^
a.cc:6:2: error: expected primary-expression before '?' token
    6 | ??
      |  ^
a.cc:7:1: error: expected primary-expression before '?' token
    7 | ????while(1)
      | ^
a.cc:7:2: error: expected primary-expression before '?' token
    7 | ????while(1)
      |  ^
a.cc:7:3: error: expected primary-expression before '?' token
    7 | ????while(1)
      |   ^
a.cc:7:4: error: expected primary-expression before '?' token
    7 | ????while(1)
      |    ^
a.cc:7:5: error: expected primary-expression before 'while'
    7 | ????while(1)
      |     ^~~~~
a.cc:7:5: error: expected ':' before 'while'
    7 | ????while(1)
      |     ^~~~~
      |     :
a.cc:7:5: error: expected primary-expression before 'while'
    7 | ????while(1)
      |     ^~~~~
a.cc:7:5: error: expected ':' before 'while'
    7 | ????while(1)
      |     ^~~~~
      |     :
a.cc:7:5: error: expected primary-expression before 'while'
    7 | ????while(1)
      |     ^~~~~
a.cc:7:5: error: expected ':' before 'while'
    7 | ????while(1)
      |     ^~~~~
      |     :
a.cc:7:5: error: expected primary-expression before 'while'
    7 | ????while(1)
      |     ^~~~~
a.cc:7:5: error: expected ':' before 'while'
    7 | ????while(1)
      |     ^~~~~
      |     :
a.cc:7:5: error: expected primary-expression before 'while'
    7 | ????while(1)
      |     ^~~~~
a.cc:7:5: error: expected ':' before 'while'
    7 | ????while(1)
      |     ^~~~~
      |     :
a.cc:7:5: error: expected primary-expression before 'while'
    7 | ????while(1)
      |     ^~~~~
a.cc:7:5: error: expected ':' before 'while'
    7 | ????while(1)
      |     ^~~~~
      |     :
a.cc:7:5: error: expected primary-expression before 'while'
    7 | ????while(1)
      |     ^~~~~
a.cc:37:1: error: expected primary-expression before '?' token
   37 | ????return 0;
      | ^
a.cc:37:2: error: expected primary-expression before '?' token
   37 | ????return 0;
      |  ^
a.cc:37:3: error: expected primary-expression before '?' token
   37 | ????return 0;
      |   ^
a.cc:37:4: error: expected primary-expression before '?' token
   37 | ????return 0;
      |    ^
a.cc:37:5: error: expected primary-expression before 'return'
   37 | ????return 0;
      |     ^~~~~~
a.cc:37:5: error: expected ':' before 'return'
   37 | ????return 0;
      |     ^~~~~~
      |     :
a.cc:37:5: error: expected primary-expression before 'return'
   37 | ????return 0;
      |     ^~~~~~
a.cc:37:5: error: expected ':' before 'return'
   37 | ????return 0;
      |     ^~~~~~
      |     :
a.cc:37:5: error: expected primary-expression before 'return'
   37 | ????return 0;
      |     ^~~~~~
a.cc:37:5: error: expected ':' before 'return'
   37 | ????return 0;
      |     ^~~~~~
      |     :
a.cc:37:5: error: expected primary-expression before 'return'
   37 | ????return 0;
      |     ^~~~~~
a.cc:37:5: error: expected ':' before 'return'
   37 | ????return 0;
      |     ^~~~~~
      |     :
a.cc:37:5: error: expected primary-expression before 'return'
   37 | ????return 0;
      |     ^~~~~~