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

import java.util.Scanner;
 
public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int i = 1;
        do {
            int x = i;
            if (x % 3 == 0) {
                System.out.print(" " + i);
                continue;
            }
            while (true) {
                if (x % 10 == 3) {
                    System.out.print(" " + i);
                    break;
                }
                x /= 10;
                if (x != 0) continue;
                else break;
            }
        }while ((++i) <= n) {
        System.out.println();
            }
        }


Compiler output:
Main.java:23: error: ';' expected
        }while ((++i) <= n) {
                           ^
Main.java:26: error: reached end of file while parsing
        }
         ^
2 errors
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int i = 1;
        do {
            int x = i;
            if (x % 3 == 0) {
                System.out.print(" " + i);
                continue;
            }
            while (true) {
                if (x % 10 == 3) {
                    System.out.print(" " + i);
                    break;
                }
                x /= 10;
                if (x != 0) continue;
                else break;
            }
        } while ((++i) <= n) {
            System.out.println();
        }
    }
}


Compiler output:
Main.java:23: error: ';' expected
        } while ((++i) <= n) {
                            ^
1 error
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int i = 1;

        while(true){
            int x = i;
            if(x%3 == 0){
                System.out.print(" "+i);
            }else{}
            while(true){
                if(x%10 == 3){
                    System.out.print(" "+i);
                    break;
                }else{
                    x /= 10;
                    if(x == 0) break;
                }
            }
        }
            i++;
            if(i>n) break;
        }
        System.out.println();

    }
}


Compiler output:
Main.java:27: error: <identifier> expected
        System.out.println();
                          ^
Main.java:30: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc =new Scanner(System.in);
        int i,N,k;
        N=sc.nextInt();
            for(i=1;i<=N;i++){
                if((i%3==0)||(i%10==3){
                    System.out.print(" "+i);
                }else if((10<=i)&&(i<=100)){
                    k=i/10;
                    if(k==3){
                        System.out.print(" "+i);
                    }
                }else if(i<1000){
                    k=i/100;
                    if(k==3){
                        System.out.print(" "+i);
                    }
                }else if(i<=10000){
                    k=i/1000;
                    if(k==3){
                        System.out.print(" "+i);
                    }
                }                    
            }   
        }
        System.out.println();
    }
}


Compiler output:
Main.java:8: error: ')' expected
                if((i%3==0)||(i%10==3){
                                      ^
Main.java:28: error: <identifier> expected
        System.out.println();
                          ^
Main.java:30: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc =new Scanner(System.in);
        int i,N,k;
        N=sc.nextInt();
            for(i=1;i<=N;i++){
                if((i%3==0)||(i%10==3)){
                    System.out.print(" "+i);
                }else if((10<=i)&&(i<=100)){
                    k=i/10;
                    if(k==3){
                        System.out.print(" "+i);
                    }
                }else if(i<1000){
                    k=i/100;
                    if(k==3){
                        System.out.print(" "+i);
                    }
                }else if(i<=10000){
                    k=i/1000;
                    if(k==3){
                        System.out.print(" "+i);
                    }
                }                    
            }
            System.out.println();   
        }
    }
}


Compiler output:
Main.java:30: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.Scanner;
public class StructuredProgram1 {
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int i =1;
    while(++i<=n) {
        int x = i;
        if (x % 3 == 0) {
            System.out.print(" " + i);
        } else
            while (x != 0) {
                if (x % 10 == 3) {
                    System.out.print(" " + i);
                    break;
                }
                x /= 10;
            }
        }
        System.out.println();

    }
}




Compiler output:
Main.java:2: error: class StructuredProgram1 is public, should be declared in a file named StructuredProgram1.java
public class StructuredProgram1 {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Itp15D{
	public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int i = 1;
		int flg = 0;

		while(true){
			int x = i;
			if(x % 3 == 0){
				System.out.println(i);
				i++;
				if(i <= n){
					i++;
					continue;
				}else{
					break;
				}
			}

			while(true){
				if(x % 10 == 3){	
					System.out.println(i);	
					i++;
					if(i <= n){
						i++;
						break;
					}
				}
				x = x / 10;
				if(x == 0){
					i++;
					break;
				}
			}

		}

	}
}


