criyle/codenet-compile-errors huggingface dataset:
Language: C

#include <stdio.h>


int main(){
int i = 1,x;
while(++i <= n){
x = i;
if (x % 3 == 0){
printf(" %d",i);
continue;
}

while(x){
if (x % 10 == 3){
printf(" %d",i);
break;
x /= 10;
}

}
printf("\n");

return 0;
}

}


return ans;
}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: 'n' undeclared (first use in this function)
    6 | while(++i <= n){
      |              ^
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:29:1: error: expected identifier or '(' before 'return'
   29 | return ans;
      | ^~~~~~
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^
Language: C

#include <stdio.h>


void call(int n){
int i = 1,x;
while(++i <= n){
x = i;
if (x % 3 == 0){
printf(" %d",i);
continue;
}

while(x){
if (x % 10 == 3){
printf(" %d",i);
break;
x /= 10;
}

}
printf("\n");

return;
}

}


return ans;
}

Compiler output:
main.c:29:1: error: expected identifier or '(' before 'return'
   29 | return ans;
      | ^~~~~~
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^
Language: C

#include <stdio.h>


void call(int n){
int i = 1,x;
while(++i <= n){
x = i;
if (x % 3 == 0){
printf(" %d",i);
continue;
}

while(x){
if (x % 10 == 3){
printf(" %d",i);
break;
x /= 10;
}
}
printf("\n");



return;
}

Compiler output:
main.c: In function 'call':
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C

#include <stdio.h>


void call(int n){
int i = 1,x;
while(++i <= n){
x = i;
if (x % 3 == 0){
printf(" %d",i);
continue;
}

while(x){
if (x % 10 == 3){
printf(" %d",i);
break;
x /= 10;
}
}



}
printf("\n");

return;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>


void call(int n){
int i = 1,x;
while(++i <= n){
x = i;
if (x % 3 == 0){
printf(" %d",i);
continue;
}

while(x){
if (x % 10 == 3){
printf(" %d",i);
break;
}
x /= 10;
}
}
printf("\n");

return;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>


void call(int n){
int i = 1,x;
while(++i <= n){
x = i;
if (x % 3 == 0){
printf(" %d",i);
continue;
}

while(x){
if (x % 10 == 3){
printf(" %d",i);
break;
}
x /= 10;
}

}
printf("\n");

return;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>

int main(void)
{
	int n,c;
	scanf("%d",&n);

	for(c=1;c<=n;c++){
		
		if((int)c%3==0||
		   (int)c%10==3||(int)c/10==3||
		   (int)c%100==3||(int)c/100==3||(int)c%100/10==3||(int)c%100%10==3||
		   (int)c%1000==3||(int)c/1000==3||(int)c%1000%100%10==3||(int)c%1000%100/10==3||(int)c%1000/100%10||(int)c%1000/100/10){
		printf(" %d",c);
		}
	}
printf("%d",n);
printf("\n");
return 0;

Compiler output:
main.c: In function 'main':
main.c:19:1: error: expected declaration or statement at end of input
   19 | return 0;
      | ^~~~~~
Language: C

#include <stdio.h>

int main(void) {

	int n, i, ii;

	scanf_s("%d", &n);

	for (i = 1; i <= n; i++) {
		if (i % 3 == 0) {
			printf(" %d", i);
		} else if (i % 10 == 3) {
		        printf(" %d", i);
			}
	}
	printf("\n");
	scanf_s("%d", &n);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf
Language: C

#include<stdio.h>
int main(){
  int n,i;
  scanf("%d",&n);
  for(i=3;i<=n;i++){
    if(i%3==0){
      printf(" %d",i);
     else if(i%10==3)printf(" %d",i);
      else if(i%10==3)printf(" %d",i);
      else if(i/10%10==3)printf(" %d",i);
      else if(i/100%10==3)printf(" %d",i);
      else if(i/1000%10==3)printf(" %d",i);
    }
        }
  printf("\n");       
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:6: error: expected '}' before 'else'
    8 |      else if(i%10==3)printf(" %d",i);
      |      ^~~~
main.c: At top level:
main.c:15:10: error: expected declaration specifiers or '...' before string constant
   15 |   printf("\n");
      |          ^~~~
main.c:16:3: error: expected identifier or '(' before 'return'
   16 |   return 0;
      |   ^~~~~~
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C

#include<stdio.h>
int main(){
  int n,i;
  scanf("%d",&n);
  for(i=3;i<=n;i++){
    if(i%3==0){
      printf(" %d",i);
      continue;
    }
      if(i%10==3)printf(" %d",i);
      else if(i%10==3)printf(" %d",i);
      else if(i/10%10==3)printf(" %d",i);
      else if(i/100%10==3)printf(" %d",i);
      else if(i/1000%10==3)printf(" %d",i);
    }
        }
  printf("\n");       
  return 0;
}

Compiler output:
main.c:17:10: error: expected declaration specifiers or '...' before string constant
   17 |   printf("\n");
      |          ^~~~
main.c:18:3: error: expected identifier or '(' before 'return'
   18 |   return 0;
      |   ^~~~~~
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
  int n, x, i;
  scanf("%d", &n);

  if (n >= 3 && n <= 10000) {
    for (i = 1; i <= n; i++) {
      if (i % 3 == 0) {
        printf(" %d", i);
      } else if {
        x = 1;
        while(x != 0) {
          if (x % 10 == 3) {
            printf(" %d", x);
            break;
          }
          x /= 10;
        }
      }
    }
    putchar('\n');
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:17: error: expected '(' before '{' token
   12 |       } else if {
      |                 ^
      |                 (
Language: C

#include <stdio.h>

void div(int m){
	int p = m;
	while(p >= 10){
		if(p % 10 == 3){
			printf(" %d" , m);
			break;
		}else{
			p = p / 10;
		}
	}
	if(p < 10 && p % 10 == 3){
		printf(" %d" , m);
	}
}

void call(int n){
	int i;
	for(i=1; i<=n; i++){
		if ( i % 3 == 0 ){
			printf(" %d" , i);
		}else{
			div(i);
		}
	}
}

int main(void){
	int n;
	scanf("%d", &n);
	call(n);
????????????printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:33:1: error: expected expression before '?' token
   33 | ????????????printf("\n");
      | ^
Language: C

#include <stdio.h>

int main()
{
	int i;
	int n;
	
	scanf("%d",&n);
	
	for(i=1;i<=n;i++){
		if(i%3 == 0){
			printf(" %d",i);
		}else if(i%10 == 3){
			printf(" %d",i);
		}
	}

Compiler output:
main.c: In function 'main':
main.c:16:9: error: expected declaration or statement at end of input
   16 |         }
      |         ^
Language: C

#include <stdio.h>
??
int main(void) {
????????
????????int n,i;
????????scanf("%d",&n);
????????for (i=1; i<=n; i++){
????????????????if (i%3==0) printf(" %d",i);
????????????else if(i%10==3)printf(" %d",i);
????????????else if(i/10%10==3)printf(" %d",i);
????????????else if(i/100%10==3)printf(" %d",i);
????????????else if(i/1000%10==3)printf(" %d",i);
????????????????
????????????????}
??????????
????????printf("\n");
????????return 0;
}

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

#include <stdio.h>
int maiin(){
	int x=1,y,z;

	scanf("%d",&y);
	while(1){
		if(x%3==0)
			printf(" %d",x);
		else if(x%10==3){
				printf(" %d",x);
				z=x;
				while(1){
					z /= 10;
					if(z<10)
						break;
					else if(z%10==3)
						printf(" %d",z);
				}
			}
			if(x==y)
				break;
			x++;
		}
		return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>
int main(){
	int x=1,y,z;

	scanf("%d",&y);
	while(1){
		if(x%3==0)
			printf(" %d",x);
		else if(x%10==3){
				printf(" %d",x);
				z=x;
				while(1){
					z /= 10;
					else if(z%10==3)
						printf(" %d",z);
					if(z<10)
						break;
				}
			}
			if(x==y)
				break;
			x++;
		}
		return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:41: error: 'else' without a previous 'if'
   14 |                                         else if(z%10==3)
      |                                         ^~~~
Language: C

int main(void){
    int i,x,n;
    scanf("%d",&n);
    for(i=1; i<=n; ++i){
    	x=i;
	if(x%3==0){
		printf(" %d",i);
 	}else{
	do{
		if(x%10==3)
			printf(" %d",i);
			break;
		else
			x/=10;
	}while(x);
    	}
    }
    putchar('\n');
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |     scanf("%d",&n);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:3:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |     scanf("%d",&n);
      |     ^~~~~
main.c:3:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |                 printf(" %d",i);
      |                 ^~~~~~
main.c:7:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |                         printf(" %d",i);
      |                         ^~~~~~
main.c:11:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:17: error: 'else' without a previous 'if'
   13 |                 else
      |                 ^~~~
main.c:18:5: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
   18 |     putchar('\n');
      |     ^~~~~~~
main.c:18:5: note: include '<stdio.h>' or provide a declaration of 'putchar'
Language: C

#include <stdio.h>

int main(void){
	int i,n,res,c=10;
	scanf("%d",&n);
	for(i=1;i<=ni++){
		if(i%3==0)
			printf(" %d",i);
		else if(i%10==3)
			printf(" %d",i);
		else{
			do{
				if(i/c==3)
					printf(" %d",i);	
				c*=10;
			}while(i/c!=0);
		}
	}
	putchar('\n');
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:20: error: 'ni' undeclared (first use in this function); did you mean 'n'?
    6 |         for(i=1;i<=ni++){
      |                    ^~
      |                    n
main.c:6:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:24: error: expected ';' before ')' token
    6 |         for(i=1;i<=ni++){
      |                        ^
      |                        ;
Language: C

#include <stdio.h>


int main(void) {

	// 1_5-D Structured Programming

	int n;
	int i,j,x;
	
	for(i=1; i<n; i++){
		if(i%3==0){
			printf(" %d",i);
		}else{
			x = i;
			while(0<x){
				if(x%10==0){
					printf(" %d",i);
					break;
				}
			}
	}
	println("\n");
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:9: error: implicit declaration of function 'println'; did you mean 'printf'? [-Wimplicit-function-declaration]
   23 |         println("\n");
      |         ^~~~~~~
      |         printf
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
	int i,n,s;
	scanf("%d",&n);
	for(i=1;i<=n;i++){
		s=i;
		while(s>=40){
			s/=10;
		}
		if(s%3==0||s%10==3||s/10=3){
			printf(" %d",i);
		}
	}
	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:41: error: lvalue required as left operand of assignment
   10 |                 if(s%3==0||s%10==3||s/10=3){
      |                                         ^
Language: C

#include<cstdio>
 
void call( int n )
{
    int i = 1;
    do
    {
        int x = i;
         
        if( x % 3 == 0 )
            printf( " %d", i );
        else
        {
            do
            {
                if( x % 10 == 0 )
                    printf( " %d", i );
                x /= 10;
            } while( x );
        }
    }while( ++i <= n );
 
    puts("");
 
    return;
}
 
int main()
{
    int n;
    scanf( "%d", &n );
    call( n );
 
    return 0;
}

Compiler output:
main.c:1:9: fatal error: cstdio: No such file or directory
    1 | #include<cstdio>
      |         ^~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

int n;

void call(int n){
  int i = 1;
  while (1)
  {
	  if (x % 3 == 0)
	  {
		  printf(" %d", i);
	  }
	  break;
  }
  /*
 CHECK_NUM:
  int x = i;
  if ( x % 3 == 0 ){
    cout << " " << i;
    goto END_CHECK_NUM;
  }
  */
  while ()
  {
	  if (x % 10 == 3)
	  {
		  printf(" %d", i);
	  }
	  x /= 10;
	  if (x == 0) break;
  }
  /*
 INCLUDE3:
  if ( x % 10 == 3 ){
    cout << " " << i;
    goto END_CHECK_NUM;
  }
  x /= 10;
  if ( x ) goto INCLUDE3;
  */
  do
  {
	  if (++i <= n)
	  {
		  while (1)
		  {
			  if (x % 3 == 0)
			  {
				  printf(" %d", i);
			  }
			  break;
		  }
	  }
	  else
	  {
		  break;
	  }
  }
  while(1)
  
  printf("\n");
	/*
 END_CHECK_NUM:
  if ( ++i <= n ) goto CHECK_NUM;
  cout << endl;
  */
}

int main(void)
{
	scanf("%d", &n);
	/*
	cin >> n;
	*/

	call(n);

	return 0;
}

Compiler output:
main.c: In function 'call':
main.c:9:15: error: 'x' undeclared (first use in this function)
    9 |           if (x % 3 == 0)
      |               ^
main.c:9:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:10: error: expected expression before ')' token
   23 |   while ()
      |          ^
main.c:59:11: error: expected ';' before 'printf'
   59 |   while(1)
      |           ^
      |           ;
   60 | 
   61 |   printf("\n");
      |   ~~~~~~
Language: C

#include<stdio.h>

int main(void)
{
	int x;
	int i;

	scanf("%d",&n)

	for(i=0;i<x;i++){
	
		if( i+1 % 3  == 0){
			printf("%d ",i+1);
		}
		else if( i % 3 ==0){
			printf("%d ",i+1);
		}
		else if( i % 30 ==0){
			printf("%d \n",i+1);
		}
		else if( i % 300 ==0){
		printf("%d \n",i+1);
		}
		else if( i % 3000 ==0){
			printf("%d ",i+1);
		}
	}
	printf("\n");
	return 0;
}	

Compiler output:
main.c: In function 'main':
main.c:8:21: error: 'n' undeclared (first use in this function)
    8 |         scanf("%d",&n)
      |                     ^
main.c:8:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:23: error: expected ';' before 'for'
    8 |         scanf("%d",&n)
      |                       ^
      |                       ;
    9 | 
   10 |         for(i=0;i<x;i++){
      |         ~~~
Language: C

#include<stdio.h>

int main(void)
{
	int x;
	int i;

	scanf("%d",&x)

	for(i=0;i<x;i++){
	
		if( i+1 % 3  == 0){
			printf("%d ",i+1);
		}
		else if( i % 3 ==0){
			printf("%d ",i+1);
		}
		else if( i % 30 ==0){
			printf("%d \n",i+1);
		}
		else if( i % 300 ==0){
		printf("%d \n",i+1);
		}
		else if( i % 3000 ==0){
			printf("%d ",i+1);
		}
	}
	printf("\n");
	return 0;
}	

Compiler output:
main.c: In function 'main':
main.c:8:23: error: expected ';' before 'for'
    8 |         scanf("%d",&x)
      |                       ^
      |                       ;
    9 | 
   10 |         for(i=0;i<x;i++){
      |         ~~~
Language: C

#include<stdio.h>

int main(void)
{
	int x;
	int i;

	scanf("%d",&x);

	for(i=0;i<x;i++){
	
		if( i+1 % 3  == 0){
			printf("%d ",i+1);
		}
		else{
			if( i % 1000 ==3){
				printf("%d ",i+1);
			}
			else{
				n=i/10;
				if( n % 100 ==3){
					printf("%d ",i+1);
				}
				else{
					n=i/100
					if( n % 10 ==3)printf("%d ",i+1);
				}
			}
		}
	}
	printf("\n");
	return 0;
}	

Compiler output:
main.c: In function 'main':
main.c:20:33: error: 'n' undeclared (first use in this function)
   20 |                                 n=i/10;
      |                                 ^
main.c:20:33: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:48: error: expected ';' before 'if'
   25 |                                         n=i/100
      |                                                ^
      |                                                ;
   26 |                                         if( n % 10 ==3)printf("%d ",i+1);
      |                                         ~~
Language: C

#include<stdio.h>

int main(void){

	int x;
	int i;
	int j;
	int n;	

	scanf('%d",&x);
	i=0
	while(1){
		i = i+1;
		if(i==x)break;
		if( i % 3 == 0){
			print(" %d",i);
		}
		else{
			for(j=1;j<10000;j=j*10){
				n=i/j;	
				if(n % 10 ==3)print(" %d",i);
			}
		}
	}
	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:15: warning: missing terminating ' character
   10 |         scanf('%d",&x);
      |               ^
main.c:10:15: error: missing terminating ' character
   10 |         scanf('%d",&x);
      |               ^~~~~~~~~
main.c:11:12: error: expected ')' before 'while'
   11 |         i=0
      |            ^
      |            )
   12 |         while(1){
      |         ~~~~~
main.c:10:14: note: to match this '('
   10 |         scanf('%d",&x);
      |              ^
main.c:11:10: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
   11 |         i=0
      |         ~^~
      |          |
      |          int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:26:18: error: expected ';' before '}' token
   26 |         return 0;
      |                  ^
      |                  ;
   27 | }
      | ~
Language: C

#include<stdio.h>

int main(void){

	int x;
	int i;
	int j;
	int n;	

	scanf("%d",&x);
	i=0
	while(1){
		i = i+1;
		if(i==x)break;
		if( i % 3 == 0){
			print(" %d",i);
		}
		else{
			for(j=1;j<10000;j=j*10){
				n=i/j;	
				if(n % 10 ==3)print(" %d",i);
			}
		}
	}
	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:12: error: expected ';' before 'while'
   11 |         i=0
      |            ^
      |            ;
   12 |         while(1){
      |         ~~~~~
Language: C

#include<stdio.h>

int main(void){

	int x;
	int i;
	int j;
	int n;	

	scanf("%d",&x);
	i=0;
	while(1){
		i = i+1;
		if(i==x)break;
		if( i % 3 == 0){
			print(" %d",i);
		}
		else{
			for(j=1;j<10000;j=j*10){
				n=i/j;	
				if(n % 10 ==3)print(" %d",i);
			}
		}
	}
	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:25: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   16 |                         print(" %d",i);
      |                         ^~~~~
      |                         printf
Language: C

#include<stdio.h>

int main(void){

	int x;
	int i;
	int j;
	int n;	

	scanf("%d",&x);
	i=0;
	while(1){
		i = i+1;
		if(i==x)break;
		if( i % 3 == 0){
			print(" %d",i);
		}
		else{
			for(j=1;j<10000;j=j*10){
				n=i/j;	
				if(n % 10 ==3)printf(" %d",i);
			}
		}
	}
	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:25: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   16 |                         print(" %d",i);
      |                         ^~~~~
      |                         printf
Language: C

#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include<stdio.h>
int main() {
	int n,i,x;
	bool f;
	scanf("%d", &n);
	for (i = 1; i <= n; ++i) {
		for (x = i,f=0;2<x; x /= 10) {
			if (!(x % 3) || (x % 10 == 3)) f = 1;
		}
		if(f) printf(" %d", i);
	}
	putchar('\n');
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: unknown type name 'bool'
    6 |         bool f;
      |         ^~~~
main.c:4:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    3 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    4 | int main() {
Language: C

#include <stdio.h>

int main()
{
	int n,i;
	scanf("%d",&n);
	for(i=1; i<=n; i++){
		if(i%3==0 || i%10==3 || i/=10){
		printf(" %d",i);
		}
	}
	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:42: error: lvalue required as left operand of assignment
    8 |                 if(i%3==0 || i%10==3 || i/=10){
      |                                          ^~
Language: C

#include <stdio.h>

int main()
{
	int n,i;
	scanf("%d",&n);
	for(i=1; i<=n; i++){
		if(i%3==0 || i%10==3 || i/i=10){
		printf(" %d",i);
		}
	}
	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:44: error: lvalue required as left operand of assignment
    8 |                 if(i%3==0 || i%10==3 || i/i=10){
      |                                            ^
Language: C

#include <stdio.h>

int main(void){
	int n, i, x;
	scanf("%d", &n);

	for(i=1; i<=n; i++){
		if(i%3==0)
			printf(" %d", i);
		else if(i%10==3)
			printf(" %d", i);
		x = i;
		while(1){
			x /= 10;
			if(x%3==0)
				printf(" %d")
		}

	}
	printf("\n");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:46: error: expected ';' before '}' token
   16 |                                 printf(" %d")
      |                                              ^
      |                                              ;
   17 |                 }
      |                 ~
Language: C

#include <stdio.h>

int main(){
	int n, i, j;
	scanf_s("%d",&n);

	for (i = 1; i < n; i++)
	{
		j = i;
		if (i % 3 == 0)
		{
			printf("%d",i);
		}
		else
		{
			while (j>0)
			{
				if (j % 10 == 3)
				{
					printf("%d", i);
					break;
				}
				j /= 10;
			}
		}
	}
	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scanf_s("%d",&n);
      |         ^~~~~~~
      |         scanf
Language: C

void call(int n) {
    int i, x;
    for (i = 1; i <= n; i++) {
        x = i;
        if (x % 3 == 0) {
            printf(" %d", i);
            continue;
        }
        do {
            if (x % 10 == 3) {
                printf(" %d", i);
                break;
            }
        } while (x /= 10);
    }
}

Compiler output:
main.c: In function 'call':
main.c:6:13: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |             printf(" %d", i);
      |             ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | void call(int n) {
main.c:6:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |             printf(" %d", i);
      |             ^~~~~~
main.c:6:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |                 printf(" %d", i);
      |                 ^~~~~~
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
int main(void){
int n,i;
scanf("%d",&n);
for(i=1;i <= n;i++){
if (i%3 == 0 || i%10 == 3){
printf(" %d",i);
break;
}
while(1){
i /= 10;
if (i%3 == 0 || i%10 == 3){
printf(" %d",i);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
int n,i,x;
scanf("%d",&n);
for(i=1;i <= n;i++){
if (i%3 == 0){
printf(" %d",i);
}
x=i;
while(x /= 10){
printf(" %d",i);
}
}
}
return 0;
}

Compiler output:
main.c:15:1: error: expected identifier or '(' before 'return'
   15 | return 0;
      | ^~~~~~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
  int n = 0;
  int i;

    scanf("%d", &n);

    for(i = 1; i <= n; i++){
      if(i % 3 == 0 || i % 10 == 3)
	printf(" %d", i);
 
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
  int n = 0;
  int i;

  scanf("%d", &n);
  
  for(i = 1; i <= n; i++){
    if(i % 3 == 0)
      printf(" %d", i);
    do{
      if(i % 10 == 3)
	printf(" %d", i);
    }while(x /= 10);
  }
  
  putchar('\n');
    
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:12: error: 'x' undeclared (first use in this function)
   16 |     }while(x /= 10);
      |            ^
main.c:16:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
  int n = 0;
  int i;
  
  scanf("%d", &n);
  
  for(i = 1; i <= n; i++){
    
    if(x % 3 == 0)
      printf(" %d", i);
    else
      do{
	if(i % 10 == 3 || i % 100 == 3 || i % 1000 == 3 )
	  printf(" %d", i);  
  
  putchar('\n');
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:8: error: 'x' undeclared (first use in this function)
   12 |     if(x % 3 == 0)
      |        ^
main.c:12:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:1: error: expected 'while' at end of input
   22 | }
      | ^
main.c:22:1: error: expected declaration or statement at end of input
main.c:22:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>

int main(void)
{
  int n = 0;
  int i;
  
  scanf("%d", &n);
  
  for(i = 1; i <= n; i++)
    if(x % 3 == 0 || i % 10 == 3 || i % 100 == 3 || i % 1000 == 3 )
	  printf(" %d", i);  
  
  putchar('\n');   
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:8: error: 'x' undeclared (first use in this function)
   11 |     if(x % 3 == 0 || i % 10 == 3 || i % 100 == 3 || i % 1000 == 3 )
      |        ^
main.c:11:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
  int n = 0;
  int i;
  int x = 0;
  
  scanf("%d", &n);
  
  for(i = 1; i <= n; i++){
    x = i;
    
    if(x % 3 == 0)
      printf(" %d", i);
    else
      do{
	if(x % 10 == 3){
	  printf(" %d", i);  
	  break;
	}while(x /= 10);
	
  putchar('\n');
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:1: error: expected 'while' at end of input
   26 | }
      | ^
main.c:26:1: error: expected declaration or statement at end of input
main.c:26:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>

int main(void)
{
  int n = 0;
  int i;
  int x = 0;
  
  scanf("%d", &n);
  
  for(i = 1; i <= n; i++){
    x = i;
    
    if(x % 3 == 0)
      printf(" %d", i);
    else
      do{
	if(x % 10 == 3){
	  printf(" %d", i);  
	  break;
	}
      }while(x /= 10);
	
  putchar('\n');
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

#include<stdio.h>

int main(void){
    int n,i,f,j;

    for(i = 1;i <= n;i++){
        f = 0:
        if(i % 3 == 0)
            f = 1;
        j = i;
        while(j > 0){
            if(j % 10 == 3){
                f = 1;break;
            }
            j /= 10;
        }
        if(f == 1)
            printf(" %d",i);
    }
    printf("\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:14: error: expected ';' before ':' token
    7 |         f = 0:
      |              ^
      |              ;
Language: C

#include <stdio.h>
int main(void){
	int n;
	scanf("%d",&n);
	int i;
	for(i=1;i<n;i++){
		int x;
		x = i;
		if(x%3==0){
			printf(" %d",i);
		}else if(x%10==3){
			printf(" %d",i);
	}
	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C

n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i))}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i))}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
    1 | n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i))}
      |   ^~~~
main.c: In function 'main':
main.c:1:3: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i))}
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i))}
main.c:1:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i))}
      |               ^~~~~
main.c:1:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:50: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i))}
      |                                                  ^~~~~~
main.c:1:50: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:50: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:50: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:66: error: expected expression before '}' token
    1 | n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i))}
      |                                                                  ^
Language: C

n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i++))}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i++))}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
    1 | n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i++))}
      |   ^~~~
main.c: In function 'main':
main.c:1:3: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i++))}
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i++))}
main.c:1:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i++))}
      |               ^~~~~
main.c:1:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:50: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i++))}
      |                                                  ^~~~~~
main.c:1:50: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:50: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:50: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:68: error: expected expression before '}' token
    1 | n;main(i){for(scanf("%d",&n);n-i;(i%3&&i%10-3)?0:printf(" %d",i++))}
      |                                                                    ^
Language: C

i;main(n){for(scanf("%d",&n);n-i++;(i%3&&i%10-3&&i/10%10-3&&i/100%10-3&&i/1e3%10-3)?0:printf(" %d",i));i=!puts("");}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | i;main(n){for(scanf("%d",&n);n-i++;(i%3&&i%10-3&&i/10%10-3&&i/100%10-3&&i/1e3%10-3)?0:printf(" %d",i));i=!puts("");}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
    1 | i;main(n){for(scanf("%d",&n);n-i++;(i%3&&i%10-3&&i/10%10-3&&i/100%10-3&&i/1e3%10-3)?0:printf(" %d",i));i=!puts("");}
      |   ^~~~
main.c: In function 'main':
main.c:1:3: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | i;main(n){for(scanf("%d",&n);n-i++;(i%3&&i%10-3&&i/10%10-3&&i/100%10-3&&i/1e3%10-3)?0:printf(" %d",i));i=!puts("");}
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | i;main(n){for(scanf("%d",&n);n-i++;(i%3&&i%10-3&&i/10%10-3&&i/100%10-3&&i/1e3%10-3)?0:printf(" %d",i));i=!puts("");}
main.c:1:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | i;main(n){for(scanf("%d",&n);n-i++;(i%3&&i%10-3&&i/10%10-3&&i/100%10-3&&i/1e3%10-3)?0:printf(" %d",i));i=!puts("");}
      |               ^~~~~
main.c:1:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:78: error: invalid operands to binary % (have 'double' and 'int')
    1 | i;main(n){for(scanf("%d",&n);n-i++;(i%3&&i%10-3&&i/10%10-3&&i/100%10-3&&i/1e3%10-3)?0:printf(" %d",i));i=!puts("");}
      |                                                                         ~~~~~^
      |                                                                          |
      |                                                                          double
main.c:1:87: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | i;main(n){for(scanf("%d",&n);n-i++;(i%3&&i%10-3&&i/10%10-3&&i/100%10-3&&i/1e3%10-3)?0:printf(" %d",i));i=!puts("");}
      |                                                                                       ^~~~~~
main.c:1:87: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:87: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:87: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:107: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | i;main(n){for(scanf("%d",&n);n-i++;(i%3&&i%10-3&&i/10%10-3&&i/100%10-3&&i/1e3%10-3)?0:printf(" %d",i));i=!puts("");}
      |                                                                                                           ^~~~
main.c:1:107: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C

 3 6 9 12 13 15 18 21 23 24 27 30 31 32 33 34 35 36 37 38 39 42 43 45 48 51 53 54 57 60 63 66 69 72 73 75 78 81 83 84 87 90 93 96 99 102 103 105 108 111 113 114 117 120 123 126 129 130 131 132 133 134 135 136 137 138 139 141 143 144 147 150 153 156 159 162 163 165 168 171 173 174 177 180 183 186 189 192 193 195 198 201 203 204 207 210 213 216 219 222 223 225 228 230 231 232 233 234 235 236 237 238 239 240 243 246 249 252 253 255

Compiler output:
main.c:1:2: error: expected identifier or '(' before numeric constant
    1 |  3 6 9 12 13 15 18 21 23 24 27 30 31 32 33 34 35 36 37 38 39 42 43 45 48 51 53 54 57 60 63 66 69 72 73 75 78 81 83 84 87 90 93 96 99 102 103 105 108 111 113 114 117 120 123 126 129 130 131 132 133 134 135 136 137 138 139 141 143 144 147 150 153 156 159 162 163 165 168 171 173 174 177 180 183 186 189 192 193 195 198 201 203 204 207 210 213 216 219 222 223 225 228 230 231 232 233 234 235 236 237 238 239 240 243 246 249 252 253 255
      |  ^
Language: C

#include<stdio.h>
int main(void){
	int i = 1;
	int x ;
	for(i=1;++i;i=<n){
		x = i;
		if(x % 3 == 0){
			printf(" %d",i);
		}
		else if {
			while(1){
				if(x % 10 == 3){
					printf(" %d");
				}
				else{
					x /-= 10;
					if(x!) break;
				}
		}
	}
	printf("\n");
	return 0;
}
		

Compiler output:
main.c: In function 'main':
main.c:5:23: error: expected expression before '<' token
    5 |         for(i=1;++i;i=<n){
      |                       ^
main.c:10:25: error: expected '(' before '{' token
   10 |                 else if {
      |                         ^
      |                         (
main.c:16:44: error: expected expression before '-=' token
   16 |                                         x /-= 10;
      |                                            ^~
main.c:17:45: error: expected ')' before '!' token
   17 |                                         if(x!) break;
      |                                           ~ ^
      |                                             )
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
	int i = 1;
	int x ;
	for(i=1;++i;i<=n){
		x = i;
		if(x % 3 == 0){
			printf(" %d",i);
		}
		else if {
			while(1){
				if(x % 10 == 3){
					printf(" %d");
				}
				else{
					x = x/ 10;
					if(x!) break;
				}
		}
	}
	printf("\n");
	return 0;
}
		

Compiler output:
main.c: In function 'main':
main.c:5:24: error: 'n' undeclared (first use in this function)
    5 |         for(i=1;++i;i<=n){
      |                        ^
main.c:5:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:25: error: expected '(' before '{' token
   10 |                 else if {
      |                         ^
      |                         (
main.c:17:45: error: expected ')' before '!' token
   17 |                                         if(x!) break;
      |                                           ~ ^
      |                                             )
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
	int i = 1;
	int n;
	scanf("%d\n",&n);
	int x ;
	for(i=1;++i;i<=n){
		x = i;
		if(x % 3 == 0){
			printf(" %d",i);
		}
		else if {
			while(1){
				if(x % 10 == 3){
					printf(" %d");
				}
				else{
					x = x/ 10;
					if(x==0) break;
				}
		}
	}
	printf("\n");
	return 0;
}
	

Compiler output:
main.c: In function 'main':
main.c:12:25: error: expected '(' before '{' token
   12 |                 else if {
      |                         ^
      |                         (
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
	int i = 1;
	int n;
	scanf("%d\n",&n);
	int x ;
	for(i=1;++i;i<=n){
		x = i;
		if(x % 3 == 0){
			printf(" %d",i);
		}
		else if {
			while(1){
				if(x % 10 == 3){
					printf(" %d");
					break;
				}
				else{
					x = x/ 10;
					if(x==0) break;
				}
			}
		}
	}
	printf("\n");
	return 0;
}
		

Compiler output:
main.c: In function 'main':
main.c:12:25: error: expected '(' before '{' token
   12 |                 else if {
      |                         ^
      |                         (
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void){
	int n,i,j,num;
	char string[10];
	scanf("%d",&n);
	for(i = 1;i <= n;i++){
		if(i%3 == 0){
			printf(" %d",i);
		}
		else{
			itoa(i,string,10);
			num = strlen(string);
			for(j = 0;j < num;j++){
				if(string[j] == '3'){
					printf(" %d",i);
					break;
				}
			}
		}
	}
	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:25: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
   13 |                         itoa(i,string,10);
      |                         ^~~~
Language: C

#include<stdio.h>

int main(){
	int n = 0;
	int i = 0;
	int j = 0;
	int k = 0;
	
	scanf("%d",&n);
	
	for(i = 1 ; i < n ; i++)
	{
		if(i % 3 == 0)
		{
			printf(" %d",i);
		}
	}//???????????°

	for(i = 1 ; i < n ; i++)
	{
		
		if(i % 10 == 3)
		{
			printf(" %d",i);
		
		}
		
	
	}

	printf("\n");
return 0 ;

Compiler output:
main.c: In function 'main':
main.c:32:1: error: expected declaration or statement at end of input
   32 | return 0 ;
      | ^~~~~~
Language: C

#include <stdio.h>

int main(void)
{void call(int n){
  int i = 1;
 CHECK_NUM:
  int x = i;
  if ( x % 3 == 0 ){
    cout << " " << i;
    goto END_CHECK_NUM;
  }
 INCLUDE3:
  if ( x % 10 == 3 ){
    cout << " " << i;
    goto END_CHECK_NUM;
  }
  x /= 10;
  if ( x ) goto INCLUDE3;
 END_CHECK_NUM:
  if ( ++i <= n ) goto CHECK_NUM;

  cout << endl;
}

Compiler output:
main.c: In function 'call':
main.c:9:5: error: 'cout' undeclared (first use in this function)
    9 |     cout << " " << i;
      |     ^~~~
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:11: error: 'endl' undeclared (first use in this function)
   22 |   cout << endl;
      |           ^~~~
main.c: In function 'main':
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C

#include<stdio.h>

int main(){
 int n;
 scanf("%d",&n);
 for(i=1;i<=n;i++){
  if(i%3=0 || i%10=3){
   printf(" %d",i);}
  else{}}
 return 0;} 

Compiler output:
main.c: In function 'main':
main.c:6:6: error: 'i' undeclared (first use in this function)
    6 |  for(i=1;i<=n;i++){
      |      ^
main.c:6:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
 int n,i;
 scanf("%d",&n);
 for(i=1;i<=n;i++){
  if(i%3=0 || i%10=3){
   printf(" %d",i);}
  else{}}
 return 0;} 

Compiler output:
main.c: In function 'main':
main.c:7:19: error: lvalue required as left operand of assignment
    7 |   if(i%3=0 || i%10=3){
      |                   ^
Language: C

#include<stdio.h>

int main(){
 int n,i;
 scanf("%d",&n);
 for(i=1;i<=n;i++){
  if(i%3=0 || i%10=3){
   printf(" %d",i);}
  else{}}
 return 0;}

Compiler output:
main.c: In function 'main':
main.c:7:19: error: lvalue required as left operand of assignment
    7 |   if(i%3=0 || i%10=3){
      |                   ^
Language: C

#include<stdio.h>

int main(){
 int n,i;
 scanf("%d",&n);
 for(i=1;i<=n;i++){
  if(i%3==0 || i%10==3){
   printf(" %d",i);}
  else{}}
 printf("\n")
 return 0;}

Compiler output:
main.c: In function 'main':
main.c:10:14: error: expected ';' before 'return'
   10 |  printf("\n")
      |              ^
      |              ;
   11 |  return 0;}
      |  ~~~~~~
Language: C

#include<stdio.h>
#include<math.h>

int main(){
 int n,i,j;
 scanf("%d",&n);
 for(i=1;i<=n;i++){
  for(j=1;j<5;j++){
   if(3*pow(10,j-1) <= i%(pow(10,j)) && 4*pow(10,j-1) > i%(pow(10,j))){
    printf(" %d",i);}}
  if(i%3==0){
   printf(" %d",i);}
  else{}}
 printf("\n");
 return 0;}

Compiler output:
main.c: In function 'main':
main.c:9:25: error: invalid operands to binary % (have 'int' and 'double')
    9 |    if(3*pow(10,j-1) <= i%(pow(10,j)) && 4*pow(10,j-1) > i%(pow(10,j))){
      |                         ^~~~~~~~~~~~
      |                           |
      |                           double
main.c:9:58: error: invalid operands to binary % (have 'int' and 'double')
    9 |    if(3*pow(10,j-1) <= i%(pow(10,j)) && 4*pow(10,j-1) > i%(pow(10,j))){
      |                                                          ^~~~~~~~~~~~
      |                                                            |
      |                                                            double
Language: C

#include<stdio.h>
#include<math.h>

int main(){
 int n,i,j,pow;
 scanf("%d",&n);
 for(i=1;i<=n;i++){
  for(j=1;j<5;j++){
   if(3*pow(10,j-1) <= i%(pow(10,j)) && 4*pow(10,j-1) > i%(pow(10,j))){
    printf(" %d",i);}}
  if(i%3==0){
   printf(" %d",i);}
  else{}}
 printf("\n");
 return 0;}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: called object 'pow' is not a function or function pointer
    9 |    if(3*pow(10,j-1) <= i%(pow(10,j)) && 4*pow(10,j-1) > i%(pow(10,j))){
      |         ^~~
main.c:5:12: note: declared here
    5 |  int n,i,j,pow;
      |            ^~~
main.c:9:27: error: called object 'pow' is not a function or function pointer
    9 |    if(3*pow(10,j-1) <= i%(pow(10,j)) && 4*pow(10,j-1) > i%(pow(10,j))){
      |                           ^~~
main.c:5:12: note: declared here
    5 |  int n,i,j,pow;
      |            ^~~
main.c:9:43: error: called object 'pow' is not a function or function pointer
    9 |    if(3*pow(10,j-1) <= i%(pow(10,j)) && 4*pow(10,j-1) > i%(pow(10,j))){
      |                                           ^~~
main.c:5:12: note: declared here
    5 |  int n,i,j,pow;
      |            ^~~
main.c:9:60: error: called object 'pow' is not a function or function pointer
    9 |    if(3*pow(10,j-1) <= i%(pow(10,j)) && 4*pow(10,j-1) > i%(pow(10,j))){
      |                                                            ^~~
main.c:5:12: note: declared here
    5 |  int n,i,j,pow;
      |            ^~~
Language: C

#include <stdio.h>
int main()
{
 int a;
 scanf("%d",&a);
 for(int i=1;i<=a;i++)
 {
  if(N%3==0)
   printf("%d",i);
  if(N%10==3)
   printf("%d",i);
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:6: error: 'N' undeclared (first use in this function)
    8 |   if(N%3==0)
      |      ^
main.c:8:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main()
{
 int N,i;
 scanf("%d",&N);
 for(i=1;i<=N;i++)
 {
  if(i%3==0)
   printf("%d",i);
  if(i%10==3)
  {
   x=x/3;
  }
 }
 printf("\n");
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:4: error: 'x' undeclared (first use in this function)
   12 |    x=x/3;
      |    ^
main.c:12:4: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main()
{
 int N,i,x;
 scanf("%d",&N);
 for (i = 3; i <= n; i++){
        if (i % 3 == 0){
            printf(" %d", i);
        }
        else {
            x = i;
            while (x != 0){
                if (x % 10 == 3){
                    printf(" %d", i);
                    break;
                }
                x /= 10;
            }
        }
    }
      
 printf("\n");
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: 'n' undeclared (first use in this function)
    6 |  for (i = 3; i <= n; i++){
      |                   ^
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main()
{
 int N,i,x;
 scanf("%d",&N);
 for (i = 3; i <= n; i++){
        if (i % 3 == 0)
            printf(" %d", i);
        else {
            x = i;
            while (x != 0){
                if (x % 10 == 3){
                    printf(" %d", i);
                    break;
                }
                x /= 10;
            }
    }
      
 printf("\n");
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: 'n' undeclared (first use in this function)
    6 |  for (i = 3; i <= n; i++){
      |                   ^
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C

#include <stdio.h>
int main()
{
 int N,i,x;
 scanf("%d",&N);
 for (i = 3; i <= N; i++){
        if (i % 3 == 0)
            printf(" %d", i);
        else {
            x = i;
            while (x != 0){
                if (x % 10 == 3){
                    printf(" %d", i);
                    break;
                }
                x /= 10;
            }
    }
      
 printf("\n");
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^