criyle/codenet-compile-errors huggingface dataset:
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 \n", i);
        else {
            x = i;
            while (x != 0){
                if (x % 10 == 3){
                    printf(" %d \n", 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 | }
      | ^
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=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 | }
      | ^
Language: C

#include <stdio.h>
#include <stdbool.h>

int main(void){

	int i, j, n;
	char mark;
	char marks[4]={'S', 'H', 'C', 'D'};
	int num;

	bool cards[4][13]={false};

	scanf("%d ", &n);
	for(i=0;i<n;i++){
		scanf("%c %d ", &mark, &num);
		for(j=0;j<4;j++){
			if(mark==marks[j]){
				cards[j][num-1]=true;
				break;
			}
		}
	}
	for(i=0;i<4;i++){
		for(j=0;j<13;j++){
			if(!cards[i][j]){
				printf("%c %d\n", marks[i], j+1);
			}
		}
	

	return 0;
}

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

#include <stdio.h>

int main(void){

	int a,i;
	scanf("%d", &a);

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: expected expression before '}' token
   13 |         }
      |         ^
Language: C

#include <stdio.h>

int main(void){

	int a,i;
	scanf("%d", &a);

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:9: error: expected expression before '}' token
   12 |         }
      |         ^
Language: C

#include <stdio.h>

int main(void){

	int a,i;
	scanf("%d",&a);

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

	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:61: error: expected ')' before 'i'
   11 |                 else if(i%10==3 || i/10%10==3 || i/100%10==3 i/1000%10==3)
      |                        ~                                    ^~
      |                                                             )
Language: C

#include <stdio.h>

int main(void){

	int a,i;
	scanf("%d",&a);

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

	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:64: error: called object is not a function or function pointer
   11 |                 else if(i%10==3 || (i/10)%10==3 || (i/100)%10==3 (i/1000)%10==3)
      |                                                                ^
Language: C

int main(void) {
	
	int i,a;
	scanf("%d",&a);
	int num[a];
	for(i = 0;i<=a;i++){
		num[i] = i;
		///if(num[i] % )
		if(num[i] % 3 == 0 || num[i] / 10 == 3){
			printf(" %d",num[i]);
		}
	//	printf(" %d",num[i]);
	}
	

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |         scanf("%d",&a);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void) {
main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         scanf("%d",&a);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:25: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |                         printf(" %d",num[i]);
      |                         ^~~~~~
main.c:10:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:9: error: expected declaration or statement at end of input
   13 |         }
      |         ^
Language: C

#include <stdio.h>

int main(void) {
	
	int i,a;
	scanf("%d",&a);
	int num[a];
	for(i = 0;i<=a;i++){
		num[i] = i;
	
		if(num[i] % 3 == 0 || num[i] / 10 == 3){
			printf(" %d",num[i]);
		}
	
	}

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

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

Compiler output:
main.c: In function 'main':
main.c:13:18: error: expected ';' before ')' token
   13 |             for(x){
      |                  ^
      |                  ;
main.c:13:18: error: expected expression before ')' token
Language: C

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

Compiler output:
main.c: In function 'call':
main.c:4:25: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |       if( i %  3 == 0 ){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:4:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    4 |       if( i %  3 == 0 ){printf(" %d",i);}
      |                         ^~~~~~
main.c:4:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:30: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    5 |       else if( i % 10 == 3 ){printf(" %d",i);}
      |                              ^~~~~~
main.c:5:30: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:4: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |    printf("\n");
      |    ^~~~~~
main.c:7:4: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
void call(int n);


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

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



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

Compiler output:
main.c: In function 'call':
main.c:6:25: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |       if( i %  3 == 0 ){printf(" %d",i);}
      |                         ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | 
main.c:6:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |       if( i %  3 == 0 ){printf(" %d",i);}
      |                         ^~~~~~
main.c:6:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:30: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |       else if( i % 10 == 3 ){printf(" %d",i);}
      |                              ^~~~~~
main.c:7:30: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:4: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |    printf("\n");
      |    ^~~~~~
main.c:9:4: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>


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

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);

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

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 n;
while(1){
scanf("%d",&n);
call(n);
}
return 0;
}

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

Compiler output:
main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'call' [-Wimplicit-function-declaration]
    6 | call(n);
      | ^~~~
main.c: At top level:
main.c:11:6: warning: conflicting types for 'call'; have 'void(int)'
   11 | void call(int n){
      |      ^~~~
main.c:6:1: note: previous implicit declaration of 'call' with type 'void(int)'
    6 | call(n);
      | ^~~~
main.c: In function 'call':
main.c:14:7: error: 'x' undeclared (first use in this function)
   14 |       x=i;
      |       ^
main.c:14:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:30: error: expected ')' before '}' token
   18 |                if(x % 10 == 3}{printf(" %d",i);
      |                  ~           ^
      |                              )
main.c:18:30: error: expected expression before '}' token
Language: C

#include<stdio.h>
int main(){
int n;
scanf("%d",&n);
call(n);
return 0;
}

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'call' [-Wimplicit-function-declaration]
    5 | call(n);
      | ^~~~
main.c: At top level:
main.c:9:6: warning: conflicting types for 'call'; have 'void(int)'
    9 | void call(int n){
      |      ^~~~
main.c:5:1: note: previous implicit declaration of 'call' with type 'void(int)'
    5 | call(n);
      | ^~~~
main.c: In function 'call':
main.c:12:7: error: 'x' undeclared (first use in this function)
   12 |       x=i;
      |       ^
main.c:12:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:30: error: expected ')' before '}' token
   16 |                if(x % 10 == 3}{printf(" %d",i);
      |                  ~           ^
      |                              )
main.c:16:30: error: expected expression before '}' token
Language: C

#include<stdio.h>
int main(){
int n;
scanf("%d",&n);
call(n);
return 0;
}

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'call' [-Wimplicit-function-declaration]
    5 | call(n);
      | ^~~~
main.c: At top level:
main.c:9:6: warning: conflicting types for 'call'; have 'void(int)'
    9 | void call(int n){
      |      ^~~~
main.c:5:1: note: previous implicit declaration of 'call' with type 'void(int)'
    5 | call(n);
      | ^~~~
main.c: In function 'call':
main.c:16:30: error: expected ')' before '}' token
   16 |                if(x % 10 == 3}{printf(" %d",i);
      |                  ~           ^
      |                              )
main.c:16:30: error: expected expression before '}' token
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected ';' before 'for'
    5 | scanf("%d",&n)
      |               ^
      |               ;
    6 | for(i=3;i<=n;i++){
      | ~~~
Language: C

#include <stdio.h>

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

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

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

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

#include<stdio.h>
int main(void)
{
  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 % 30 == 1||i % 30 == 2||i % 30 == 3||i % 30 == 4||i % 30 == 5||i % 30 == 6i % 30 == 7||i % 30 == 8||i % 30 == 9){
      printf(" %d",i);
    }
  }
  printf("\n");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:92: error: invalid operands to binary % (have 'complex int' and 'int')
   11 |     }else if(i % 30 == 1||i % 30 == 2||i % 30 == 3||i % 30 == 4||i % 30 == 5||i % 30 == 6i % 30 == 7||i % 30 == 8||i % 30 == 9){
      |                                                                                            ^
Language: C

#include<stdio.h>
int main(void)
{
  int n,i,k,m;
  k = 0;
  m = 0;
  scanf("%d",&n);
  for(i = 3;i <= n;i ++){
    if(i % 100 == 0){
      k++;
      if(k % 10==0){
        m++;
      }
    }
    if(i % 3 ==0){
      printf(" %d",i);
    }else if(i % 10 == 3){
      printf(" %d",i);
    }else if(i - k*100>= 30 && i - k*100< 40){
      if(i - k*100 - 30 == 0||i - k*100 - 30 == 1||i - k*100 - 30 == 2||i - k*100 - 30 == 3||i - k*100 - 30 == 4||i - k*100 - 30 == 5||i - k*100 - 30 == 6||i - k*100 - 30 == 7||i - k*100 - 30 == 8||i - k*100 - 30 == 9){
        printf(" %d",i);
      }
    }else if(i >= 300 && i<400){
      printf(" %d",i);
    }else if(i >= 3000 && i<4000){
      printf(" %d",i);
    }else if(i < 1000 && i - m*1000 >=300 &&i- m*1000<400)
      printf(" %d",i);
    }
  }
  printf("\n");
  return 0;
}

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

include <stdio.h>

int main (){

  int n,i,j,x;

  scanf("%d",&n);

    for(i=1;i<=n;i++){

      x=i;

      if(i%3==0){

        printf(" %d",i);

      }else{
        while(x>0){
          if(x%10==3){

         printf(" %d ",i);

         break;

          }else{
            x=x/10;
          }
        }
      }
    }

    printf("\n");
    return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <stdio.h>

int main(void)
{
	int n,a,b,c;
	scanf("%d",&n);
	for(a=1;a<=n;a++){
	/*3????????°*/
	if(a%3==0){
	printf(" %d",a);
	}
	/*1?????????3*/
	else if(a%10==3){
	printf(" %d",a);
	}else if(a/10%10==3){
	printf(" %d",a);
	}else if(a/100%10==3){
	printf(" %d",a);
	}else if(a/1000%10==3){
	printf(" %d",a);
	}
	printf("\n");
return 0;
}

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

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main(void) {
	int num;
	scanf("%d", &num);
	int i;
	int sum = 0;
	for (i = 0; i<num / 3; i++) {
		//3???????¶???????????????????
		sum ++;
	if(sum%3==0&&sum%10==0){
		printf(" %d", sum);
	}
	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 | }
      | ^
Language: C

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:6:5: error: 'cout' undeclared (first use in this function)
    6 |     cout << " " << i;
      |     ^~~~
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:11: error: 'endl' undeclared (first use in this function)
   19 |   cout << endl;
      |           ^~~~
Language: C

#include <stdio.h>

int main(int argc, const char * argv[])
{
    int i,limit;
    
    scanf("%d",&limit);
    
    for(i = ;i<=limit;i+=1){
        
        if(i%3==0||i-3==0||i/10==3){
            printf("%d",i);
        }
        
    }
    printf("\n");
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:13: error: expected expression before ';' token
    9 |     for(i = ;i<=limit;i+=1){
      |             ^
Language: C

#include <stdio.h>

int main(){

    int n,j; 

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

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

#include <stdio.h>

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

    scanf("%d", &n);
    for(i = 1; i <= n; i++){
        for(j = 10; j <= 10000; j *= 10){
            if(i % j == 0 || i % 3 == 0){
                printf("%d ", i);
                break;
            }
        ]
    }
    puts("");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:9: error: expected statement before ']' token
   14 |         ]
      |         ^
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

#include <stdio.h>

int main(void){
    int n, m;
    int i;

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

Compiler output:
main.c: In function 'main':
main.c:17:21: error: 'x' undeclared (first use in this function)
   17 |                     x /= 10;
      |                     ^
main.c:17:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:5: error: expected 'while' before '}' token
   20 |     }
      |     ^
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
main.c:23:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>

int main(void){
    int n, m;
    int i;

    scanf("%d", &n);
    for(i = 1; i <= n; i++){
        m = i;
        if(i % 3 == 0){
            printf(" %d", i);
        }else{
            do{
                if(m % 10 == 0)
                    printf(" %d", i);
                else
                    m /= 10;
            while(m > 0);
        }
    }
    puts("");
    return 0;
}

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

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:1: error: expected expression before '?' token
    6 | ??
      | ^
Language: C

int main(void){
    int n = 0;
    int i = 0;
 
    scanf("%d",&n);
    for (i = 1; i <= n; i++){
        printf(" ")
        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 / 100 == 3){
            printf(" %d", i);
        }
    }
    printf("\n");
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |     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:5:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |     scanf("%d",&n);
      |     ^~~~~
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |         printf(" ")
      |         ^~~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:20: error: expected ';' before 'if'
    7 |         printf(" ")
      |                    ^
      |                    ;
    8 |         if (i % 3 == 0){
      |         ~~          
main.c:21:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   21 |     printf("\n");
      |     ^~~~~~
main.c:21:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main()
{
  int n,val;
	 scanf("%d",&n);
	((n>=3)&&(n<=10000));
	for(val=1;val<=n; val++)
	{
    int tmp = val;
    if(val%3 == 0) 
	{ 
		printf(" %d",val);
    }
	} else 
	{
      while( tmp>0 )
	  {
        if( tmp%10 == 3 )
		{
          printf(" %d",val);
          break;
        }
        tmp /= 10;
      }
    }
  }
	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:10: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |          scanf("%d",&n);
      |          ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:4:10: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |          scanf("%d",&n);
      |          ^~~~~
main.c:4:10: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |                 printf(" %d",val);
      |                 ^~~~~~
main.c:11:17: 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]
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:11: error: 'else' without a previous 'if'
   13 |         } else
      |           ^~~~
main.c:15:14: error: 'tmp' undeclared (first use in this function)
   15 |       while( tmp>0 )
      |              ^~~
main.c:15:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:11: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   19 |           printf(" %d",val);
      |           ^~~~~~
main.c:19:11: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:26:16: error: expected declaration specifiers or '...' before string constant
   26 |         printf("\n");
      |                ^~~~
main.c:27:9: error: expected identifier or '(' before 'return'
   27 |         return 0;
      |         ^~~~~~
main.c:28:1: error: expected identifier or '(' before '}' token
   28 | }
      | ^
Language: C

#include <sdio.h>
int main(void)
{
  int i,j,k;
  scanf("%d",&i);
  for(j=0;j<=i;i++){
    if(j%3==0)
      printf("%d ",j);
  }
  printf("\n");
  return 0;
}

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

#include <sdio.h>
int main(void)
{
  int i,j,k;
  scanf("%d",&i);
  for(j=0;j<=i;j++){
    if(j%3==0)
      printf("%d ",j);
  }
  printf("\n");
  return 0;
}

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

// ITP1_5_D:   Structured Programming
// 2017.7.27
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>

void call(int n)
{
	int i = 1;
	int x;

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

#if 0
int main()
{
	int n;

	scanf("%d", &n);
	call(n);
}
#endif

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  x = 0;
   scanf("%d" ,&n);
  for(i=1;i<=n;i++){
   x=i;
  if(x%3==0||x%10==3){
 printf(" %d",i);
 }
x /=10;
}
printf("\n);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: 'n' undeclared (first use in this function)
    5 |    scanf("%d" ,&n);
      |                 ^
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:7: error: 'i' undeclared (first use in this function)
    6 |   for(i=1;i<=n;i++){
      |       ^
main.c:13:8: warning: missing terminating " character
   13 | printf("\n);
      |        ^
main.c:13:8: error: missing terminating " character
   13 | printf("\n);
      |        ^~~~~
main.c:14:1: error: expected expression before 'return'
   14 | return 0;
      | ^~~~~~
main.c:14:10: error: expected ';' before '}' token
   14 | return 0;
      |          ^
      |          ;
   15 | }
      | ~
Language: C

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

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

#include <stdio.h>

int main(void){
    int n,num;
    scanf("%d",&n);
    for(num=3;num<=n;num++){
        if(num%3 == 0){
            printf(" %d",num);
            continue;
        }
        if(num%10 == 3){
            printf(" %d",num);
            continue;
        }
        if(num%100 == 3){
            printf(" %d",num);
            continue;
        }
        if(num%1000 == 3){
            printf(" %d",num);
            continue;
        }
    }printf("\n")
    return 0;
}

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

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

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

Compiler output:
main.c: In function 'main':
main.c:14:34: error: invalid operands to binary % (have 'double' and 'int')
   14 |            check = i / pow(10,j) % 10;
      |                    ~~~~~~~~~~~~~ ^
      |                      |
      |                      double
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);}
if(i%10==3&&i%3!=0){
printf(" %d",i);}  
}
printf("\n")
return 0;
}

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

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

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

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

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

void call(int n) {
    int i;
    for(i = 1; i <= n; i++) {
        if(i % 3 == 0 || i % 10 == 3 || (i > 30 && (i / 10) % 3 == 0)) {
            printf(" %d", i);
        }
    }
    printf("\n");
}

int main() {
    int n;
    scans("%d", &n);
    call(n);
    return 0;
}

Compiler output:
main.c: In function 'call':
main.c:5:13: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |             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:5:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    5 |             printf(" %d", i);
      |             ^~~~~~
main.c:5:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |     printf("\n");
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: In function 'main':
main.c:13:5: error: implicit declaration of function 'scans' [-Wimplicit-function-declaration]
   13 |     scans("%d", &n);
      |     ^~~~~
Language: C

#include <stdio.h>
int main(void){
	int i=1;
}
int check(int i){
	int x=i;
	if(x%3==0){
		end();
	}
}

int include3(int x){
	if(x%10==3){
		end();
	}
	x=x/10;
	if(x)include3(x);
}
int end(int i){
	if(++i<=n)check();
}

Compiler output:
main.c: In function 'check':
main.c:8:17: error: implicit declaration of function 'end' [-Wimplicit-function-declaration]
    8 |                 end();
      |                 ^~~
main.c: In function 'end':
main.c:20:17: error: 'n' undeclared (first use in this function)
   20 |         if(++i<=n)check();
      |                 ^
main.c:20:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:19: error: too few arguments to function 'check'
   20 |         if(++i<=n)check();
      |                   ^~~~~
main.c:5:5: note: declared here
    5 | int check(int i){
      |     ^~~~~
Language: C

#include <stdio.h>
int main(void){
	int i=1;
}
int check(int i){
	int x=i;
	if(x%3==0){
		end(i);
	}
}

int include3(int x){
	if(x%10==3){
		end(x);
	}
	x=x/10;
	if(x)include3(x);
}
int end(int i){
	if(++i<=n)check(i);
}

Compiler output:
main.c: In function 'check':
main.c:8:17: error: implicit declaration of function 'end' [-Wimplicit-function-declaration]
    8 |                 end(i);
      |                 ^~~
main.c: In function 'end':
main.c:20:17: error: 'n' undeclared (first use in this function)
   20 |         if(++i<=n)check(i);
      |                 ^
main.c:20:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'check' [-Wimplicit-function-declaration]
    6 |         check(n,i,x);
      |         ^~~~~
main.c: At top level:
main.c:8:17: error: unknown type name 'i'
    8 | int check(int n,i,x){
      |                 ^
main.c:8:19: error: unknown type name 'x'
    8 | int check(int n,i,x){
      |                   ^
main.c:15:20: error: unknown type name 'i'
   15 | int include3(int n,i,x){
      |                    ^
main.c:15:22: error: unknown type name 'x'
   15 | int include3(int n,i,x){
      |                      ^
main.c:23:15: error: unknown type name 'i'
   23 | int end(int n,i,x){
      |               ^
main.c:23:17: error: unknown type name 'x'
   23 | int end(int n,i,x){
      |                 ^
Language: C

#include "stdio.h"
int check_num(int num);

void main(int input){
    int i = 1;

    if(input == 3)
    {
        printf("3");
        return 0;
    }

    while(1)
    {
        check_num(i);

        if(++i > input)
        {
            break;
        }

        
    }

    printf("%d", );

    return 0;
}


int check_num(int num)
{
    if(num % 3 == 0)
    {
        printf("%d ", num);
    }
}



Compiler output:
main.c: In function 'main':
main.c:10:16: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   10 |         return 0;
      |                ^
main.c:4:6: note: declared here
    4 | void main(int input){
      |      ^~~~
main.c:25:18: error: expected expression before ')' token
   25 |     printf("%d", );
      |                  ^
main.c:27:12: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   27 |     return 0;
      |            ^
main.c:4:6: note: declared here
    4 | void main(int input){
      |      ^~~~
Language: C

#include "stdio.h"

int main(int input){
    int i = 1;
    int j;
    int cnt;

    if((input < 3) || (input > 10000) {
        return 0;
    }

    if(input == 3) {
        printf("3");
        return 0;
    }

    cnt = input/3;

    for(j=1 ; j <= cnt; j++)
    {
        printf("%d", j*3);
        if(j != cnt) printf(" ");
    }

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:38: error: expected ')' before '{' token
    8 |     if((input < 3) || (input > 10000) {
      |       ~                              ^~
      |                                      )
main.c:26:1: error: expected expression before '}' token
   26 | }
      | ^
Language: C

#include "stdio.h"

int main(){
    int input;
    int i = 1;
    int j;
    int cnt;

    scanf("%d", &input)

    if((input < 3) || (input > 10000)) {
        return 0;
    }

    if(input == 3) {
        printf("3");
        return 0;
    }

    cnt = input/3;

    for(j=1 ; j <= cnt; j++)
    {
        printf("%d", j*3);
        if(j != cnt) printf(" ");
    }

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:24: error: expected ';' before 'if'
    9 |     scanf("%d", &input)
      |                        ^
      |                        ;
   10 | 
   11 |     if((input < 3) || (input > 10000)) {
      |     ~~
Language: C

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


Compiler output:
main.c: In function 'call':
main.c:5:25: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |                         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:5:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    5 |                         printf(" %d", i);
      |                         ^~~~~~
main.c:5:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |                         printf(" %d", i);
      |                         ^~~~~~
main.c:8:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |         printf("\n");
      |         ^~~~~~
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
int main(void){
        int n,i,x,f;
        i=1;
        while(1)
        if(f=1){
           x=i;
           if ( x % 3 == 0 ){
              printf("&d ",i);
              f=3;
           }else{f=2;}
        }
        if(f==2){
           if ( x % 10 == 3 ){
              printf("&d ",i);
              f=3;





        while(1){
	 scanf("%d %d",&h,&w);
         if(h==0 && w==0){
          break;
         }
         c=0;d=0;
	 for(hc=1;hc<=h;hc++){
 	        for(wc=1;wc<=w;wc++){
	 	        if(c==0){
                                printf("#");
                                c=1;
                        }else{
                                printf(".");
                                c=0;
                        }
                 }
                 if(d==0){
                                c=1;
                                d=1;
                        }else{
                                c=0;
                                d=0;
                        }
	 }
        printf("\n");
        }
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:23:25: error: 'h' undeclared (first use in this function)
   23 |          scanf("%d %d",&h,&w);
      |                         ^
main.c:23:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:28: error: 'w' undeclared (first use in this function)
   23 |          scanf("%d %d",&h,&w);
      |                            ^
main.c:27:10: error: 'c' undeclared (first use in this function)
   27 |          c=0;d=0;
      |          ^
main.c:27:14: error: 'd' undeclared (first use in this function)
   27 |          c=0;d=0;
      |              ^
main.c:28:14: error: 'hc' undeclared (first use in this function)
   28 |          for(hc=1;hc<=h;hc++){
      |              ^~
main.c:29:21: error: 'wc' undeclared (first use in this function)
   29 |                 for(wc=1;wc<=w;wc++){
      |                     ^~
main.c:49:1: error: expected declaration or statement at end of input
   49 | }
      | ^
main.c:49:1: error: expected declaration or statement at end of input
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:25:12: error: break statement not within loop or switch
   25 |            break;
      |            ^~~~~
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C

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


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

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


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

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


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

#include "stdafx.h"
#define _CRT_SECURE_NO_WARNINGS

int main()
{
	int n = 0;
	scanf_s("%d", &n);

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

    return 0;
}


Compiler output:
main.c:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

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


Compiler output:
main.c:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:8:13: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |             printf(" %d", i);
      |             ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #iclude<stdio.h>
main.c:8:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |             printf(" %d", i);
      |             ^~~~~~
main.c:8:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 |                 printf(" %d", i);
      |                 ^~~~~~
main.c:14:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   20 |     printf("\n");
      |     ^~~~~~
main.c:20:5: note: include '<stdio.h>' or provide a declaration of 'printf'