Compiler output:
Main.java:3: error: class Itp15D is public, should be declared in a file named Itp15D.java
public class Itp15D{
       ^
1 error
Language: Java

import java.util.Scanner;

public class itp_5_d {
	public static void main(String[] args){
		Scanner scan=new Scanner(System.in);
		
		int n=scan.nextInt();
		
		for(int i=1;i<=n;i++){
			if(i%3==0 ||i%10==3)System.out.printf(" %d",i);
		}
		System.out.println();
	}
}


Compiler output:
Main.java:3: error: class itp_5_d is public, should be declared in a file named itp_5_d.java
public class itp_5_d {
       ^
1 error
Language: Java

import java.util.Scanner;

public class main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int i = 1;
        int tem;
        int count = 0;
        for(i=1;i<=num;i++){
            if(i%3==0){
                System.out.print(" "+i);
                continue;
            }
            tem=i;
            for(count=0;tem>0;count++) {
                if(tem%10==3)System.out.print(" "+tem);
                tem /= 10;
            }
        }
    }
}


Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: Java

import java.util.Scanner;

public class main {
    public static void Main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int i = 1;
        int tem;
        for(i=1;i<=num;i++){
            if(i%3==0){
                System.out.print(" "+i);
                continue;
            }
            tem=i;
            for(int count =0;tem>0;count++) {
                if(tem%10==3){
                    System.out.print(" "+tem);
                    break;
                }
                tem /= 10;
            }
        }
    }
}


Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: Java

import java.util.Scanner;

public class main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int i = 1;
        int tem;
        for(i=1;i<=num;i++){
            if(i%3==0){
                System.out.print(" "+i);
                continue;
            }
            tem=i;
            for(int count =0;tem>0;count++){
                if(tem%10==3){
                    System.out.print(" re"+i);
                    break;
                }
                tem /= 10;
            }
        }
    }
}



Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner sc= newScanner(System.in); 
        int n = sc.nextInt(); 
        int i= 1; 
        do { 
            int x = i;
            if ( x % 3 == 0 ){
                System.out.print(" "+ i); 
                break;
            }
            while(true){
                if ( x % 10 == 3 ){
                    System.out.print(" "+ i); 
                    break;
                }
                x /= 10;
                if ( x!=0 ) continue;
                else break;

            }
        while (++i <= n); 
        System.out.println();
        }
    }
}


Compiler output:
Main.java:24: error: while expected
        }
         ^
Main.java:25: error: illegal start of expression
    }
    ^
2 errors
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner sc= newScanner(System.in); 
        int n = sc.nextInt(); 
        for (int i;i<n+1;i++){
            if(i%3==0){
                System.out.print(" "+ i);
            }
        }
        System.out.print("\n");
    }
}


Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc= newScanner(System.in); 
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc= newScanner(System.in); 
                    ^
  symbol:   method newScanner(InputStream)
  location: class Main
2 errors
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

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

			if ( i % 3 == 0 ) {
				System.out.print(" " + i );
				continue;
			}

			while (tmp > 1) {
				if ( tmp % 10 == 3 ) {
					System.out.print(" " + i );
					break;
				}

				tmp /= 10;
			}
		}
		System.out.println();
		sc.close();

	}

}


Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public static void main(String[] args) {
    StringBuilder count=new StringBuilder();
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    for (int i=1;i<=n;i++){
        int x=i;
        if (x%3==0){
            count.append(" "+i);
            continue;}
        do{
            if(x%10==3){
                count.append(" "+i);
                break;}
            x/=10;
        }while(x!=0);
    }
    System.out.println(count);
}
}


Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:20: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
 
        int i = 1;
        int n = sc.nextInt();
         
        while(i <= n){
            int x = i;
             
            if(x % 3 == 0){
                System.out.print(" " + i);
            }else{ 
                while(x >=1){
                    if(x % 10 == 3){
                        System.out.print(" " + i);
                        break;
                    }
                    x /= 10;
                }
            }
            i++;
        }
        System.out.println("");
        sc.close();
    }
}


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:26: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.Scanner;

