Language: C

main(N,R,M,m,y,n,t,c,i,d){float r;for(scanf("%d",&N);N--;printf("%d\n",R)){for(scanf("%d%d%d",&M,&y,&n),R=M;n--;R=m>R?m:R)if(m=M,d=0,scanf("%d%f%d",&t,&r,&c),t)for(i=0;i<y;i++)m+=(int)(r*m)-c;else{for(i=0;i<y;i++)d+=(int)(r*m),m-=c;m+=d;}exit(0);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(N,R,M,m,y,n,t,c,i,d){float r;for(scanf("%d",&N);N--;printf("%d\n",R)){for(scanf("%d%d%d",&M,&y,&n),R=M;n--;R=m>R?m:R)if(m=M,d=0,scanf("%d%f%d",&t,&r,&c),t)for(i=0;i<y;i++)m+=(int)(r*m)-c;else{for(i=0;i<y;i++)d+=(int)(r*m),m-=c;m+=d;}exit(0);}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'N' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'R' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'M' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'm' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'y' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 't' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:1:39: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(N,R,M,m,y,n,t,c,i,d){float r;for(scanf("%d",&N);N--;printf("%d\n",R)){for(scanf("%d%d%d",&M,&y,&n),R=M;n--;R=m>R?m:R)if(m=M,d=0,scanf("%d%f%d",&t,&r,&c),t)for(i=0;i<y;i++)m+=(int)(r*m)-c;else{for(i=0;i<y;i++)d+=(int)(r*m),m-=c;m+=d;}exit(0);}
      |                                       ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(N,R,M,m,y,n,t,c,i,d){float r;for(scanf("%d",&N);N--;printf("%d\n",R)){for(scanf("%d%d%d",&M,&y,&n),R=M;n--;R=m>R?m:R)if(m=M,d=0,scanf("%d%f%d",&t,&r,&c),t)for(i=0;i<y;i++)m+=(int)(r*m)-c;else{for(i=0;i<y;i++)d+=(int)(r*m),m-=c;m+=d;}exit(0);}
main.c:1:39: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(N,R,M,m,y,n,t,c,i,d){float r;for(scanf("%d",&N);N--;printf("%d\n",R)){for(scanf("%d%d%d",&M,&y,&n),R=M;n--;R=m>R?m:R)if(m=M,d=0,scanf("%d%f%d",&t,&r,&c),t)for(i=0;i<y;i++)m+=(int)(r*m)-c;else{for(i=0;i<y;i++)d+=(int)(r*m),m-=c;m+=d;}exit(0);}
      |                                       ^~~~~
main.c:1:39: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:58: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(N,R,M,m,y,n,t,c,i,d){float r;for(scanf("%d",&N);N--;printf("%d\n",R)){for(scanf("%d%d%d",&M,&y,&n),R=M;n--;R=m>R?m:R)if(m=M,d=0,scanf("%d%f%d",&t,&r,&c),t)for(i=0;i<y;i++)m+=(int)(r*m)-c;else{for(i=0;i<y;i++)d+=(int)(r*m),m-=c;m+=d;}exit(0);}
      |                                                          ^~~~~~
main.c:1:58: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:58: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:58: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:239: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    1 | main(N,R,M,m,y,n,t,c,i,d){float r;for(scanf("%d",&N);N--;printf("%d\n",R)){for(scanf("%d%d%d",&M,&y,&n),R=M;n--;R=m>R?m:R)if(m=M,d=0,scanf("%d%f%d",&t,&r,&c),t)for(i=0;i<y;i++)m+=(int)(r*m)-c;else{for(i=0;i<y;i++)d+=(int)(r*m),m-=c;m+=d;}exit(0);}
      |                                                                                                                                                                                                                                               ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | main(N,R,M,m,y,n,t,c,i,d){float r;for(scanf("%d",&N);N--;printf("%d\n",R)){for(scanf("%d%d%d",&M,&y,&n),R=M;n--;R=m>R?m:R)if(m=M,d=0,scanf("%d%f%d",&t,&r,&c),t)for(i=0;i<y;i++)m+=(int)(r*m)-c;else{for(i=0;i<y;i++)d+=(int)(r*m),m-=c;m+=d;}exit(0);}
main.c:1:239: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
    1 | main(N,R,M,m,y,n,t,c,i,d){float r;for(scanf("%d",&N);N--;printf("%d\n",R)){for(scanf("%d%d%d",&M,&y,&n),R=M;n--;R=m>R?m:R)if(m=M,d=0,scanf("%d%f%d",&t,&r,&c),t)for(i=0;i<y;i++)m+=(int)(r*m)-c;else{for(i=0;i<y;i++)d+=(int)(r*m),m-=c;m+=d;}exit(0);}
      |                                                                                                                                                                                                                                               ^~~~
main.c:1:239: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:1:1: error: expected declaration or statement at end of input
    1 | main(N,R,M,m,y,n,t,c,i,d){float r;for(scanf("%d",&N);N--;printf("%d\n",R)){for(scanf("%d%d%d",&M,&y,&n),R=M;n--;R=m>R?m:R)if(m=M,d=0,scanf("%d%f%d",&t,&r,&c),t)for(i=0;i<y;i++)m+=(int)(r*m)-c;else{for(i=0;i<y;i++)d+=(int)(r*m),m-=c;m+=d;}exit(0);}
      | ^~~~