Language: C++

#include<iostream>
int N,T,L,r,i,m[101],n[101];
main(){
&#160; for(std::cin>>N>>T>>L>>L;i<N;)std::cin>>m[i]>>n[i++];
&#160; i=r=0;
&#160; for(;m[i]+n[i];){
&#160; &#160; bool broken=false;
&#160; &#160; if(m[i]){
&#160; &#160; &#160; m[i]--;
&#160; &#160; &#160; r+=10;
&#160; &#160; &#160; T++;
&#160; &#160; }else{
&#160; &#160; &#160; n[i]--;
&#160; &#160; &#160; r+=100;
&#160; &#160; }
&#160; &#160; if(T>L)broken=true;
&#160; &#160; if(r>=90){
&#160; &#160; &#160; r-=90;
&#160; &#160; &#160; if(r/10 > T){
&#160; &#160; &#160; &#160; broken=true;
&#160; &#160; &#160; }else{
&#160; &#160; &#160; &#160; m[i]+=r;
&#160; &#160; &#160; &#160; T-=r/10;
&#160; &#160; &#160; &#160; r=0;
&#160; &#160; &#160; }
&#160; &#160; }
&#160; &#160; if(broken)break;
&#160; &#160; i = (i+1)%N;
&#160; }
&#160; std::cout<<i+1<<"\n";
}

Compiler output:
a.cc:4:2: error: stray '#' in program
    4 | &#160; for(std::cin>>N>>T>>L>>L;i<N;)std::cin>>m[i]>>n[i++];
      |  ^
a.cc:5:2: error: stray '#' in program
    5 | &#160; i=r=0;
      |  ^
a.cc:6:2: error: stray '#' in program
    6 | &#160; for(;m[i]+n[i];){
      |  ^
a.cc:7:2: error: stray '#' in program
    7 | &#160; &#160; bool broken=false;
      |  ^
a.cc:7:9: error: stray '#' in program
    7 | &#160; &#160; bool broken=false;
      |         ^
a.cc:8:2: error: stray '#' in program
    8 | &#160; &#160; if(m[i]){
      |  ^
a.cc:8:9: error: stray '#' in program
    8 | &#160; &#160; if(m[i]){
      |         ^
a.cc:9:2: error: stray '#' in program
    9 | &#160; &#160; &#160; m[i]--;
      |  ^
a.cc:9:9: error: stray '#' in program
    9 | &#160; &#160; &#160; m[i]--;
      |         ^
a.cc:9:16: error: stray '#' in program
    9 | &#160; &#160; &#160; m[i]--;
      |                ^
a.cc:10:2: error: stray '#' in program
   10 | &#160; &#160; &#160; r+=10;
      |  ^
a.cc:10:9: error: stray '#' in program
   10 | &#160; &#160; &#160; r+=10;
      |         ^
a.cc:10:16: error: stray '#' in program
   10 | &#160; &#160; &#160; r+=10;
      |                ^
a.cc:11:2: error: stray '#' in program
   11 | &#160; &#160; &#160; T++;
      |  ^
a.cc:11:9: error: stray '#' in program
   11 | &#160; &#160; &#160; T++;
      |         ^
a.cc:11:16: error: stray '#' in program
   11 | &#160; &#160; &#160; T++;
      |                ^
a.cc:12:2: error: stray '#' in program
   12 | &#160; &#160; }else{
      |  ^
a.cc:12:9: error: stray '#' in program
   12 | &#160; &#160; }else{
      |         ^
a.cc:13:2: error: stray '#' in program
   13 | &#160; &#160; &#160; n[i]--;
      |  ^
a.cc:13:9: error: stray '#' in program
   13 | &#160; &#160; &#160; n[i]--;
      |         ^
a.cc:13:16: error: stray '#' in program
   13 | &#160; &#160; &#160; n[i]--;
      |                ^
a.cc:14:2: error: stray '#' in program
   14 | &#160; &#160; &#160; r+=100;
      |  ^
a.cc:14:9: error: stray '#' in program
   14 | &#160; &#160; &#160; r+=100;
      |         ^
a.cc:14:16: error: stray '#' in program
   14 | &#160; &#160; &#160; r+=100;
      |                ^
a.cc:15:2: error: stray '#' in program
   15 | &#160; &#160; }
      |  ^
a.cc:15:9: error: stray '#' in program
   15 | &#160; &#160; }
      |         ^
a.cc:16:2: error: stray '#' in program
   16 | &#160; &#160; if(T>L)broken=true;
      |  ^
a.cc:16:9: error: stray '#' in program
   16 | &#160; &#160; if(T>L)broken=true;
      |         ^
a.cc:17:2: error: stray '#' in program
   17 | &#160; &#160; if(r>=90){
      |  ^