public class ITP15D {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		int n = Integer.parseInt(input);
		int x = 0;

		if (n >= 3 && n <= 10000) {
			for (int i = 1; i <= n; i++) {
				if (i % 3 == 0) {
					System.out.print(" " + i);
				} else {
					x = i;

					while ((x >= 10) && ((x % 10) != 3)) { // 3を含む値をチェックして、あれば出力するプログラム
						x /= 10;
					}

					if (x % 10 == 3) {
						System.out.print(" " + i);
					}
				}

			}

		}
		System.out.println();
	}
}



Compiler output:
Main.java:3: error: class ITP15D is public, should be declared in a file named ITP15D.java
public class ITP15D {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Ex04StructuredProgramming {

	private static int i = 1;
	private static int n;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		check_Num();
		System.out.println();
		sc.close();
	}

	private static void check_Num() {
		if (i % 3 == 0) {
			System.out.print(" " + i);
			end_Check_Num();
		} else {
			include3();
		}
	}

	private static void include3() {
		String value = String.valueOf(i);
		if (i / (int)Math.pow(10, value.length() - 1) % 10 == 3) {
			System.out.print(" " + i);
			end_Check_Num();
		} else {
			end_Check_Num();
		}
	}

	private static void end_Check_Num() {
		i++;
		if (i <= n) {
			check_Num();
		}
	}
}


Compiler output:
Main.java:3: error: class Ex04StructuredProgramming is public, should be declared in a file named Ex04StructuredProgramming.java
public class Ex04StructuredProgramming {
       ^
1 error
Language: Java

import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n=sc.nextInt();
for(int i=1;i<=n;i++){
    int x=i;
    if(%3==0){
    System.out.print(" "+i);
    }else if(i%10==3){
    System.out.print(" "+i);
    }else if(x!=0){
        while(x!=0){
        x/=10;
        if(x%10==3)System.out.print(" "+i);
        }
    }
}System.out.println("");


}
}


