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

#include<stdio.h>
int main(){
    unsinged short x;
    unsinged short n;
    unsinged short i;
    scanf("%d", &n);
    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: In function 'main':
main.c:3:5: error: 'unsinged' undeclared (first use in this function)
    3 |     unsinged short x;
      |     ^~~~~~~~
main.c:3:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:13: error: expected ';' before 'short'
    3 |     unsinged short x;
      |             ^~~~~~
      |             ;
main.c:4:13: error: expected ';' before 'short'
    4 |     unsinged short n;
      |             ^~~~~~
      |             ;
main.c:5:13: error: expected ';' before 'short'
    5 |     unsinged short i;
      |             ^~~~~~
      |             ;
main.c:6:18: error: 'n' undeclared (first use in this function)
    6 |     scanf("%d", &n);
      |                  ^
main.c:7:9: error: 'i' undeclared (first use in this function)
    7 |     for(i = 1;i <= n;i++){
      |         ^
main.c:12:9: error: 'x' undeclared (first use in this function)
   12 |         x = i;
      |         ^
Language: C

#include <stdio.h>

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


	}
	return 0;
}



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

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

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


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

#include<stdio.h>

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


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

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:8:35: error: expected ';' before 'printf'
    8 |              printf("%d",i);(i!=n)
      |                                   ^
      |                                   ;
    9 |              printf(" ");
      |              ~~~~~~
Language: C

#include <stdio.h>

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


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

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected expression before '=' token
    6 |   for(i = 3; i < =n; i += 3){
      |                  ^
Language: C

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


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

int main(void)
{
	int x,y,n;
	scanf("%d", &n);
	for (x = 1; x <= n; x++) {
		if (x % 3 == 0) {
			printf(" %d", x);
			continue;
		}
		y = x;
		while (y == 0) {
			if (y % 10 == 3){
				printf(" %d", y);
				continue;
			}
			y = y / 10;
		}
	}
	printf("\n");


Compiler output:
main.c: In function 'main':
main.c:4:9: 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(void)
main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         scanf("%d", &n);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:25: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |                         printf(" %d", x);
      |                         ^~~~~~
main.c:7:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:33: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |                                 printf(" %d", y);
      |                                 ^~~~~~
main.c:13:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:19:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   19 |         printf("\n");
      |         ^~~~~~
main.c:19:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:19:9: error: expected declaration or statement at end of input
Language: C

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

  cout << endl;
}



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

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:11:5: error: 'else' without a previous 'if'
   11 |    }else{
      |     ^~~~
main.c:16:15: error: expected ';' before '}' token
   16 |          break
      |               ^
      |               ;
   17 |        }
      |        ~
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:16:15: error: expected ';' before '}' token
   16 |          break
      |               ^
      |               ;
   17 |        }
      |        ~       
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:16:15: error: expected ';' before '}' token
   16 |          break
      |               ^
      |               ;
   17 |        }
      |        ~
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){
       scanf(" %d",i);
     }else if(x%10==3){
       scanf(" %d",i);
   }else{
     while(x !=0){
       i /=10;
       if(x%10==3){
         printf(" %d",i);
         break;
       }
     }
   }
 }
   printf("\n");
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    4 |    int n,i.x;
      |           ^
