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

#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: In function 'call':
main.c:4:9: error: 'n' redeclared as different kind of symbol
    4 | int i,d,n;
      |         ^
main.c:3:15: note: previous definition of 'n' with type 'int'
    3 | void call(int n) {
      |           ~~~~^
main.c:25:8: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   25 | return 0;
      |        ^
main.c:3:6: note: declared here
    3 | void call(int n) {
      |      ^~~~
Language: C

i#include <stdio.h>

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

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:26:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   26 | 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:26:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   26 | scanf("%d",&n);
      | ^~~~~
main.c:26:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:27:1: error: implicit declaration of function 'call' [-Wimplicit-function-declaration]
   27 | call(n);
      | ^~~~
main.c:28:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   28 | printf("\n");
      | ^~~~~~
main.c:28:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:28:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:28:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

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

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

Compiler output:
main.c: In function 'call':
main.c:12:9: error: expected ';' before 'while'
   12 |  flag==0
      |         ^
      |         ;
   13 |  while(flag==0)
      |  ~~~~~
Language: C

i#include <stdio.h>

void call(int n) {
int i,d,flag;
//scanf("%d",&n);
for(i=1;i<=n;i++){
 if(i%3==0){
 printf(" %d",i);
}else
{
 d=1;
 flag=0;
 while(flag==0)
 {
  if((i%(10*d)-i%d)/d==3)
  {
    printf(" %d",i);
    flag=1;
  }
  d=d*10;
  flag=(i/d==0)?1: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:29:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   29 | 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:29:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   29 | scanf("%d",&n);
      | ^~~~~
main.c:29:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:30:1: error: implicit declaration of function 'call' [-Wimplicit-function-declaration]
   30 | call(n);
      | ^~~~
main.c:31:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   31 | printf("\n");
      | ^~~~~~
main.c:31:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:31:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:31:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

i#include <stdio.h>

void call(int n) {
int i,d,flag;
//scanf("%d",&n);
for(i=1;i<=n;i++){
 if(i%3==0){
 printf(" %d",i);
}else
{
 d=1;
 flag=0;
 while(flag==0)
 {
  if((i%(10*d)-i%d)/d==3)
  {
    printf(" %d",i);
    flag=1;
  }else{
   d=d*10;
   flag=(i/d==0)?1: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'
Language: C

#include <stdio.h>

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

 scanf("%d",&n);

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


 return;
}

Compiler output:
main.c: In function 'main':
main.c:15:13: error: expected ';' before 'if'
   15 |     r = n%10
      |             ^
      |             ;
   16 |     if(r==3){
      |     ~~
Language: C

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

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

#include <stdio.h>

#define LOOPOUT (0)
#define CHECK_NUM (1)
#define END_CHECK_NUM (2)
#define INCLUDE3 (3)

void call(int n){
  int i = 1;
  int x = i;
  int f = CHECK_NUM;
while (f)
{
switch (f)
{
case CHECK_NUM:
  int x = i;
  if ( x % 3 == 0 ){
    printf(" %d", i);
    f = END_CHECK_NUM;
  }
  else {
    f = LOOPEND;
  }
  break;
case INCLUDE3:
  if ( x % 10 == 3 ){
    printf(" %d", i);
    f = END_CHECK_NUM;
  }
  else {
  x /= 10;
  if ( x ) f = INCLUDE3;
  else f = LOOPEND;
  }
  break;
case END_CHECK_NUM:
  if ( ++i <= n ) f = CHECK_NUM;
  else f = LOOPEND;
  break;
default:
  f = LOOPEND;
  break;
}
}
  putchar('\n');
}

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

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

#include <stdio.h>

#define LOOPOUT (0)
#define CHECK_NUM (1)
#define INCLUDE3 (2)
#define END_CHECK_NUM (3)

void call(int n){
  int i = 1;
  int x = i;
  int f = CHECK_NUM;
while (f)
{
switch (f)
{
case CHECK_NUM:
  x = i;
  if ( x % 3 == 0 ){
    printf("%d";
    f = END_CHECK_NUM;
    break;
  }
case INCLUDE3:
  if ( x % 10 == 3 ){
    printf(" %d", i);
    f = END_CHECK_NUM;
    break;
  }
  x /= 10;
  if ( x ) { f = INCLUDE3; break; }
case END_CHECK_NUM:
  if ( ++i <= n ) f = CHECK_NUM;
  else f = LOOPOUT;
  break;
default:
  break;
}
}
  putchar('\n');
}

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

Compiler output:
main.c: In function 'call':
main.c:19:16: error: expected ')' before ';' token
   19 |     printf("%d";
      |           ~    ^
      |                )
main.c:21:11: error: expected ';' before '}' token
   21 |     break;
      |           ^
      |           ;
   22 |   }
      |   ~
Language: C

#include <stdio.h>
 
#define LOOPOUT (0)
#define CHECK_NUM (1)
#define INCLUDE3 (2)
#define END_CHECK_NUM (3)
 
void call(int n){
  int i = 1;
  int x = i;
  int f = CHECK_NUM;
while (f)
{
switch (f)
{
case CHECK_NUM:
  x = i;
  if ( x % 3 == 0 ){
    printf("%d", i);
    f = END_CHECK_NUM;
    break;
  }
case INCLUDE3:
  if ( x % 10 == 3 ){
    printf(" %d", i);
    f = END_CHECK_NUM;
    break;
  }
  x /= 10;
  if ( x ) { f = INCLUDE3; break; }
case END_CHECK_NUM:
  if ( ++i <= n ) f = CHECK_NUM;
  else f = LOOPOUT;
  break;
default:
  break;
}
}
  putchar('\n');
}
 
int main(void)
{
int n;
scanf("%d", &n);
call(n);
return 0;

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

int main(void){
  int n,i = 1;
  scanf("%d",&n);
 CHECK_NUM:
  int x = i;
  if ( x % 3 == 0 ){
    printf(" %d",i);
    goto END_CHECK_NUM;
  }
 INCLUDE3:
  if ( x % 10 == 3 ){
    printf(" %d",i);
    goto END_CHECK_NUM;
  }
  x /= 10;
  if ( x ) goto INCLUDE3;
 END_CHECK_NUM:
  if ( ++i <= n ) goto CHECK_NUM;

  printf("\n");
  return 0
}

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d",&n);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d",&n);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |     printf(" %d",i);
      |     ^~~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |     printf(" %d",i);
      |     ^~~~~~
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   20 |   printf("\n");
      |   ^~~~~~
main.c:20:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:11: error: expected ';' before '}' token
   21 |   return 0
      |           ^
      |           ;
   22 | }
      | ~
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:3:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    3 |   scanf("%d",&n);
      |   ^~~~~
main.c:7:5: error: 'x' undeclared (first use in this function)
    7 |     x=i
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:8: error: expected ';' before 'if'
    7 |     x=i
      |        ^
      |        ;
    8 |     if ( x % 3 == 0 ){
      |     ~~  
main.c:20:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   20 |   printf("\n");
      |   ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:20:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   20 |   printf("\n");
      |   ^~~~~~
main.c:20:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d",&n);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d",&n);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:8: error: expected ';' before 'if'
    6 |     x=i
      |        ^
      |        ;
    7 |     if ( x % 3 == 0 ){
      |     ~~  
main.c:19:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   19 |   printf("\n");
      |   ^~~~~~
main.c:19:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:19:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:19:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

int main(int argv, char *argc[]){
    int input, loop, checker;
    
    scanf("%d", &input);
    
    for(loop=1; input>=loop; loop++){   /*入力値を超えるまで1づつ増加するloop*/
        if((loop%3) == 0){              /*loopが3で割れるなら出力、次の周回へ*/
            printf(" %d", loop);
            continue;
        }
        
        for(checker=loop; 0<checker; checker=/10){
            if(((checker%10) == 3)){    /*loopの1の桁が3なら出力、次の周回へ */
                printf(" %d", loop);    /*違ったら1の桁を捨て、1桁づつズラす */
                continue;               /*そのために10で割って、3がloopに    */
            }                           /*含まれてないか調査する             */
        }
        
    }
    
    printf("\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:46: error: expected expression before '/' token
   14 |         for(checker=loop; 0<checker; checker=/10){
      |                                              ^
Language: C

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

Compiler output:
main.c: In function 'call':
main.c:9:16: error: expected ';' before '}' token
    9 | printf(" %d",i)
      |                ^
      |                ;
   10 | }else{
      | ~
Language: C

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

Compiler output:
main.c: In function 'call':
main.c:10:9: error: expected expression before '==' token
   10 | if(x%10)==3){
      |         ^~
main.c:10:12: error: expected statement before ')' token
   10 | if(x%10)==3){
      |            ^
main.c:12:2: error: 'else' without a previous 'if'
   12 | }else{
      |  ^~~~
Language: C

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

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

Compiler output:
main.c: In function 'call':
main.c:10:9: error: expected expression before '==' token
   10 | if(x%10)==3){
      |         ^~
main.c:10:12: error: expected statement before ')' token
   10 | if(x%10)==3){
      |            ^
main.c:12:2: error: 'else' without a previous 'if'
   12 | }else{
      |  ^~~~
Language: C

#include<stdio.h>

int main(){
 int n;
 int i=1;
 scanf("%d". &n);
 while(1)
  if(n%3 == 0 && n%10 == 0){
   printf(" %d", i);
  }
  n=n/10;
  i++;
  if(i >= n){
   printf("\n")
   break;}
 }
}
 
  

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected identifier before '&' token
    6 |  scanf("%d". &n);
      |              ^
main.c:14:16: error: expected ';' before 'break'
   14 |    printf("\n")
      |                ^
      |                ;
   15 |    break;}
      |    ~~~~~        
main.c: At top level:
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C

#include<stdio.h>

int main(){
 int n;
 int i=1;
 scanf("%d". &n);
 while(1){
  if(n%3 == 0 && n%10 == 0){
   printf(" %d", i);
  }
  n=n/10;
  i++;
  if(i >= n){
   printf("\n");
   break;}
 }
}
 
  

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected identifier before '&' token
    6 |  scanf("%d". &n);
      |              ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected identifier before '&' token
    6 |  scanf("%d". &n);
      |              ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected identifier before '&' token
    6 |  scanf("%d". &n);
      |              ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected identifier before '&' token
    6 |  scanf("%d". &n);
      |              ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:15:5: error: expected '}' before 'else'
   15 |     else{
      |     ^~~~
Language: C

void call(int n){
	int i;
 for (i = 1; i < n; i++){
  int x = i;
  if ( x % 3 == 0 ){
    cout << " " << i;
    continue;
  }
 for(; x; x /= 10) {
  if ( x % 10 == 3 ){
    cout << " " << i;
    break;
  }
 }
 }
  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:16:11: error: 'endl' undeclared (first use in this function)
   16 |   cout << endl;
      |           ^~~~
Language: C

#include <iostream>
using namespace std;

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

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

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

using namespace std;

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

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

Compiler output:
main.c:1:1: error: unknown type name 'using'
    1 | using namespace std;
      | ^~~~~
main.c:1:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    1 | using namespace std;
      |                 ^~~
main.c: In function 'call':
main.c:8:5: error: 'cout' undeclared (first use in this function)
    8 |     cout << " " << i;
      |     ^~~~
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:11: error: 'endl' undeclared (first use in this function)
   18 |   cout << endl;
      |           ^~~~
main.c: In function 'main':
main.c:23:9: error: 'cin' undeclared (first use in this function)
   23 |         cin >> n;
      |         ^~~
Language: C

void call(int n){

  int i = 1;
  int x;

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

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

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

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

Compiler output:
main.c: In function 'call':
main.c:24:8: error: expected expression before ')' token
   24 |     if(){
      |        ^
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:32: error: expected expression before '?' token
    6 |         if(x%3==0 || x%10==3 ||???x/10==3){
      |                                ^
Language: C

#include <stdio.h>

int main(){
	int i,x,n;
    do{
    	scanf("%d",n);
    }while(n < 3 || 10000 < n);
    for(i=0;i++;i<=n){
    	if(i % 3 == 0) printf(" %d",i):
    	else if(i % 10 == 3) printf(" %d",i);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:39: error: expected ';' before ':' token
    9 |         if(i % 3 == 0) printf(" %d",i):
      |                                       ^
      |                                       ;
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:39: error: expected ';' before ':' token
    9 |         if(i % 3 == 0) printf(" %d",i):
      |                                       ^
      |                                       ;
Language: C

#include <stdio.h>

int main(void){

	int i=1,x,n;

	scanf("%d",&n);

	for(;;){

		x=i;

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

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

				else{
					x /= 10;
					if(!x){
						break;
					}
				}
			}
		}
		if(++i > n){
			break;
		}



	}

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

#include <stdio.h>

int main(void){

	int i=1,x,n;

	scanf("%d",&n);

	for(;;){

		x=i;

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

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

				else{
					x /= 10;
					if(!x){
						break;
					}
				}
			}
		}
		if(++i > n){
			break;
		}
		printf("\n");


	}

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

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

Compiler output:
main.c: In function 'main':
main.c:14:1: error: 'retuen' undeclared (first use in this function)
   14 | retuen 0;
      | ^~~~~~
main.c:14:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:7: error: expected ';' before numeric constant
   14 | retuen 0;
      |       ^~
      |       ;
Language: C

#include <stdio.h>
int main(void)
{
int a, i;

scanf("%d",&a);

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

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

#include <stdio.h>

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

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

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

scanf("%d",&n);

while(n <= i){

if(i % 3 == 0 || i % 10 == 3)
   printf("%d",i);

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

Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before '+' token
    5 | int i +1;
      |       ^
main.c:9:12: error: 'i' undeclared (first use in this function)
    9 | while(n <= i){
      |            ^
main.c:9: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;
  scanf("%d", &i);
  printf('%d", i* i * i);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: warning: missing terminating ' character
    7 |   printf('%d", i* i * i);
      |          ^
main.c:7:10: error: missing terminating ' character
    7 |   printf('%d", i* i * i);
      |          ^~~~~~~~~~~~~~~~
main.c:8:3: error: expected expression before 'return'
    8 |   return 0;
      |   ^~~~~~
main.c:8:12: error: expected ';' before '}' token
    8 |   return 0;
      |            ^
      |            ;
    9 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:66: error: lvalue required as left operand of assignment
    7 |                 if(i%3==0 || i%10==3 || i/10=3 || i/10=13 || i/10=23){
      |                                                                  ^
main.c:13:1: error: expected declaration or statement at end of input
   13 | }
      | ^
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:13:27: error: expected expression before '%' token
   13 |                 else if(i/%100/10==3){
      |                           ^
main.c:16:27: error: expected expression before '%' token
   16 |                 else if(i/%1000/100==3){
      |                           ^
main.c:19:27: error: expected expression before '%' token
   19 |                 else if(i/%10000/100==3){
      |                           ^
Language: C

#include<stdio.h>

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

scanf("%d",&n);

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

if(i%3==0 || 10%i==3)
printf(" %d",i);



return 0:
}

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

#include<stdio.h>

int main(){

int n,i;

scanf("%d",&n);

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

if(i%3==0 || 10%i==3)
printf(" %d",i);



return 0:
}

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

#include<stdio.h>

int main(){

int n,i;

scanf("%d",&n);

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

if(i%3==0 || 10%i==3)
printf(" %d",i);

}
printf("\n");

return 0:
}

Compiler output:
main.c: In function 'main':
main.c:17:9: error: expected ';' before ':' token
   17 | return 0:
      |         ^
      |         ;
Language: C

#include<stdio.h>

int main(){

int n,i;

scanf("%d",&n);

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

if(i%3==0 || 10%i==3)
printf(" %d",i);

}
printf("\n");

return 0:
}

Compiler output:
main.c: In function 'main':
main.c:17:9: error: expected ';' before ':' token
   17 | return 0:
      |         ^
      |         ;
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",i);
conrtinue;
}

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:1: error: 'conrtinue' undeclared (first use in this function)
   13 | conrtinue;
      | ^~~~~~~~~
main.c:13:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
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",i);
continue;
}

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

return 0;
}

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

#include<stdio.h>

int main(){

int n,i,x;

scanf("%d",&n);

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

return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:8:9: error: 'else' without a previous 'if'
    8 |         else (j % 10 == 3) printf(" %d", i);
      |         ^~~~
main.c:8:27: error: expected ';' before 'printf'
    8 |         else (j % 10 == 3) printf(" %d", i);
      |                           ^~~~~~~
      |                           ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'j' undeclared (first use in this function)
    6 |         j = i / 10;
      |         ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:27: error: expected ';' before 'printf'
    8 |         else (j % 10 == 3) printf(" %d", i);
      |                           ^~~~~~~
      |                           ;
Language: C

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

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

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

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

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


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

Compiler output:
main.c: In function 'call':
main.c:5:13: error: expected ';' before 'if'
    5 |     flag = 0
      |             ^
      |             ;
    6 |     if (x % 3 == 0) {
      |     ~~       
main.c:19:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   19 |   printf("\n");
      |   ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | void call(int n){
main.c:19:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   19 |   printf("\n");
      |   ^~~~~~
main.c:19:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: In function 'main':
main.c:25:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   25 |   scanf("%d", &n);
      |   ^~~~~
main.c:25:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:25:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:25:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:27:10: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   27 |   return 0;
      |          ^
main.c:23:6: note: declared here
   23 | void main() {
      |      ^~~~
Language: C



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

 
Compile Error Logs: 


 
 
Status 
Judge: 0/8  C  CPU: 00.00 sec  Memory: 592 KB  Length: 362 B  2016-04-04 14:59  2016-04-04 14:59  
Results for testcases 
Case # Verdict CPU Time Memory In Out Case Name 
 Case #1: : Presentation Error  00.00 sec 592 KB 3 B 34 B 00_sample_00.in 
 Case #2: -  - - 2 B 3 B 01_small_00.in 
 Case #3: -  - - 3 B 88 B 01_small_01.in 
 Case #4: -  - - 4 B 133 B 01_small_02.in 
 Case #5: -  - - 4 B 433 B 01_small_03.in 
  

Compiler output:
main.c:27:1: error: unknown type name 'Compile'
   27 | Compile Error Logs:
      | ^~~~~~~
main.c:27:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Logs'
   27 | Compile Error Logs:
      |               ^~~~
main.c:35:6: error: stray '#' in program
   35 | Case # Verdict CPU Time Memory In Out Case Name
      |      ^
main.c:36:7: error: stray '#' in program
   36 |  Case #1: : Presentation Error  00.00 sec 592 KB 3 B 34 B 00_sample_00.in
      |       ^
main.c:36:59: error: invalid suffix "_sample_00.in" on integer constant
   36 |  Case #1: : Presentation Error  00.00 sec 592 KB 3 B 34 B 00_sample_00.in
      |                                                           ^~~~~~~~~~~~~~~
main.c:37:7: error: stray '#' in program
   37 |  Case #2: -  - - 2 B 3 B 01_small_00.in
      |       ^
main.c:37:26: error: invalid suffix "_small_00.in" on integer constant
   37 |  Case #2: -  - - 2 B 3 B 01_small_00.in
      |                          ^~~~~~~~~~~~~~
main.c:38:7: error: stray '#' in program
   38 |  Case #3: -  - - 3 B 88 B 01_small_01.in
      |       ^
main.c:38:27: error: invalid suffix "_small_01.in" on integer constant
   38 |  Case #3: -  - - 3 B 88 B 01_small_01.in
      |                           ^~~~~~~~~~~~~~
main.c:39:7: error: stray '#' in program
   39 |  Case #4: -  - - 4 B 133 B 01_small_02.in
      |       ^
main.c:39:28: error: invalid suffix "_small_02.in" on integer constant
   39 |  Case #4: -  - - 4 B 133 B 01_small_02.in
      |                            ^~~~~~~~~~~~~~
main.c:40:7: error: stray '#' in program
   40 |  Case #5: -  - - 4 B 433 B 01_small_03.in
      |       ^
main.c:40:28: error: invalid suffix "_small_03.in" on integer constant
   40 |  Case #5: -  - - 4 B 433 B 01_small_03.in
      |                            ^~~~~~~~~~~~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:26:9: error: 'else' without a previous 'if'
   26 |         else if (i % 1000 / 100 == 3);
      |         ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:30: error: expected ';' before '}' token
   10 |             printf(" %d\n",i)
      |                              ^
      |                              ;
   11 |         }
      |         ~
Language: C

#include<stdio.h>

int main(){

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

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

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

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |     scanf("%d",&n);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include <stdio.h>
main.c:8:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |     scanf("%d",&n);
      |     ^~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:5: error: implicit declaration of function 'find3' [-Wimplicit-function-declaration]
    9 |     find3(n);
      |     ^~~~~
main.c:11:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |     printf("\n");
      |     ^~~~~~
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:15:6: warning: conflicting types for 'find3'; have 'void(int)'
   15 | void find3(int n){
      |      ^~~~~
main.c:9:5: note: previous implicit declaration of 'find3' with type 'void(int)'
    9 |     find3(n);
      |     ^~~~~
main.c: In function 'find3':
main.c:20:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   20 |             printf(" %d",i);
      |             ^~~~~~
main.c:20:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:24:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   24 |             printf(" %d",i);
      |             ^~~~~~
main.c:24:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:26:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   26 |             printf(" %d",i);
      |             ^~~~~~
main.c:26:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:28:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   28 |             printf(" %d",i);
      |             ^~~~~~
main.c:28:13: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:16:11: error: expected ';' before 'if'
   16 |     j=j/10
      |           ^
      |           ;
   17 |     if(j==0){break;}
      |     ~~
Language: C

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

Compiler output:
main.c:23:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   23 | v
      | ^
Language: C

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

  cout << endl;
}

Compiler output:
main.c: In function 'call':
main.c:6:5: error: 'cout' undeclared (first use in this function)
    6 |     cout << " " << i;
      |     ^~~~
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:11: error: 'endl' undeclared (first use in this function)
   19 |   cout << endl;
      |           ^~~~
Language: C

#include <stdio,h>


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


}

}


return ans;
}

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

#include <stdio,h>


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

printf("\n");

}

}


return ans;
}

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

#include <stdio,h>


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

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

}
printf("\n");

return 0;
}

}


return ans;
}

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