Compiler output:
Main.java:8: error: illegal start of expression
    if(%3==0){
       ^
1 error
Language: Java

import java.util.Scanner;

class Main {
    private static int a,in;
    public static void main(String[] args){
    
     Scanner s = new Scanner(System.in);
    
in= s.nextInt;
for(int i= 1;i<=in;i=i++)
{
    a=i;
if(a%3==0){
    System.out.print(" "+a);
    continue;
    
}while(a>0){
    if(a%10 == 3){
        System.out.print(" "+i);
        break;
    }
     a/=10
}
}
System.out.println("");    
}}



Compiler output:
Main.java:22: error: ';' expected
     a/=10
          ^
1 error
Language: Java

import java.util.Scanner;

class Main {
    private static int a,in;
    public static void main(String[] args){
    
     Scanner s = new Scanner(System.in);
    
in= s.nextInt;
for(int i= 1;i<=in;i=i++)
{
    a=i;
if(a%3==0){
    System.out.print(" "+a);
    continue;
    
}while(a>0){
    if(a%10 == 3){
        System.out.print(" "+i);
        break;
    }
     a/=10;
}
}
System.out.println("");    
}}



Compiler output:
Main.java:9: error: cannot find symbol
in= s.nextInt;
     ^
  symbol:   variable nextInt
  location: variable s of type Scanner
1 error
Language: Java

import java.util.Scanner;

class Main {
    private static int a,in;
    public static void main(String[] args){
    
     Scanner s = new Scanner(System.in);
    
in= s.nextInt();
for(int i= 1;i<=in;i=i++)
{
    a=i;
if(a%3==0){
    System.out.print(" "+a);
    continue;
    
}do{
    if(a%10 == 3){
        System.out.print(" "+i);
        break;
    }
     a/=10;
}while(a>0);
}
System.out.print();    
}}



Compiler output:
Main.java:25: error: no suitable method found for print(no arguments)
System.out.print();    
          ^
    method PrintStream.print(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Scanner;

class Main {
    private static int a,in;
    public static void main(String[] args){
    
     Scanner s = new Scanner(System.in);
    
in= s.nextInt();
for(int i= 1;i<=in;i=i++)
{
    a=i;
if(a%3==0){
    System.out.print(" "+a);
    continue;
    
}do{
    if(a%10 == 3){
        System.out.print(" "+i);
        break;
    }
     a/=10;
}while(a!0);
}
System.out.println(" ");    
}}



Compiler output:
Main.java:23: error: ')' expected
}while(a!0);
        ^
1 error
Language: Java

import java.util.Scanner;

class Main {
    private static int a,in;
    public static void main(String[] args){
    
     Scanner s = new Scanner(System.in);
    
in= s.nextInt();
for(int i= 1;i<=in;i=i++)
{
    a=i;
if(a%3==0){
    System.out.print(" "+a);
    continue;
    
}while(a>0);{
    if(a%10 == 3){
boolean sin =false;
        System.out.print(" "+i);
        sin=ture;
    }
if(sin=true) break;
     a/=10;
}
}
System.out.println(" ");    
}}



Compiler output:
Main.java:21: error: cannot find symbol
        sin=ture;
            ^
  symbol:   variable ture
  location: class Main
Main.java:23: error: cannot find symbol
if(sin=true) break;
   ^
  symbol:   variable sin
  location: class Main
2 errors
Language: C

#include <stdio.h>
int main(){
  int n,i,j,x;

  scanf("%d",&n);

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


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

#include<iostream>
using namespace std;
int main(void){
      int n,x;
      cin>>n;
      for(int i=1;i<=n;i++){
            x=i;
            while(x){
            if(x%3==0){
                  cout <<" "<<i;
                  break;
            }
            else if(x%10==3){
                  cout <<" "<<i;
                  break;
            }
            x/=10;
            }
      }
      cout << endl;
      return 0;
}


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

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

}
               



Compiler output:
main.c: In function 'main':
main.c:7:13: error: expected ';' before 'if'
    7 |          x=i
      |             ^
      |             ;
    8 |          if(i%3==0 || i%10==3)
      |          ~~
Language: C

#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 1
int main()
{
	int n;

	scanf("%d", &n);
	call(n);
	return 0;
}



Compiler output:
main.c:28: error: unterminated #if
   28 | #if 1
Language: C

#include <cmath>
#include <iostream>

using namespace std;

int main()
{
	int n, t;

	bool check;

	cin >> n;

	for (int i = 1; i <= n; i++)
	{
		check = false;

		if (i % 3 == 0)
		{
			check = true;
		}
		else
		{
			t = i;

			for (int j = 0; j <= 5; j++)
			{
				if (t % 10 == 3)
				{
					check = true;
				}

				t /= 10;
			}
		}

		if (check == true)
		{
			cout << ' ' << i;
		}
	}

	cout << endl;

	return 0;
}



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

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


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

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


Compiler output:
main.c: In function 'main':
main.c:6:6: error: 'n' undeclared (first use in this function)
    6 | for( n = 1;  n < x + 1; n++)
      |      ^
main.c:6:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:16: error: invalid suffix "n" on integer constant
    9 | else if ( (i - 10n) % 3 == 0 )
      |                ^~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected ';' before 'if'
    6 | n = i / 10
      |           ^
      |           ;
    7 | if ( i % 3 == 0 || ( i - 10 * n ) % 3 == 0  )
      | ~~
Language: C

#int main(){
    double pai=3.141592653589;
    int n;
    scanf("%d",&n);
    for(int i=3;i<=n;i++){
        int x=i;
        if(i%3==0){
            printf(" %d",i);
        }else{
            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 #int
    1 | #int main(){
      |  ^~~
main.c:4:11: error: expected declaration specifiers or '...' before string constant
    4 |     scanf("%d",&n);
      |           ^~~~
main.c:4:16: error: expected declaration specifiers or '...' before '&' token
    4 |     scanf("%d",&n);
      |                ^
main.c:5:5: error: expected identifier or '(' before 'for'
    5 |     for(int i=3;i<=n;i++){
      |     ^~~
main.c:5:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
    5 |     for(int i=3;i<=n;i++){
      |                  ^~
main.c:5:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    5 |     for(int i=3;i<=n;i++){
      |                       ^~
main.c:20:12: error: expected declaration specifiers or '...' before string constant
   20 |     printf("\n");
      |            ^~~~
main.c:21:5: error: expected identifier or '(' before 'return'
   21 |     return 0;
      |     ^~~~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:11:22: warning: division by zero [-Wdiv-by-zero]
   11 |       if (x==n){if (n%0==0){break;}
      |                      ^
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

x#include <stdio.h>

int main(void) {
  int i;
  int num;
  int n;

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

  return 0;
}



Compiler output:
main.c:1:2: error: stray '#' in program
    1 | x#include <stdio.h>
      |  ^
main.c:1:1: error: unknown type name 'x'
    1 | x#include <stdio.h>
      | ^
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | x#include <stdio.h>
      |           ^
Language: C

#include<stdio.h>
//C에서 함수 처음 만들어 써봄.. 재밌당 ㅋㅋㅋㅋㅋ
int check3(int i)
{
    if (i%3 == 0)
    {
        printf(" %d",i);
        return 0;
    }
    else{return 1;}
}
void include3(int i)
{
    if (i%10 == 3)
    {
        printf(" %d",i);
    }
    i = i/10;
    if (i)
    {
        include3(i);
    }
}
int main(void)
{
    int n;
    scanf("%d",&n);
    int c=1;
    for (;c<=n;c++)
    {
        int i = c;
        if (check3(i))
        {
            include3(i);
        }
    }
    printf("\n")
    return 0;
}


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

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


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

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


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

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


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

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


Compiler output:
main.c: In function 'main':
main.c:11:20: error: expected expression before ')' token
   11 |     }else if((x%3!=)&&(x%10==3)){
      |                    ^
main.c:13:33: error: expected ')' before '{' token
   13 |     }else if((x%3==0)&&(x%10!=3){
      |             ~                   ^
      |                                 )
main.c:22:3: error: expected expression before '}' token
   22 |   }
      |   ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:11:20: error: expected expression before ')' token
   11 |     }else if((x%3!=)&&(x%10==3)){
      |                    ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:18:31: error: expected ')' before '{' token
   18 |         if((y%3==0)&&(y%10==3){
      |           ~                   ^
      |                               )
main.c:21:7: error: expected expression before '}' token
   21 |       }
      |       ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:18:19: error: expected expression before '||' token
   18 |         if(y%3==0)||(y%10==3){
      |                   ^~
Language: C

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


Compiler output:
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(void)
{
  int i=1;
  int x,n;
  scanf("%d",&n);
  while(i<(n+1)){
    x=i;
    if((x%3==0)||(x%10==3)){
      printf(" %d",i);
    }else{
      while(1){
        x/=10;
        if((x%3==0)&||(x%10==3)){
          printf(" %d",i);
          break;  
        }
      }
    }
    ++i;
  }
  printf("\n");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:21: error: expected expression before '||' token
   14 |         if((x%3==0)&||(x%10==3)){
      |                     ^~
Language: C

#include<stdio.h>
int main(void){
int i=1,x=0,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);
			}
			else{
				x=i;
				while(x!=0){
					if(x%10!=3){
						x/=10;
					}
					else{
						printf(" %d", i);
					}
				}
			}
		}
	}
	printf("\n");

	return 0;



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

#include<stdio.h>

int main()
{
    int a,b,i;

    scanf("%d", &a):
    
    for(i = 1; i <=a, i++){
        if(i / 3 == 0|| i % 10 == 3) printf("%d ", i);
        }
    return 0;
]



Compiler output:
main.c: In function 'main':
main.c:7:20: error: expected ';' before ':' token
    7 |     scanf("%d", &a):
      |                    ^
      |                    ;
main.c:13:1: error: expected statement before ']' token
   13 | ]
      | ^
main.c:13:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>

int main()
{
    int a,i;

    scanf("%d", &a):
    
    for(i = 1; i <=a, i++){
        if(i/3 == 0|| i%10 == 3) printf("%d ", i);
        }
    return 0;
]



Compiler output:
main.c: In function 'main':
main.c:7:20: error: expected ';' before ':' token
    7 |     scanf("%d", &a):
      |                    ^
      |                    ;
main.c:13:1: error: expected statement before ']' token
   13 | ]
      | ^
main.c:13:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>

int main()
{
    int a,i;

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



Compiler output:
main.c: In function 'main':
main.c:7:20: error: expected ';' before ':' token
    7 |     scanf("%d", &a):
      |                    ^
      |                    ;
Language: C

#include<stdio.h>

int main()
{
    int a,i;

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



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

#include<stdio.h>

int main()
{
    int a, b, i;

    scanf("%d", &a);
    
    for(i = 3; i <=a; i++){
        if(i%3 == 0) printf(" %d", i);
        else {while(b)
                  {b = i;
                   if(b%10 == 3) {printf("%d", b);
                                  break;}
                   else b /= 10;
                   }
        }
    printf("\n");
    return 0;
}



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

#include<stdio.h>

int main()
{
    int a, b, i;

    scanf("%d", &a);
    
    for(i = 3; i <=a; i++){
        if(i%3 == 0) printf(" %d", i);
        else {b = i;
              while(b)
                   {if(b%10 == 3) {printf("%d", b);
                                  break;}
                   else b /= 10;
                   }
        }
    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

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:21:1: error: stray '\343' in program
   21 | <U+3000><U+3000><U+3000><U+3000>printf("\n");
      | ^~~~~~~~
main.c:21:3: error: stray '\343' in program
   21 | <U+3000><U+3000><U+3000><U+3000>printf("\n");
      |         ^~~~~~~~
main.c:21:5: error: stray '\343' in program
   21 | <U+3000><U+3000><U+3000><U+3000>printf("\n");
      |                 ^~~~~~~~
main.c:21:7: error: stray '\343' in program
   21 | <U+3000><U+3000><U+3000><U+3000>printf("\n");
      |                         ^~~~~~~~
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:21:1: error: stray '\343' in program
   21 | <U+3000><U+3000><U+3000><U+3000>printf(" \n");
      | ^~~~~~~~
main.c:21:3: error: stray '\343' in program
   21 | <U+3000><U+3000><U+3000><U+3000>printf(" \n");
      |         ^~~~~~~~
main.c:21:5: error: stray '\343' in program
   21 | <U+3000><U+3000><U+3000><U+3000>printf(" \n");
      |                 ^~~~~~~~
main.c:21:7: error: stray '\343' in program
   21 | <U+3000><U+3000><U+3000><U+3000>printf(" \n");
      |                         ^~~~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:10:37: error: expected ')' before 'i'
   10 |                         printf(" %d"i);
      |                               ~     ^
      |                                     )
main.c:13:37: error: expected ')' before 'i'
   13 |                         printf(" %d"i);
      |                               ~     ^
      |                                     )
Language: C

#include<stdio.h>
int main(){
	int i,n;
	
	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{
			for(x=i;x!=0;x/=10){
				if(x%10==3){
					printf(" %d",i);
					break;
				}
			}
		}
	}
	printf("\n");
	
	return 0;
}


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

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


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

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


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

#include<stdio.h>

int main()
{
    int a, n, i;

    scanf("%d", &n);

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

        if(x % 3 == 0)
        {
            printf(" %d", i);
        }

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

        else
        {
            while(x != 0)
            {
                x /= 10;

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


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

#include<stdio.h>

int main()
{
    int a, n, i;

    scanf("%d", &n);

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

        if(a % 3 == 0)
        {
            printf(" %d", i);
        }

        else if(a % 10 == 3)
        {
            printf(" %d", i);
        }

        else
        {
            while(a != 0)
            {
                x /= 10;

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

    return 0;
}


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

#include<stdio.h>

int main()
{
    int a, n, i;

    scanf("%d", &n);

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

        if(a % 3 == 0)
        {
            printf(" %d", i);
        }

        else if(a % 10 == 3)
        {
            printf(" %d", i);
        }

        else
        {
            while(a != 0)
            {
                a /= 10;

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

    return 0;
}


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

#include <iostream>
using namespace std;
 
int main(){
    int n;
    cin>>n;
     
    for(int i=1;i<=n;i++){
        if(i % 3 == 0){
            cout<<" "<<i;
            continue;
        }
        int j = i;
        while(j>0){
            if(j % 10 == 3){
                cout<<" "<<i;
                break;
            }else j /= 10;
        }
    }
    cout<<endl;
 
    return 0;
}



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

#include <stdio.h>

int call(int n) {
int i,d;
for(i=1;i<=n;i++){
if(i%3==0){
 printf("%d ",i);
}else
{
 d=1;
 while((i/d)!=0)
 {
  if((i%(10*d)-i%d)==3*d){
    printf("%d",i);
 }
 d=d*10;
 }
}
}
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) {
int i,d;
for(i=1;i<=n;i++){
if(i%3==0){
 printf("%d ",i);
}else
{
 d=1;
 while((i/d)!=0)
 {
  if((i%(10*d)-i%d)==3*d){
    printf("%d",i);
 }
 d=d*10;
 }
}
}
printf("\n");
return 0;
}

Compiler output:
main.c: In function 'call':
main.c:21:8: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   21 | return 0;
      |        ^
main.c:3:6: note: declared here
    3 | void call(int n) {
      |      ^~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:15: error: 'n' undeclared (first use in this function)
    5 | scanf("%d\n",&n);
      |               ^
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

i#include <stdio.h>

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

Compiler output:
main.c:1:2: error: stray '#' in program
    1 | i#include <stdio.h>
      |  ^
main.c:1:1: error: unknown type name 'i'
    1 | i#include <stdio.h>
      | ^
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | i#include <stdio.h>
      |           ^
Language: C

i#include <stdio.h>

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

Compiler output:
main.c:1:2: error: stray '#' in program
    1 | i#include <stdio.h>
      |  ^
main.c:1:1: error: unknown type name 'i'
    1 | i#include <stdio.h>
      | ^
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | i#include <stdio.h>
      |           ^
Language: C

i#include <stdio.h>

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

Compiler output:
main.c:1:2: error: stray '#' in program
    1 | i#include <stdio.h>
      |  ^
main.c:1:1: error: unknown type name 'i'
    1 | i#include <stdio.h>
      | ^
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | i#include <stdio.h>
      |           ^
Language: C

i#include <stdio.h>

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

Compiler output:
main.c:1:2: error: stray '#' in program
    1 | i#include <stdio.h>
      |  ^
main.c:1:1: error: unknown type name 'i'
    1 | i#include <stdio.h>
      | ^
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | i#include <stdio.h>
      |           ^
Language: C

i#include <stdio.h>

void call(int n) {
int i,d,n;
//scanf("%d",&n);
for(i=1;i<=n;i++){
if(i==3){
printf("%d",i);
;
}else if(i%3==0){
 printf(" %d",i);
}else
{
 d=1;
 while((i/d)!=0)
 {
  if((i%(10*d)-i%d)==3*d)
  {
    printf(" %d",i);
  }
  d=d*10;
 }
}
}
return 0;
}

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

Compiler output:
main.c:1:2: error: stray '#' in program
    1 | i#include <stdio.h>
      |  ^
main.c:1:1: error: unknown type name 'i'
    1 | i#include <stdio.h>
      | ^
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | i#include <stdio.h>
      |           ^
main.c: In function 'main':
main.c:30:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   30 | scanf("%d",&n);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | i#include <stdio.h>
main.c:30:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   30 | scanf("%d",&n);
      | ^~~~~
main.c:30:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:31:1: error: implicit declaration of function 'call' [-Wimplicit-function-declaration]
   31 | call(n);
      | ^~~~
main.c:32:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   32 | printf("\n");
      | ^~~~~~
main.c:32:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:32:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:32:1: note: include '<stdio.h>' or provide a declaration of 'printf'