Language: C

int main(int argc, char *argv[]) {
	char s[200000];
	int m[200000],j,x,i,p[200000];
	long long t;
	scanf("%s",&s);
	for(i=0;i<strlen(s);i++){
		p[i]=1;
	}
	for(j=0;j<strl(s)/2;j++){
		for(i=0;i<strlen(s);i++){
		    m[i]=0;
	    }
	    for(i=0;i<strlen(s);i++){
		    if(s[i]=='L'){
		    	m[i]=m[i]-p[i];
			    m[i-1]=m[i-1]+p[i];
		    }
		    else{
		    	m[i]=m[i]-p[i];
			    m[i+1]=m[i+1]+p[i];
	    	}
	    }
	    for(i=0;i<strlen(s);i++){
		    p[i]=p[i]+m[i];
	    }
    }	
	for(i=0;i<strlen(s);i++){
		printf("%d ",p[i]);
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf("%s",&s);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(int argc, char *argv[]) {
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%s",&s);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:19: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    6 |         for(i=0;i<strlen(s);i++){
      |                   ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen'
  +++ |+#include <string.h>
    1 | int main(int argc, char *argv[]) {
main.c:6:19: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    6 |         for(i=0;i<strlen(s);i++){
      |                   ^~~~~~
main.c:6:19: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:9:19: error: implicit declaration of function 'strl' [-Wimplicit-function-declaration]
    9 |         for(j=0;j<strl(s)/2;j++){
      |                   ^~~~
main.c:10:27: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   10 |                 for(i=0;i<strlen(s);i++){
      |                           ^~~~~~
main.c:10:27: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:13:23: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   13 |             for(i=0;i<strlen(s);i++){
      |                       ^~~~~~
main.c:13:23: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:23:23: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   23 |             for(i=0;i<strlen(s);i++){
      |                       ^~~~~~
main.c:23:23: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:27:19: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   27 |         for(i=0;i<strlen(s);i++){
      |                   ^~~~~~
main.c:27:19: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:28:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   28 |                 printf("%d ",p[i]);
      |                 ^~~~~~
main.c:28:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:28:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:28:17: note: include '<stdio.h>' or provide a declaration of 'printf'