main.c:6:8: error: 'i' undeclared (first use in this function)
    6 |    for(i=1;i<=n;i++){
      |        ^
main.c:6:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:6: error: 'x' undeclared (first use in this function)
    7 |      x=i;
      |      ^
Language: C

#include <stdio.h>

int main() {

	int n;
	scanf_s("%d", &n);

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

	return 0;

}


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

#include <stdio.h>

int main() {

	int n;
	int fin;
	scanf_s("%d", &n);

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

	return 0;

}


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

#include <stdio.h>

int main() {

	int n;
	scanf_s("%d", &n);

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

	}
	printf("\n");

	return 0;

}


Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf
main.c:16:35: error: 'true' undeclared (first use in this function)
   16 |                 while (x /= 10 == true) {
      |                                   ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:16:35: note: each undeclared identifier is reported only once for each function it appears in
   16 |                 while (x /= 10 == true) {
      |                                   ^~~~
Language: C

#include <stdio.h>

int main() {

	int n;
	scanf("%d", &n);

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

	}
	printf("\n");

	return 0;

}


Compiler output:
main.c: In function 'main':
main.c:16:35: error: 'true' undeclared (first use in this function)
   16 |                 while (x /= 10 == true) {
      |                                   ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:16:35: note: each undeclared identifier is reported only once for each function it appears in
   16 |                 while (x /= 10 == true) {
      |                                   ^~~~
Language: C

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

    printf("\n")
}


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

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



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

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



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

#include <iostream>
useing namespace std:

bool has3(int x){
  while(x){
    if(x % 10 == 3) return true;
    x /- 10;
  }
  return false;
}
void call (int n){
  for(int x = 1; x <= n; x++){
    if(x%3==0 || has3(x)){
      cout << " "<< x;
    }
  }
  cout << end1;
}
int main(){
  int n;
   cin >> n;
   call(n);
   return(n);
}


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

#include <iostream>
useing namespace std:

bool has3(int x){
  while(x){
    if(x % 10 == 3) return true;
    x /= 10;
  }
  return false;
}
void call (int n){
  for(int x = 1; x <= n; x++){
    if(x%3==0 || has3(x)){
      cout << " "<< x;
    }
  }
  cout << end1;
}
int main(){
  int n;
   cin >> n;
   call(n);
   return(n);
}


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 main(){ int n,i,a[10000]; scanf("%d",&n); for (i = 0; i < n; i++){ a[i]=i+1; } for (i = 0; i < n; i++){ if (a[i]%3 == 0){ printf(" %d",a[i]); } else if (a[i]%10 == 3){ printf(" %d",a[i]); } else if (30 <= a[i]%100 && a[i]%100 <= 39){ printf(" %d",a[i]); } else if (300 <= a[i]%1000 && a[i]%1000 <= 399){ printf(" %d",a[i]); } else if (3000 <= a[i]%10000 && a[i]%10000 <= 3999){ printf(" %d",a[i]); } } printf("\n"); return 0; } 


Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main(){ int n,i,a[10000]; scanf("%d",&n); for (i = 0; i < n; i++){ a[i]=i+1; } for (i = 0; i < n; i++){ if (a[i]%3 == 0){ printf(" %d",a[i]); } else if (a[i]%10 == 3){ printf(" %d",a[i]); } else if (30 <= a[i]%100 && a[i]%100 <= 39){ printf(" %d",a[i]); } else if (300 <= a[i]%1000 && a[i]%1000 <= 399){ printf(" %d",a[i]); } else if (3000 <= a[i]%10000 && a[i]%10000 <= 3999){ printf(" %d",a[i]); } } printf("\n"); return 0; }
      |                    ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:22: error: stray '#' in program
    8 |                 if(i%#==0)
      |                      ^
main.c:8:23: error: expected expression before '==' token
    8 |                 if(i%#==0)
      |                       ^~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:9:99: error: expected ')' before '{' token
    9 |                 if((i%3==0)||(i%10==3)||((x/10)==3)||((x/10)%10==3)||((x/100)==3)||((x/100)%10==3)
      |                   ~                                                                               ^
      |                                                                                                   )
   10 |                 {
      |                 ~                                                                                  
main.c:14:9: error: expected expression before '}' token
   14 |         }
      |         ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:29: error: 'braek' undeclared (first use in this function)
    8 |                 if(i==10000)braek;
      |                             ^~~~~
main.c:8:29: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:9:28: error: expected ')' before '{' token
    9 |                 if((i%3==0)
      |                   ~        ^
      |                            )
   10 |                 {
      |                 ~           
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
main.c:20:1: error: expected declaration or statement at end of input
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:28: error: expected ')' before '{' token
    8 |                 if((i%3==0)
      |                   ~        ^
      |                            )
    9 |                 {
      |                 ~           
main.c:18:9: error: expected expression before '}' token
   18 |         }
      |         ^
Language: C


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

 



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

#include <stdio.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:25: error: unterminated #if
   25 | #if 1
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 <iostream>
using namespace std;

int main()
{
	int n;
	cin >> n;

	int i = 0, x;
	while (++i <= n)
	{
		x = i;
		if (i % 3 == 0) 
		{
			cout << " " << i;
			continue;
		}
		while (x)
		{
			if (x % 10 == 3) cout << " " << i;
			x /= 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<iostream>
#include<math.h>

using namespace std;

void call(int n) {
  int i = 1;
  while(1) {
    int x = i;
    if (x % 3 == 0){
      cout << " " << i;
    } else {
      while(x) {
	if (x % 10 == 3){
	  cout << " " << i;
	  break;
	}
	x /= 10;
      }
    }
    if (++i > n) break;
  }
}

int main () {
  int n;
  cin >> n;
  call(n);
  cout << endl;
}

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

#include <iostream>

using namespace std;

int main()
{
 int n;
 cin >> n;
 for (i = 1; i <= n; i++)
 {
  int x = 1;
  if (x % 3 == 0)
  {
   cout << " " << i;
  }
  else
  {
   while(1)
   {
    if (x % 10 == 3)
    {
     cout << " " << i;
     break;
    }
    else
    {
     x /= 10;
     if (x == 0)
     {
      break;
     }
    }
   }
  }
 }
 cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |  for (i = 1; i <= n; i++)
      |       ^
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:
a.cc: In function 'void call(int)':
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << " " << i;
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << " " << i;
      |     ^~~~
a.cc:19:3: error: 'cout' was not declared in this scope
   19 |   cout << endl;
      |   ^~~~
a.cc:19:11: error: 'endl' was not declared in this scope
   19 |   cout << endl;
      |           ^~~~
Language: C++

#include<iostream>
int main()
{
	int i = 1;
	int v = 1;
	std::cin >> v;
	for ( int i = 1; i <= v; i++ )
	{
		if ( i % 3 == 0 || i / 1000 == 3 || i % 1000 / 100 == 3 ||i % 1000 % 100 / 10 == 3 || i / 100 == 3 || i % 100 / 10 == 3 || i % 10 == 3 )
			{
			std::cout << ' ' << i;
		    }
	}
      std::cout << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |       std::cout << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() [
  int n;
  cin >> n;
  for (int i = 0; i < n; i = i + 3) cout << i << endl;
}


Compiler output:
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int n;
      |   ^~~
a.cc:4:13: error: expected ']' before 'int'
    4 | int main() [
      |             ^
      |             ]
    5 |   int n;
      |   ~~~        
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> n;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'for'
    7 |   for (int i = 0; i < n; i = i + 3) cout << i << endl;
      |   ^~~
a.cc:7:19: error: 'i' does not name a type
    7 |   for (int i = 0; i < n; i = i + 3) cout << i << endl;
      |                   ^
a.cc:7:26: error: 'i' does not name a type
    7 |   for (int i = 0; i < n; i = i + 3) cout << i << endl;
      |                          ^
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include <iomanip>
#define _USE_MATH_DEFINES // for C++  
#include <cmath> 
void call(int n);
using namespace std;
int main(){
	int N,m;
	m=0;
	cin>>N;
	int ko[N];
	if(N>=10000){
		N=10000;
	}
	for(int i=3;i<N+1;i++){
		
		if(i%3 == 0){
			ko[m]=i;
			m++;
			
		}else if(i%10 == 3){
			ko[m]=i;
			m++;
		}
		
	}
	for(int o = 0;o<m;o++){
		
		cout<<ko[o]<<' ';
	}
	
	cout<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin>>N;
      |         ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <cmath>
  +++ |+#include <iostream>
    4 | void call(int n);
a.cc:28:17: error: 'cout' was not declared in this scope
   28 |                 cout<<ko[o]<<' ';
      |                 ^~~~
a.cc:28:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:31:9: error: 'cout' was not declared in this scope
   31 |         cout<<endl;
      |         ^~~~
a.cc:31:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
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:
a.cc: In function 'void call(int)':
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << " " << i;
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << " " << i;
      |     ^~~~
a.cc:19:3: error: 'cout' was not declared in this scope
   19 |   cout << endl;
      |   ^~~~
a.cc:19:11: error: 'endl' was not declared in this scope
   19 |   cout << endl;
      |           ^~~~
Language: C++

#include<iostream>
using namespace std;

void call(int n) {
	int i;
	while ( ++i <= n ) {
		if ( x % 3 == 0) {
			cout << " " << i;
		} else {
		    do {
			    if ( x % 10 == 3 ) {
			        cout << " " << i;
			        break;
		        } 
		        x /= 10;
		    } while (x);
		}
	}
	cout << endl;
}

int main() {
	int n;
	cin >> n;
	call(n);
	return 0;
}


Compiler output:
a.cc: In function 'void call(int)':
a.cc:7:22: error: 'x' was not declared in this scope
    7 |                 if ( x % 3 == 0) {
      |                      ^
Language: C++

multipleOf3 x = (mod x 3) == 0
contain3 0 = False
contain3 x =
    if (mod x 10) == 3 
        then True
        else contain3 $ div x 10

f :: Int -> IO()
f 0 = return ()
f x = do
    f (x - 1)
    if (multipleOf3 x || contain3 x) 
        then putStr $ " " ++ show x 
        else return()

main = getLine >>= f . read


Compiler output:
a.cc:1:1: error: 'multipleOf3' does not name a type
    1 | multipleOf3 x = (mod x 3) == 0
      | ^~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int n;
    for (int i = 1; i <= n; i++) {
        cin >> n;
        if (i % 3 ==0 || i % 10 == 3 || (i/10)%10==3|| (i/100)%10==3 || (i/1000)%10==3)){
            cout << " " << i;
        }
    }
    cout << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:88: error: expected primary-expression before ')' token
    8 |         if (i % 3 ==0 || i % 10 == 3 || (i/10)%10==3|| (i/100)%10==3 || (i/1000)%10==3)){
      |                                                                                        ^
Language: C++

#include <iostream>
using namespace std;

int main(void) {
    int n;
    int x;
    
    cin >> n;
    
    for(int i = 1; i <= n; ++i) {
        x = i
        while(x) {
            if(i % 3 == 0) {
                cout << ' ' << i;
                break;
            } else if(i % 10 == 3) {
                cout << ' ' << i;
                break;
            } else {
                x /= 10;
            }
    }
    cout << endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected ';' before 'while'
   11 |         x = i
      |              ^
      |              ;
   12 |         while(x) {
      |         ~~~~~ 
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:4:16: note: to match this '{'
    4 | int main(void) {
      |                ^
Language: C++

#include <iostream>
using namespace std;

int main(void) {
    int n;
    int x;
    
    cin >> n;
    
    for(int i = 1; i <= n; ++i) {
        x = i
        while(x) {
            if(i % 3 == 0) {
                cout << ' ' << i;
                break;
            } else if(i % 10 == 3) {
                cout << ' ' << i;
                break;
            } else {
                x /= 10;
            }
        }
    }
    cout << endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected ';' before 'while'
   11 |         x = i
      |              ^
      |              ;
   12 |         while(x) {
      |         ~~~~~
Language: C++

#include <iostream>
using namespace std;
void call(int n){
  int i = 1;
 do{
    int x = i;
    if ( x % 3 == 0 ){
    cout << " " << i;
}while( ++i <= n );

do{
    do{
        if ( x % 10 == 3 ){
        cout << " " << i;
    }while( ++i <= n );
    }
    x /= 10;
}
  cout << endl;
}


Compiler output:
a.cc: In function 'void call(int)':
a.cc:17:5: error: expected 'while' before 'x'
   17 |     x /= 10;
      |     ^
a.cc:17:5: error: expected '(' before 'x'
   17 |     x /= 10;
      |     ^
      |     (
a.cc:17:12: error: expected ')' before ';' token
   17 |     x /= 10;
      |     ~      ^
      |            )
a.cc:19:3: error: expected 'while' before 'cout'
   19 |   cout << endl;
      |   ^~~~
a.cc:19:3: error: expected '(' before 'cout'
   19 |   cout << endl;
      |   ^~~~
      |   (
a.cc:19:15: error: expected ')' before ';' token
   19 |   cout << endl;
      |   ~~~~        ^
      |               )
a.cc:20:2: error: expected 'while' at end of input
   20 | }
      |  ^
a.cc:20:2: error: expected '(' at end of input
   20 | }
      |  ^
      |  (
a.cc:20:2: error: expected primary-expression at end of input
a.cc:20:2: error: expected ')' at end of input
   20 | }
      |  ^
      |  )
a.cc:20:2: error: expected ';' at end of input
   20 | }
      |  ^
      |  ;
a.cc:20:2: error: expected '}' at end of input
a.cc:3:17: note: to match this '{'
    3 | void call(int n){
      |                 ^
Language: C++

#include <iostream>
using namespace std;
void call(int n){
  int i = 1;
 do{
    int x = i;
    if ( x % 3 == 0 ){
    cout << " " << i;
}while( ++i <= n );

do{
    do{
        if ( x % 10 == 3 ){
        cout << " " << i;
    }while( ++i <= n );
    }
    x /= 10;
}while(x)
  cout << endl;
}


Compiler output:
a.cc: In function 'void call(int)':
a.cc:17:5: error: expected 'while' before 'x'
   17 |     x /= 10;
      |     ^
a.cc:17:5: error: expected '(' before 'x'
   17 |     x /= 10;
      |     ^
      |     (
a.cc:17:12: error: expected ')' before ';' token
   17 |     x /= 10;
      |     ~      ^
      |            )
a.cc:18:10: error: expected ';' before 'cout'
   18 | }while(x)
      |          ^
      |          ;
   19 |   cout << endl;
      |   ~~~~    
a.cc:20:2: error: expected 'while' at end of input
   20 | }
      |  ^
a.cc:20:2: error: expected '(' at end of input
   20 | }
      |  ^
      |  (
a.cc:20:2: error: expected primary-expression at end of input
a.cc:20:2: error: expected ')' at end of input
   20 | }
      |  ^
      |  )
a.cc:20:2: error: expected ';' at end of input
   20 | }
      |  ^
      |  ;
a.cc:20:2: error: expected '}' at end of input
a.cc:3:17: note: to match this '{'
    3 | void call(int n){
      |                 ^
Language: C++

#include <iostream>
using namespace std;
void call(int n){
  int i = 1;
 do{
    int x = i;
    if ( x % 3 == 0 ){
    cout << " " << i;
}while( ++i <= n );

do{
    do{
        if ( x % 10 == 3 ){
        cout << " " << i;
        }
    }while( ++i <= n );
    x /= 10;
}while(x)
  cout << endl;
}


Compiler output:
a.cc: In function 'void call(int)':
a.cc:18:10: error: expected ';' before 'cout'
   18 | }while(x)
      |          ^
      |          ;
   19 |   cout << endl;
      |   ~~~~    
a.cc:20:2: error: expected 'while' at end of input
   20 | }
      |  ^
a.cc:20:2: error: expected '(' at end of input
   20 | }
      |  ^
      |  (
a.cc:20:2: error: expected primary-expression at end of input
a.cc:20:2: error: expected ')' at end of input
   20 | }
      |  ^
      |  )
a.cc:20:2: error: expected ';' at end of input
   20 | }
      |  ^
      |  ;
a.cc:20:2: error: expected '}' at end of input
a.cc:3:17: note: to match this '{'
    3 | void call(int n){
      |                 ^
Language: C++

#include <iostream>
using namespace std;
void call(int n){
  int i = 1;
do{
    int x = i;
    if ( x % 3 == 0 )
    cout << " " << i;
}while( ++i <= n );

do{
    do{
        if ( x % 10 == 3 ){
        cout << " " << i;
        }
    }while( ++i <= n );
    x /= 10;
}while(x)
  cout << endl;
}


Compiler output:
a.cc: In function 'void call(int)':
a.cc:13:14: error: 'x' was not declared in this scope
   13 |         if ( x % 10 == 3 ){
      |              ^
a.cc:17:5: error: 'x' was not declared in this scope
   17 |     x /= 10;
      |     ^
a.cc:18:8: error: 'x' was not declared in this scope
   18 | }while(x)
      |        ^
a.cc:18:10: error: expected ';' before 'cout'
   18 | }while(x)
      |          ^
      |          ;
   19 |   cout << endl;
      |   ~~~~
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: expected primary-expression before '<' token
    6 |     for(int i=1;i=<n;i++){
      |                   ^
a.cc:15:21: error: 'j' was not declared in this scope
   15 |             else if(j/10==3){
      |                     ^
a.cc:19:21: error: 'k' was not declared in this scope
   19 |             else if(k/10==3){
      |                     ^
Language: C++

#include<iostream>
using namespace std;

int main(void){
    int i;
    cin >> num;
    for (i = 0; i <= num; i++){
        if (i % 3 == 0){
            cout << " " << i; 
        }
    }
    cout << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'num' was not declared in this scope; did you mean 'enum'?
    6 |     cin >> num;
      |            ^~~
      |            enum
Language: C++

import java.util.Scanner;

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


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(void){
    int i;
    int num;
    cin >> num;
    for (i = 0; i <= num; i++){
        if ((i % 3 == 0 && !(i == 0)) || (x % 10 == 3)){
            cout << " " << i; 
        }
    }
    cout << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:43: error: 'x' was not declared in this scope
    9 |         if ((i % 3 == 0 && !(i == 0)) || (x % 10 == 3)){
      |                                           ^
Language: C++

int main(void){
    int n;
    cin>>n;
    for(int i=1;i<=n;i++){
        if(i%3==0){
            cout<< " " << i;
            continue;
        }
        if(i%10==3){
            cout<< " " << i;
        }
    }
    cout<<endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin>>n;
      |     ^~~
a.cc:6:13: error: 'cout' was not declared in this scope
    6 |             cout<< " " << i;
      |             ^~~~
a.cc:10:13: error: 'cout' was not declared in this scope
   10 |             cout<< " " << i;
      |             ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout<<endl;
      |     ^~~~
a.cc:13:11: error: 'endl' was not declared in this scope
   13 |     cout<<endl;
      |           ^~~~
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:
a.cc:21:1: error: extended character 　 is not valid in an identifier
   21 | 　　　　printf("\n");
      | ^
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:21:1: error: '\U00003000\U00003000\U00003000\U00003000printf' was not declared in this scope
   21 | 　　　　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:
a.cc:21:1: error: extended character 　 is not valid in an identifier
   21 | 　　　　printf(" \n");
      | ^
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:21:1: error: '\U00003000\U00003000\U00003000\U00003000printf' was not declared in this scope
   21 | 　　　　printf(" \n");
      | ^~~~~~~~~~~~~~
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;
		}
		else {
			
			for (int j = 0; j < 4;j++) {

				int n;
				int m;

				n = pow(10, j + 1);
				m = n / 10;

				if (j == 0 && i % n == 3) {
					cout << " " << i;
					break;
				}else if (j != 0 && (i % n) / m == 3) {
					cout << " " << i;
					break;
				}
			}

		}
	}

	cout << endl;

	//cin >> /*変数他*/;
	//cout << /*文字列*/ << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:37: error: 'pow' was not declared in this scope
   22 |                                 n = pow(10, j + 1);
      |                                     ^~~
Language: C++

import java.util.Scanner;
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++){
   if(i%3==0||Integer.toString(i).contains("3"));
System.out.print(" "+i);
}
System.out.println();
}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:8: error: expected ':' before 'static'
    3 |  public static void main(String[]args){
      |        ^~~~~~~
      |        :
a.cc:3:26: error: 'String' has not been declared
    3 |  public static void main(String[]args){
      |                          ^~~~~~
a.cc:3:34: error: expected ',' or '...' before 'args'
    3 |  public static void main(String[]args){
      |                                  ^~~~
a.cc:13:2: error: expected ';' after class definition
   13 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:3: error: 'Scanner' was not declared in this scope
    5 |   Scanner sc= new Scanner(System.in);
      |   ^~~~~~~
a.cc:6:10: error: 'sc' was not declared in this scope
    6 |   int n= sc.nextInt();
      |          ^~
a.cc:8:15: error: 'Integer' was not declared in this scope
    8 |    if(i%3==0||Integer.toString(i).contains("3"));
      |               ^~~~~~~
a.cc:9:1: error: 'System' was not declared in this scope
    9 | System.out.print(" "+i);
      | ^~~~~~
a.cc:11:1: error: 'System' was not declared in this scope
   11 | System.out.println();
      | ^~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected primary-expression before '<<' token
    8 |             cout<<<<" "<<i<<" ";
      |                   ^~
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;
        }
        else if(i%10==3){
            cout<<" "<<i;
        }
        n/=10
    }
    cout<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected ';' before '}' token
   13 |         n/=10
      |              ^
      |              ;
   14 |     }
      |     ~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
    int main(){
        int n,m,A[100][100],b[100],c[100];//配列宣言
        
        cin>>n>>m;                        //入力
        for(int i=0;i<n;i++)　　　　　　　//繰り返し
            for(int j=0;j<m;j++)cin>>A[i][j];//繰り返し
        for(int i=0;i<m;i++)cin>>b[i];//繰り返し
        
        for(int i=0;i<n;i++){          //繰り返し
            c[i]=0;                   //c
            for(int j=0;j<m;j++){　　 //繰り返し
                c[i]+=A[i][j]*b[j];　 //たせ　かけろ
            }
        }
        
        for(int i=0;i<n;i++)cout<<c[i]<<endl;//出力
    return 0;
}
    


Compiler output:
a.cc:8:29: error: extended character 　 is not valid in an identifier
    8 |         for(int i=0;i<n;i++)　　　　　　　//繰り返し
      |                             ^
a.cc:8:29: error: extended character 　 is not valid in an identifier
a.cc:8:29: error: extended character 　 is not valid in an identifier
a.cc:8:29: error: extended character 　 is not valid in an identifier
a.cc:8:29: error: extended character 　 is not valid in an identifier
a.cc:8:29: error: extended character 　 is not valid in an identifier
a.cc:8:29: error: extended character 　 is not valid in an identifier
a.cc:14:34: error: extended character 　 is not valid in an identifier
   14 |             for(int j=0;j<m;j++){　　 //繰り返し
      |                                  ^
a.cc:14:34: error: extended character 　 is not valid in an identifier
a.cc:15:36: error: extended character 　 is not valid in an identifier
   15 |                 c[i]+=A[i][j]*b[j];　 //たせ　かけろ
      |                                    ^
a.cc: In function 'int main()':
a.cc:8:29: error: '\U00003000\U00003000\U00003000\U00003000\U00003000\U00003000\U00003000' was not declared in this scope
    8 |         for(int i=0;i<n;i++)　　　　　　　//繰り返し
      |                             ^~~~~~~~~~~~~~
a.cc:9:25: error: 'j' was not declared in this scope
    9 |             for(int j=0;j<m;j++)cin>>A[i][j];//繰り返し
      |                         ^
a.cc:14:34: error: '\U00003000\U00003000' was not declared in this scope
   14 |             for(int j=0;j<m;j++){　　 //繰り返し
      |                                  ^~~~
a.cc:15:36: error: '\U00003000' was not declared in this scope
   15 |                 c[i]+=A[i][j]*b[j];　 //たせ　かけろ
      |                                    ^~
Language: C++

#include<stdio.h>
#include<string.h>
int main(void) {
	int a[10000],n,b=0,i,x,d=3;
	char r[10000];
	char s[10000];
	scanf("%d", &n);
	sprintf(s, "%d", d);
	for(i = 1; i <= n; i++) {
		sprintf(r,"%d", i);
		if (i % 3 == 0) {
			a[b] = i;
			b++;
		}
		else if (strstr(r,s) != NULL) {
			a[b] = i;
			b++;
	}

	}
	for (x = 0; x < b; x++) {
		if (X == 0) {
			printf(" ");
	}
		printf("%d",a[x]);
		if (x == b - 1) {
			printf("\n");
		}
		else {
			printf(" ");
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:21: error: 'X' was not declared in this scope
   22 |                 if (X == 0) {
      |                     ^
Language: C++

#include<iostream>
using namespace std;

int main() {
  int n;
  cin >> n;
  for(int = 1;i=<n;i++){
    if(i%3 == 0){
      cout << " " << i;
    }
  }
  cout << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected unqualified-id before '=' token
    7 |   for(int = 1;i=<n;i++){
      |           ^
a.cc:7:10: error: expected ';' before '=' token
    7 |   for(int = 1;i=<n;i++){
      |          ^~
      |          ;
a.cc:7:11: error: expected primary-expression before '=' token
    7 |   for(int = 1;i=<n;i++){
      |           ^
a.cc:7:15: error: 'i' was not declared in this scope
    7 |   for(int = 1;i=<n;i++){
      |               ^
a.cc:7:17: error: expected primary-expression before '<' token
    7 |   for(int = 1;i=<n;i++){
      |                 ^
a.cc:7:19: error: expected ')' before ';' token
    7 |   for(int = 1;i=<n;i++){
      |      ~            ^
      |                   )
a.cc:7:20: error: 'i' was not declared in this scope
    7 |   for(int = 1;i=<n;i++){
      |                    ^
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:
a.cc: In function 'void call(int)':
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << " " << i;
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << " " << i;
      |     ^~~~
a.cc:19:3: error: 'cout' was not declared in this scope
   19 |   cout << endl;
      |   ^~~~
a.cc:19:11: error: 'endl' was not declared in this scope
   19 |   cout << endl;
      |           ^~~~