a.cc:17:9: error: stray '#' in program
   17 | &#160; &#160; if(r>=90){
      |         ^
a.cc:18:2: error: stray '#' in program
   18 | &#160; &#160; &#160; r-=90;
      |  ^
a.cc:18:9: error: stray '#' in program
   18 | &#160; &#160; &#160; r-=90;
      |         ^
a.cc:18:16: error: stray '#' in program
   18 | &#160; &#160; &#160; r-=90;
      |                ^
a.cc:19:2: error: stray '#' in program
   19 | &#160; &#160; &#160; if(r/10 > T){
      |  ^
a.cc:19:9: error: stray '#' in program
   19 | &#160; &#160; &#160; if(r/10 > T){
      |         ^
a.cc:19:16: error: stray '#' in program
   19 | &#160; &#160; &#160; if(r/10 > T){
      |                ^
a.cc:20:2: error: stray '#' in program
   20 | &#160; &#160; &#160; &#160; broken=true;
      |  ^
a.cc:20:9: error: stray '#' in program
   20 | &#160; &#160; &#160; &#160; broken=true;
      |         ^
a.cc:20:16: error: stray '#' in program
   20 | &#160; &#160; &#160; &#160; broken=true;
      |                ^
a.cc:20:23: error: stray '#' in program
   20 | &#160; &#160; &#160; &#160; broken=true;
      |                       ^
a.cc:21:2: error: stray '#' in program
   21 | &#160; &#160; &#160; }else{
      |  ^
a.cc:21:9: error: stray '#' in program
   21 | &#160; &#160; &#160; }else{
      |         ^
a.cc:21:16: error: stray '#' in program
   21 | &#160; &#160; &#160; }else{
      |                ^
a.cc:22:2: error: stray '#' in program
   22 | &#160; &#160; &#160; &#160; m[i]+=r;
      |  ^
a.cc:22:9: error: stray '#' in program
   22 | &#160; &#160; &#160; &#160; m[i]+=r;
      |         ^
a.cc:22:16: error: stray '#' in program
   22 | &#160; &#160; &#160; &#160; m[i]+=r;
      |                ^
a.cc:22:23: error: stray '#' in program
   22 | &#160; &#160; &#160; &#160; m[i]+=r;
      |                       ^
a.cc:23:2: error: stray '#' in program
   23 | &#160; &#160; &#160; &#160; T-=r/10;
      |  ^
a.cc:23:9: error: stray '#' in program
   23 | &#160; &#160; &#160; &#160; T-=r/10;
      |         ^
a.cc:23:16: error: stray '#' in program
   23 | &#160; &#160; &#160; &#160; T-=r/10;
      |                ^
a.cc:23:23: error: stray '#' in program
   23 | &#160; &#160; &#160; &#160; T-=r/10;
      |                       ^
a.cc:24:2: error: stray '#' in program
   24 | &#160; &#160; &#160; &#160; r=0;
      |  ^
a.cc:24:9: error: stray '#' in program
   24 | &#160; &#160; &#160; &#160; r=0;
      |         ^
a.cc:24:16: error: stray '#' in program
   24 | &#160; &#160; &#160; &#160; r=0;
      |                ^
a.cc:24:23: error: stray '#' in program
   24 | &#160; &#160; &#160; &#160; r=0;
      |                       ^
a.cc:25:2: error: stray '#' in program
   25 | &#160; &#160; &#160; }
      |  ^
a.cc:25:9: error: stray '#' in program
   25 | &#160; &#160; &#160; }
      |         ^
a.cc:25:16: error: stray '#' in program
   25 | &#160; &#160; &#160; }
      |                ^
a.cc:26:2: error: stray '#' in program
   26 | &#160; &#160; }
      |  ^
a.cc:26:9: error: stray '#' in program
   26 | &#160; &#160; }
      |         ^
a.cc:27:2: error: stray '#' in program
   27 | &#160; &#160; if(broken)break;
      |  ^
a.cc:27:9: error: stray '#' in program
   27 | &#160; &#160; if(broken)break;
      |         ^
a.cc:28:2: error: stray '#' in program
   28 | &#160; &#160; i = (i+1)%N;
      |  ^
a.cc:28:9: error: stray '#' in program
   28 | &#160; &#160; i = (i+1)%N;
      |         ^
a.cc:29:2: error: stray '#' in program
   29 | &#160; }
      |  ^
a.cc:30:2: error: stray '#' in program
   30 | &#160; std::cout<<i+1<<"\n";
      |  ^
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:3: error: lvalue required as unary '&' operand
    4 | &#160; for(std::cin>>N>>T>>L>>L;i<N;)std::cin>>m[i]>>n[i++];
      |   ^~~
a.cc:5:3: error: lvalue required as unary '&' operand
    5 | &#160; i=r=0;
      |   ^~~
a.cc:6:3: error: lvalue required as unary '&' operand
    6 | &#160; for(;m[i]+n[i];){
      |   ^~~
a.cc:7:3: error: lvalue required as unary '&' operand
    7 | &#160; &#160; bool broken=false;
      |   ^~~
a.cc:7:10: error: lvalue required as unary '&' operand
    7 | &#160; &#160; bool broken=false;
      |          ^~~
a.cc:8:3: error: lvalue required as unary '&' operand
    8 | &#160; &#160; if(m[i]){
      |   ^~~
a.cc:8:10: error: lvalue required as unary '&' operand
    8 | &#160; &#160; if(m[i]){
      |          ^~~
a.cc:9:3: error: lvalue required as unary '&' operand
    9 | &#160; &#160; &#160; m[i]--;
      |   ^~~
a.cc:9:10: error: lvalue required as unary '&' operand
    9 | &#160; &#160; &#160; m[i]--;
      |          ^~~
a.cc:9:17: error: lvalue required as unary '&' operand
    9 | &#160; &#160; &#160; m[i]--;
      |                 ^~~
a.cc:10:3: error: lvalue required as unary '&' operand
   10 | &#160; &#160; &#160; r+=10;
      |   ^~~
a.cc:10:10: error: lvalue required as unary '&' operand
   10 | &#160; &#160; &#160; r+=10;
      |          ^~~
a.cc:10:17: error: lvalue required as unary '&' operand
   10 | &#160; &#160; &#160; r+=10;
      |                 ^~~
a.cc:11:3: error: lvalue required as unary '&' operand
   11 | &#160; &#160; &#160; T++;
      |   ^~~
a.cc:11:10: error: lvalue required as unary '&' operand
   11 | &#160; &#160; &#160; T++;
      |          ^~~
a.cc:11:17: error: lvalue required as unary '&' operand
   11 | &#160; &#160; &#160; T++;
      |                 ^~~
a.cc:12:3: error: lvalue required as unary '&' operand
   12 | &#160; &#160; }else{
      |   ^~~
a.cc:12:10: error: lvalue required as unary '&' operand
   12 | &#160; &#160; }else{
      |          ^~~
a.cc:13:3: error: lvalue required as unary '&' operand
   13 | &#160; &#160; &#160; n[i]--;
      |   ^~~
a.cc:13:10: error: lvalue required as unary '&' operand
   13 | &#160; &#160; &#160; n[i]--;
      |          ^~~
a.cc:13:17: error: lvalue required as unary '&' operand
   13 | &#160; &#160; &#160; n[i]--;
      |                 ^~~
a.cc:14:3: error: lvalue required as unary '&' operand
   14 | &#160; &#160; &#160; r+=100;
      |   ^~~
a.cc:14:10: error: lvalue required as unary '&' operand
   14 | &#160; &#160; &#160; r+=100;
      |          ^~~
a.cc:14:17: error: lvalue required as unary '&' operand
   14 | &#160; &#160; &#160; r+=100;
      |                 ^~~
a.cc:15:3: error: lvalue required as unary '&' operand
   15 | &#160; &#160; }
      |   ^~~
a.cc:15:10: error: lvalue required as unary '&' operand
   15 | &#160; &#160; }
      |          ^~~
a.cc:16:3: error: lvalue required as unary '&' operand
   16 | &#160; &#160; if(T>L)broken=true;
      |   ^~~
a.cc:16:10: error: lvalue required as unary '&' operand
   16 | &#160; &#160; if(T>L)broken=true;
      |          ^~~
a.cc:17:3: error: lvalue required as unary '&' operand
   17 | &#160; &#160; if(r>=90){
      |   ^~~
a.cc:17:10: error: lvalue required as unary '&' operand
   17 | &#160; &#160; if(r>=90){
      |          ^~~
a.cc:18:3: error: lvalue required as unary '&' operand
   18 | &#160; &#160; &#160; r-=90;
      |   ^~~
a.cc:18:10: error: lvalue required as unary '&' operand
   18 | &#160; &#160; &#160; r-=90;
      |          ^~~
a.cc:18:17: error: lvalue required as unary '&' operand
   18 | &#160; &#160; &#160; r-=90;
      |                 ^~~
a.cc:19:3: error: lvalue required as unary '&' operand
   19 | &#160; &#160; &#160; if(r/10 > T){
      |   ^~~
a.cc:19:10: error: lvalue required as unary '&' operand
   19 | &#160; &#160; &#160; if(r/10 > T){
      |          ^~~
a.cc:19:17: error: lvalue re