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

#include<stdio.h>
int main(void){
??int a,b,d,r;
??double f;
??scanf("%d %d",&a,&b);
??d = a/b;
??r = a%b;
??f =(double)a/(double)b;
??printf("%d %d %lf\n",d,r,f);
??return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:1: error: expected expression before '?' token
    3 | ??int a,b,d,r;
      | ^
main.c:4:1: error: expected expression before '?' token
    4 | ??double f;
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ??scanf("%d %d",&a,&b);
      | ^
main.c:5:18: error: 'a' undeclared (first use in this function)
    5 | ??scanf("%d %d",&a,&b);
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:21: error: 'b' undeclared (first use in this function)
    5 | ??scanf("%d %d",&a,&b);
      |                     ^
main.c:6:1: error: expected expression before '?' token
    6 | ??d = a/b;
      | ^
main.c:6:3: error: 'd' undeclared (first use in this function)
    6 | ??d = a/b;
      |   ^
main.c:7:1: error: expected expression before '?' token
    7 | ??r = a%b;
      | ^
main.c:7:3: error: 'r' undeclared (first use in this function)
    7 | ??r = a%b;
      |   ^
main.c:8:1: error: expected expression before '?' token
    8 | ??f =(double)a/(double)b;
      | ^
main.c:8:3: error: 'f' undeclared (first use in this function)
    8 | ??f =(double)a/(double)b;
      |   ^
main.c:9:1: error: expected expression before '?' token
    9 | ??printf("%d %d %lf\n",d,r,f);
      | ^
main.c:10:1: error: expected expression before '?' token
   10 | ??return 0;
      | ^
Language: C

int main(void){
??int a,b;
??double c;
??scanf("%d %d",&a,&b);
??
??c =(double)a/b;
??printf("%d %d %lf\n",a/b,a%b,c);
??return 0;
}

Compiler output:
main.c: In function 'main':
main.c:2:1: error: expected expression before '?' token
    2 | ??int a,b;
      | ^
main.c:3:1: error: expected expression before '?' token
    3 | ??double c;
      | ^
main.c:4:1: error: expected expression before '?' token
    4 | ??scanf("%d %d",&a,&b);
      | ^
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 | ??scanf("%d %d",&a,&b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | ??scanf("%d %d",&a,&b);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:18: error: 'a' undeclared (first use in this function)
    4 | ??scanf("%d %d",&a,&b);
      |                  ^
main.c:4:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:21: error: 'b' undeclared (first use in this function)
    4 | ??scanf("%d %d",&a,&b);
      |                     ^
main.c:5:1: error: expected expression before '?' token
    5 | ??
      | ^
main.c:6:3: error: 'c' undeclared (first use in this function)
    6 | ??c =(double)a/b;
      |   ^
main.c:7:1: error: expected expression before '?' token
    7 | ??printf("%d %d %lf\n",a/b,a%b,c);
      | ^
main.c:7:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 | ??printf("%d %d %lf\n",a/b,a%b,c);
      |   ^~~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:34: error: expected ':' before ';' token
    7 | ??printf("%d %d %lf\n",a/b,a%b,c);
      |                                  ^
      |                                  :
main.c:8:1: error: expected expression before '?' token
    8 | ??return 0;
      | ^
Language: C

#include<stdio.h>
int main(void){
??int a,b;
??double c;
??scanf("%d %d",&a,&b);
??
??c =(double)a/b;
??printf("%d %d %lf\n",a/b,a%b,c);
??return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:1: error: expected expression before '?' token
    3 | ??int a,b;
      | ^
main.c:4:1: error: expected expression before '?' token
    4 | ??double c;
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ??scanf("%d %d",&a,&b);
      | ^
main.c:5:18: error: 'a' undeclared (first use in this function)
    5 | ??scanf("%d %d",&a,&b);
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:21: error: 'b' undeclared (first use in this function)
    5 | ??scanf("%d %d",&a,&b);
      |                     ^
main.c:6:1: error: expected expression before '?' token
    6 | ??
      | ^
main.c:7:3: error: 'c' undeclared (first use in this function)
    7 | ??c =(double)a/b;
      |   ^
main.c:8:1: error: expected expression before '?' token
    8 | ??printf("%d %d %lf\n",a/b,a%b,c);
      | ^
main.c:8:34: error: expected ':' before ';' token
    8 | ??printf("%d %d %lf\n",a/b,a%b,c);
      |                                  ^
      |                                  :
main.c:9:1: error: expected expression before '?' token
    9 | ??return 0;
      | ^
Language: C

#include<stdio.h>
int main(void){
??int a,b;
??double c;
??scanf("%d %d",&a,&b);
??
??c =(double)a/b;
??printf("%d %d %f\n",a/b,a%b,c);
??return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:1: error: expected expression before '?' token
    3 | ??int a,b;
      | ^
main.c:4:1: error: expected expression before '?' token
    4 | ??double c;
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ??scanf("%d %d",&a,&b);
      | ^
main.c:5:18: error: 'a' undeclared (first use in this function)
    5 | ??scanf("%d %d",&a,&b);
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:21: error: 'b' undeclared (first use in this function)
    5 | ??scanf("%d %d",&a,&b);
      |                     ^
main.c:6:1: error: expected expression before '?' token
    6 | ??
      | ^
main.c:7:3: error: 'c' undeclared (first use in this function)
    7 | ??c =(double)a/b;
      |   ^
main.c:8:1: error: expected expression before '?' token
    8 | ??printf("%d %d %f\n",a/b,a%b,c);
      | ^
main.c:8:33: error: expected ':' before ';' token
    8 | ??printf("%d %d %f\n",a/b,a%b,c);
      |                                 ^
      |                                 :
main.c:9:1: error: expected expression before '?' token
    9 | ??return 0;
      | ^
Language: C

#include<stdio.h>
main(){
??int a,b;
??double c;
??scanf("%d %d",&a,&b);
??
??c =(double)a/b;
??printf("%d %d %f\n",a/b,a%b,c);
??return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:3:1: error: expected expression before '?' token
    3 | ??int a,b;
      | ^
main.c:4:1: error: expected expression before '?' token
    4 | ??double c;
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ??scanf("%d %d",&a,&b);
      | ^
main.c:5:18: error: 'a' undeclared (first use in this function)
    5 | ??scanf("%d %d",&a,&b);
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:21: error: 'b' undeclared (first use in this function)
    5 | ??scanf("%d %d",&a,&b);
      |                     ^
main.c:6:1: error: expected expression before '?' token
    6 | ??
      | ^
main.c:7:3: error: 'c' undeclared (first use in this function)
    7 | ??c =(double)a/b;
      |   ^
main.c:8:1: error: expected expression before '?' token
    8 | ??printf("%d %d %f\n",a/b,a%b,c);
      | ^
main.c:8:33: error: expected ':' before ';' token
    8 | ??printf("%d %d %f\n",a/b,a%b,c);
      |                                 ^
      |                                 :
main.c:9:1: error: expected expression before '?' token
    9 | ??return 0;
      | ^
Language: C

#include<stdio.h>
int main(){
int a,b;
scanf("%d%d", &a, &b,);

printf("%d%d%.5lfd", a/b, a%b, a/b);

return 0;

}

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

#include<stdio.h>
int main(){
int a,b;
scanf("%d%d", &a, &b,);

printf("%d%d%.5lf", a/b, a%b, a/b);

return 0;

}

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

  


#include<stdio.h>

int main(void)

{

int a,b,d,r;

double f;

scanf("%d %d",&a &b);

d=a/b;

r=a%b;

f=(double)a/b;

printf("%d %d %lf",d,r,f);

return 0;

}
  

Compiler output:
main.c: In function 'main':
main.c:14:18: error: invalid operands to binary & (have 'int *' and 'int')
   14 | scanf("%d %d",&a &b);
      |               ~~ ^
      |               |
      |               int *
Language: C

  


#include<stdio.h>

int main(void)

{

int a,b,d,r;

double f;

scanf("%d %d",&a &b);

d=a/b;

r=a%b;

f=(double)a/b;

printf("%d %d %lf\n",d,r,f);

return 0;

}
  

Compiler output:
main.c: In function 'main':
main.c:14:18: error: invalid operands to binary & (have 'int *' and 'int')
   14 | scanf("%d %d",&a &b);
      |               ~~ ^
      |               |
      |               int *
Language: C

#include<stdio.h>
int main(){
int a,b;
double c;
scanf("%d%d", &a, &b);

c = a/b;

printf("%d %d %.5lf\n", a/b, a%b, );

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:35: error: expected expression before ')' token
    9 | printf("%d %d %.5lf\n", a/b, a%b, );
      |                                   ^
Language: C

#include<stdio.h>
int main(void)
{
int a,b,d,r;
double f;
scanf("%d %d",&a,%b);
d=a/b;
r=a%b;
printf("%d %d %lf\n",d,r,f);
return 0;
}

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

#include<stdio.h>
int main(void)
{
int a,b,d,r;
double f;
scanf("%d %d",&a,%b);
d=a/b;
r=a%b;
f=(double)a/b;
printf("%d %d %lf\n",d,r,f);
return 0;
}

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

#include<stdio.h>
int main(void)
{
int a,b,d,r;
double f;
scanf("%d%d",&a,%b);
d=a/b;
r=a%b;
f=(double)a/b;
printf("%d %d %lf\n",d,r,f);
return 0;
}

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

#include<stdio.h>
int main(void)
{
 int a,b,x,y;
 double A
  scanf("%d %d\n",&a,&b);
  x=a/b;
  y=a%b;
  A=(double)a/b;
  printf("%d %d %lf\n",x,y,A);
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |   scanf("%d %d\n",&a,&b);
      |   ^~~~~
main.c:9:3: error: 'A' undeclared (first use in this function)
    9 |   A=(double)a/b;
      |   ^
main.c:9:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)
{
int a,b,d,r;
double f;
scanf("%d %d",&a,%b);
d=a/b;
r=a%b;
f=(double)a/b;
printf("%d  %d  %lf\n",d,r,f);
return 0;
}

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

#include<stdio.h>
int main(void)
{
int a,b,d,r;
double f;
scanf("%d%d",&a,%b);
d=a/b;
r=a%b;
f=(double)a/b;
printf("%d%d%lf\n",d,r,f);
return 0;
}

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

#include<stdio.h>
int main(void)
{
 int a,b;
 double A
  scanf("%d%d\n",&a,&b);
  A =(double)a/b;
  printf("%d %d %lf\n",a/b,a%b,A);
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |   scanf("%d%d\n",&a,&b);
      |   ^~~~~
main.c:7:3: error: 'A' undeclared (first use in this function)
    7 |   A =(double)a/b;
      |   ^
main.c:7:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)
{
int a,b;
double c;
scanf("%d%d",&a,%b);
c=(double)a/b;
printf("%d %d %lf\n",d,r,f);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected expression before '%' token
    6 | scanf("%d%d",&a,%b);
      |                 ^
main.c:8:22: error: 'd' undeclared (first use in this function)
    8 | printf("%d %d %lf\n",d,r,f);
      |                      ^
main.c:8:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:24: error: 'r' undeclared (first use in this function)
    8 | printf("%d %d %lf\n",d,r,f);
      |                        ^
main.c:8:26: error: 'f' undeclared (first use in this function)
    8 | printf("%d %d %lf\n",d,r,f);
      |                          ^
Language: C

#include<stdio.h>
int main(void)
{
int a,b;
double c;
scanf("%d%d",&a,%b);
c=(double)a/b;
printf("%d %d %lf\n",a/b,a%b,c);
return 0;
}

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

#include<stdio.h>

int main(void)

{

int a,b;

double c;

scanf("%d%d",&a,%b);

c=(double)a/b;

printf("%d %d %lf\n",a/b,a%b,c);

return 0;

}

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

#include<stdio.h>

int main(void)

{

double r,x,y;

scanf("%lf",&r);

x=r*r*PI;

y=2*r*PI;

printf("%lf %lf\n",x,y);

return 0;

}

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

{

    int a,b;

 printf(">>");

 scanf("%d %d",&a,&b);

   printf("a/b=%d",a/b);

 printf("a/b=%d",a%b);

 printf("a/b=%lf",(double)a/b);

 return 0;

}

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

#include<stdio.h>

int main(void){


scanf("%d%d",&a,&b);


c=(double)a/b;


printf("%d %d %lf\n",a/b,a%b,c);


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: 'a' undeclared (first use in this function)
    6 | scanf("%d%d",&a,&b);
      |               ^
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:18: error: 'b' undeclared (first use in this function)
    6 | scanf("%d%d",&a,&b);
      |                  ^
main.c:9:1: error: 'c' undeclared (first use in this function)
    9 | c=(double)a/b;
      | ^
Language: C

#include<stdio.h>
int main(void){
scanf("%d%d",&a,&b);
c=(double)a/b;
printf("%d %d %lf\n",a/b,a%b,c);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:15: error: 'a' undeclared (first use in this function)
    3 | scanf("%d%d",&a,&b);
      |               ^
main.c:3:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:18: error: 'b' undeclared (first use in this function)
    3 | scanf("%d%d",&a,&b);
      |                  ^
main.c:4:1: error: 'c' undeclared (first use in this function)
    4 | c=(double)a/b;
      | ^
Language: C

#include<iostream>
using namespace std;
 
int main(){
    int x,y;
    cin >> x>>y;
     
    printf("%d %d %lf\n",x/y,x%y,(double)x/(double)y);
     
     
    return 0;
}

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

#include<stdio.h>

main()

{

int a,b;

double c;

scanf("%d%d"&a,&b);

c={double}a/b;

printf("%d %d %f\n",a/b,a%b,c);

return 0;

}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:11:13: error: invalid operands to binary & (have 'char *' and 'int')
   11 | scanf("%d%d"&a,&b);
      |       ~~~~~~^
      |       |
      |       char *
main.c:13:3: error: expected expression before '{' token
   13 | c={double}a/b;
      |   ^
Language: C

#include<stdio.h>

int main()

{

int a,b;

double c;

scanf("%d%d"&a,&b);

c={double}a/b;

printf("%d %d %f\n",a/b,a%b,c);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:11:13: error: invalid operands to binary & (have 'char *' and 'int')
   11 | scanf("%d%d"&a,&b);
      |       ~~~~~~^
      |       |
      |       char *
main.c:13:3: error: expected expression before '{' token
   13 | c={double}a/b;
      |   ^
Language: C

#include<stdio.h>

int main()

{

int a,b;

double c;

scanf("%d%d"&a,&b);

c=(double)a/b;

printf("%d %d %f\n",a/b,a%b,c);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:11:13: error: invalid operands to binary & (have 'char *' and 'int')
   11 | scanf("%d%d"&a,&b);
      |       ~~~~~~^
      |       |
      |       char *
Language: C

#include<stdio.h>

int main()

{

int a,b;

double c;

scanf("%d%d",&a,&b);

c={double}a/b;

printf("%d %d %f\n",a/b,a%b,c);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:3: error: expected expression before '{' token
   13 | c={double}a/b;
      |   ^
Language: C

#include<stdio.h>

main()

{

int a,b;

double c;

scanf("%d %d",&a,&b);

c={double}a/b;

printf("%d %d %f\n",a/b,a%b,c);

return 0;

}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:13:3: error: expected expression before '{' token
   13 | c={double}a/b;
      |   ^
Language: C

#include<stdio.h>
int main(void)
{

int a,b,d,r;

double f;
 
scanf("%d %d",&a,&b);

d=a/b;
r=a%b;
f=(cast)a/b

printf("%d %d %d %lf\n",a*b,(2*a)+(2*b));

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:4: error: 'cast' undeclared (first use in this function)
   13 | f=(cast)a/b
      |    ^~~~
main.c:13:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:9: error: expected ';' before 'a'
   13 | f=(cast)a/b
      |         ^
      |         ;
Language: C

#include<stdio.h>
int main(void)
{

int a,b,d,r;

double f;
 
scanf("%d %d",&a,&b);

d=a/b;
r=a%b;
f=(cast)a/b;

printf("%d %d %d %lf\n",d,r,f);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:4: error: 'cast' undeclared (first use in this function)
   13 | f=(cast)a/b;
      |    ^~~~
main.c:13:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:9: error: expected ';' before 'a'
   13 | f=(cast)a/b;
      |         ^
      |         ;
Language: C

#include<stdio.h>
int main(void)
{

int a,b,d,r;

double f;
 
scanf("%d %d",&a,&b);

d=a/b;
r=a%b;
f=(cast)a/b;

printf("%d %d %lf\n",d,r,f);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:4: error: 'cast' undeclared (first use in this function)
   13 | f=(cast)a/b;
      |    ^~~~
main.c:13:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:9: error: expected ';' before 'a'
   13 | f=(cast)a/b;
      |         ^
      |         ;
Language: C

#include<stdio.h>
int main(void)
{

int a,b,d,r;

double f;
 
scanf("%d %d",&a,&b);

d=a/b;
r=a%b;
f=(cast)a/b;

printf("%d %d %5lf\n",d,r,f);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:4: error: 'cast' undeclared (first use in this function)
   13 | f=(cast)a/b;
      |    ^~~~
main.c:13:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:9: error: expected ';' before 'a'
   13 | f=(cast)a/b;
      |         ^
      |         ;
Language: C

#include<stdio.h>

main(){

int a,b;

double c;

scanf("%d %d",&a,&b);

c=(double)a/b;

printf("%d %d %lf\n",a/b,a%b,c);

return 0:

}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:15:9: error: expected ';' before ':' token
   15 | return 0:
      |         ^
      |         ;
Language: C

#include<stdio.h>

main(){

int a,b;

double c;

scanf("%d %d",&a,&b);

c=(double)a/b;

printf("%d %d %f\n",a/b,a%b,c);

return 0:

}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:15:9: error: expected ';' before ':' token
   15 | return 0:
      |         ^
      |         ;
Language: C

#include<stdio.h>
main(){
int a,b;
double c;
scanf("%d %d",&a,&b};
c=(double)a/b;
printf("%d %d %f\n",a/b,a%b,c);
return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:5:20: error: expected ')' before '}' token
    5 | scanf("%d %d",&a,&b};
      |      ~             ^
      |                    )
main.c:5:20: error: expected ';' before '}' token
    5 | scanf("%d %d",&a,&b};
      |                    ^
      |                    ;
main.c: At top level:
main.c:6:1: warning: data definition has no type or storage class
    6 | c=(double)a/b;
      | ^
main.c:6:1: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:6:11: error: 'a' undeclared here (not in a function)
    6 | c=(double)a/b;
      |           ^
main.c:6:13: error: 'b' undeclared here (not in a function)
    6 | c=(double)a/b;
      |             ^
main.c:7:8: error: expected declaration specifiers or '...' before string constant
    7 | printf("%d %d %f\n",a/b,a%b,c);
      |        ^~~~~~~~~~~~
main.c:7:21: error: expected declaration specifiers or '...' before 'a'
    7 | printf("%d %d %f\n",a/b,a%b,c);
      |                     ^
main.c:7:25: error: expected declaration specifiers or '...' before 'a'
    7 | printf("%d %d %f\n",a/b,a%b,c);
      |                         ^
main.c:7:29: error: expected declaration specifiers or '...' before 'c'
    7 | printf("%d %d %f\n",a/b,a%b,c);
      |                             ^
main.c:8:1: error: expected identifier or '(' before 'return'
    8 | return 0;
      | ^~~~~~
main.c:9:1: error: expected identifier or '(' before '}' token
    9 | }
      | ^
Language: C

#include<stdio.h>
main(){
int a,b;
double c=0;
scanf("%d %d",&a,&b};
c=(double)a/b;
printf("%d %d %f\n",a/b,a%b,c);
return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:5:20: error: expected ')' before '}' token
    5 | scanf("%d %d",&a,&b};
      |      ~             ^
      |                    )
main.c:5:20: error: expected ';' before '}' token
    5 | scanf("%d %d",&a,&b};
      |                    ^
      |                    ;
main.c: At top level:
main.c:6:1: warning: data definition has no type or storage class
    6 | c=(double)a/b;
      | ^
main.c:6:1: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:6:11: error: 'a' undeclared here (not in a function)
    6 | c=(double)a/b;
      |           ^
main.c:6:13: error: 'b' undeclared here (not in a function)
    6 | c=(double)a/b;
      |             ^
main.c:7:8: error: expected declaration specifiers or '...' before string constant
    7 | printf("%d %d %f\n",a/b,a%b,c);
      |        ^~~~~~~~~~~~
main.c:7:21: error: expected declaration specifiers or '...' before 'a'
    7 | printf("%d %d %f\n",a/b,a%b,c);
      |                     ^
main.c:7:25: error: expected declaration specifiers or '...' before 'a'
    7 | printf("%d %d %f\n",a/b,a%b,c);
      |                         ^
main.c:7:29: error: expected declaration specifiers or '...' before 'c'
    7 | printf("%d %d %f\n",a/b,a%b,c);
      |                             ^
main.c:8:1: error: expected identifier or '(' before 'return'
    8 | return 0;
      | ^~~~~~
main.c:9:1: error: expected identifier or '(' before '}' token
    9 | }
      | ^
Language: C

#include<stdio.h>
int main(){
int a,b;
double c;
scanf("%d %d",&a,&b};
c=(double)a/b;
printf("%d %d %f\n",a/b,a%b,c);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:20: error: expected ')' before '}' token
    5 | scanf("%d %d",&a,&b};
      |      ~             ^
      |                    )
main.c:5:20: error: expected ';' before '}' token
    5 | scanf("%d %d",&a,&b};
      |                    ^
      |                    ;
main.c: At top level:
main.c:6:1: warning: data definition has no type or storage class
    6 | c=(double)a/b;
      | ^
main.c:6:1: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:6:11: error: 'a' undeclared here (not in a function)
    6 | c=(double)a/b;
      |           ^
main.c:6:13: error: 'b' undeclared here (not in a function)
    6 | c=(double)a/b;
      |             ^
main.c:7:8: error: expected declaration specifiers or '...' before string constant
    7 | printf("%d %d %f\n",a/b,a%b,c);
      |        ^~~~~~~~~~~~
main.c:7:21: error: expected declaration specifiers or '...' before 'a'
    7 | printf("%d %d %f\n",a/b,a%b,c);
      |                     ^
main.c:7:25: error: expected declaration specifiers or '...' before 'a'
    7 | printf("%d %d %f\n",a/b,a%b,c);
      |                         ^
main.c:7:29: error: expected declaration specifiers or '...' before 'c'
    7 | printf("%d %d %f\n",a/b,a%b,c);
      |                             ^
main.c:8:1: error: expected identifier or '(' before 'return'
    8 | return 0;
      | ^~~~~~
main.c:9:1: error: expected identifier or '(' before '}' token
    9 | }
      | ^
Language: C

#includ <stdio.h>

int main (void)

{
int a,b;

double c;

scanf("%d%d",&a,&b);

c=(double)a/b;

printf("%d %d %f\n",a/b,a%b,c);

return 0;

}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:10:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 | scanf("%d%d",&a,&b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includ <stdio.h>
main.c:10:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   10 | scanf("%d%d",&a,&b);
      | ^~~~~
main.c:10:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:14:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   14 | printf("%d %d %f\n",a/b,a%b,c);
      | ^~~~~~
main.c:14:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:14:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h> int main(){   

int a, b, d, r;   

double f;   

scanf("%d %d", &a, &b);   

d=a/b;   

r=a%b;   

f=(double)a/(double)b;   

printf("%d %d %f\n", d, r, f);   

return 0;

}

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main(){
      |                    ^~~
main.c:7:7: error: expected declaration specifiers or '...' before string constant
    7 | scanf("%d %d", &a, &b);
      |       ^~~~~~~
main.c:7:16: error: expected declaration specifiers or '...' before '&' token
    7 | scanf("%d %d", &a, &b);
      |                ^
main.c:7:20: error: expected declaration specifiers or '...' before '&' token
    7 | scanf("%d %d", &a, &b);
      |                    ^
main.c:9:1: warning: data definition has no type or storage class
    9 | d=a/b;
      | ^
main.c:9:1: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
main.c:9:3: error: initializer element is not constant
    9 | d=a/b;
      |   ^
main.c:11:1: warning: data definition has no type or storage class
   11 | r=a%b;
      | ^
main.c:11:1: error: type defaults to 'int' in declaration of 'r' [-Wimplicit-int]
main.c:11:3: error: initializer element is not constant
   11 | r=a%b;
      |   ^
main.c:13:1: warning: data definition has no type or storage class
   13 | f=(double)a/(double)b;
      | ^
main.c:13:1: error: type defaults to 'int' in declaration of 'f' [-Wimplicit-int]
main.c:13:1: error: conflicting types for 'f'; have 'int'
main.c:5:8: note: previous declaration of 'f' with type 'double'
    5 | double f;
      |        ^
main.c:15:8: error: expected declaration specifiers or '...' before string constant
   15 | printf("%d %d %f\n", d, r, f);
      |        ^~~~~~~~~~~~
main.c:15:22: error: expected declaration specifiers or '...' before 'd'
   15 | printf("%d %d %f\n", d, r, f);
      |                      ^
main.c:15:25: error: expected declaration specifiers or '...' before 'r'
   15 | printf("%d %d %f\n", d, r, f);
      |                         ^
main.c:15:28: error: expected declaration specifiers or '...' before 'f'
   15 | printf("%d %d %f\n", d, r, f);
      |                            ^
main.c:17:1: error: expected identifier or '(' before 'return'
   17 | return 0;
      | ^~~~~~
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C

#include<stdio.h>

int main(void){


int a,b,d,r;


double f;


scanf("%d %d",&a,&b);


d=a/b;


r=a%b;


f=(double)a/b;


printf("%d %d %lf\n",d,r,f);


return o;


}

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

#include<stdio.h>

int main(){


int a,b;


int d,r;


double f;


scanf("%d %d",&a,&b);


d=a/b;


r=a%b


f=(double)a/b;


printf("%d %d %lf\n",d,r,f);


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:21:6: error: expected ';' before 'f'
   21 | r=a%b
      |      ^
      |      ;
......
   24 | f=(double)a/b;
      | ~
Language: C

#include<stdio.h>
int main(void){
int a.b.d=0,r=0;
double f=0,0;
scanf("%d &d",&a,&b);
d=a/b;
r=a%b;
f=(double)a/b;
printf("%d %d %f\n",d,r,f);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    3 | int a.b.d=0,r=0;
      |      ^
main.c:3:6: error: expected expression before '.' token
main.c:3:13: error: 'r' undeclared (first use in this function)
    3 | int a.b.d=0,r=0;
      |             ^
main.c:3:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:12: error: expected identifier or '(' before numeric constant
    4 | double f=0,0;
      |            ^
main.c:5:16: error: 'a' undeclared (first use in this function)
    5 | scanf("%d &d",&a,&b);
      |                ^
main.c:5:19: error: 'b' undeclared (first use in this function)
    5 | scanf("%d &d",&a,&b);
      |                   ^
main.c:6:1: error: 'd' undeclared (first use in this function)
    6 | d=a/b;
      | ^
Language: C

#include<stdio.h>
int main(void){
int a,b,d=0,r=0;
double f=0,0;
scanf("%d &d",&a,&b);
d=a/b;
r=a%b;
f=(double)a/b;
printf("%d %d %f\n",d,r,f);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:12: error: expected identifier or '(' before numeric constant
    4 | double f=0,0;
      |            ^
Language: C

#include<stdio.h>
int main()
{
    double a,b,d,r,f;
    scanf("%lf %lf",&a,&b);
    d = a/b;
    r = a%b;
    f = a/b;

    printf("%.0f %.0f %f\n",d,r,f);


    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: invalid operands to binary % (have 'double' and 'double')
    7 |     r = a%b;
      |          ^
Language: C

#include <stdio.h> main() {  int  a, b, d, r;  double f;   scanf("%d %d", &a, &b);   d = a / b;  r = a % b;  f =(double)a / (double)b;   printf("%d %d %f\n", d, r, f);   return 0;} 

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> main() {  int  a, b, d, r;  double f;   scanf("%d %d", &a, &b);   d = a / b;  r = a % b;  f =(double)a / (double)b;   printf("%d %d %f\n", d, r, f);   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(){  int a, b, d, r;  double f;  scanf("%d %d", &a, &b);d=a/b; r=a-b*d; f=(double)a/b;   printf("%d %d %f\n", d, r, f);  return 0;}

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>int main(){  int a, b, d, r;  double f;  scanf("%d %d", &a, &b);d=a/b; r=a-b*d; f=(double)a/b;   printf("%d %d %f\n", d, r, f);  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>main()

{ 

int a, b; 

double c;  

scanf("%d%d",&a, &b);

c = (double)a/b; 

printf("%d %d %f\n", a/b, a%b, c);   

return 0 ; 

}

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>main()
      |                  ^~~~
main.c:3:1: error: expected identifier or '(' before '{' token
    3 | {
      | ^
Language: C

#include<stdio.h>int main(void){int a,b;
scanf("%d %d",&a,&b);
printf("%d %d %lf",a/b,a%b,(double)a/b);
return 0;}

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>int main(void){int a,b;
      |                  ^~~
main.c:2:7: error: expected declaration specifiers or '...' before string constant
    2 | scanf("%d %d",&a,&b);
      |       ^~~~~~~
main.c:2:15: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d %d",&a,&b);
      |               ^
main.c:2:18: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d %d",&a,&b);
      |                  ^
main.c:3:8: error: expected declaration specifiers or '...' before string constant
    3 | printf("%d %d %lf",a/b,a%b,(double)a/b);
      |        ^~~~~~~~~~~
main.c:3:20: error: unknown type name 'a'
    3 | printf("%d %d %lf",a/b,a%b,(double)a/b);
      |                    ^
main.c:3:24: error: unknown type name 'a'
    3 | printf("%d %d %lf",a/b,a%b,(double)a/b);
      |                        ^
main.c:3:28: error: expected declaration specifiers or '...' before '(' token
    3 | printf("%d %d %lf",a/b,a%b,(double)a/b);
      |                            ^
main.c:4:1: error: expected identifier or '(' before 'return'
    4 | return 0;}
      | ^~~~~~
main.c:4:10: error: expected identifier or '(' before '}' token
    4 | return 0;}
      |          ^
Language: C

#include<stdio.h>int main(void){int a,d;
scanf("%d %d",&a,&d);
printf("%d %d %lf",a/d,a%d,(double)a/d);
return 0;}

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>int main(void){int a,d;
      |                  ^~~
main.c:2:7: error: expected declaration specifiers or '...' before string constant
    2 | scanf("%d %d",&a,&d);
      |       ^~~~~~~
main.c:2:15: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d %d",&a,&d);
      |               ^
main.c:2:18: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d %d",&a,&d);
      |                  ^
main.c:3:8: error: expected declaration specifiers or '...' before string constant
    3 | printf("%d %d %lf",a/d,a%d,(double)a/d);
      |        ^~~~~~~~~~~
main.c:3:20: error: unknown type name 'a'
    3 | printf("%d %d %lf",a/d,a%d,(double)a/d);
      |                    ^
main.c:3:24: error: unknown type name 'a'
    3 | printf("%d %d %lf",a/d,a%d,(double)a/d);
      |                        ^
main.c:3:28: error: expected declaration specifiers or '...' before '(' token
    3 | printf("%d %d %lf",a/d,a%d,(double)a/d);
      |                            ^
main.c:4:1: error: expected identifier or '(' before 'return'
    4 | return 0;}
      | ^~~~~~
main.c:4:10: error: expected identifier or '(' before '}' token
    4 | return 0;}
      |          ^
Language: C

#include<stdio.h>
int main(void)
{
int a,b,d=0,r=0;
double f=0.0;
scanf("%d %d",&a,&b);
d=a/b;
r=a%b;
f=(double)a/b
printf("%d %d %f\n",d,r,f);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:14: error: expected ';' before 'printf'
    9 | f=(double)a/b
      |              ^
      |              ;
   10 | printf("%d %d %f\n",d,r,f);
      | ~~~~~~
Language: C

#include<stdio.h> int main(void) {int a,b,d,r;double f;scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b;printf("%d %d %lf\n",d,r,f);return 0;}

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> int main(void) {int a,b,d,r;double f;scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b;printf("%d %d %lf\n",d,r,f);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 a,b,d,r;double f;scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b;printf("%d %d %lf\n",d,r,f);return 0;}

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main(void) {int a,b,d,r;double f;scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b;printf("%d %d %lf\n",d,r,f);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 a,b,d,r;double f;scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b;printf("%d %d %lf\n",d,r,f);return 0;}

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main (void) {int a,b,d,r;double f;scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b;printf("%d %d %lf\n",d,r,f);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 a,b,d,r;double f;scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b;printf("%d %d %lf\n",d,r,f);return 0;}

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main (void){int a,b,d,r;double f;scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b;printf("%d %d %lf\n",d,r,f);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 a,b,d,r;double f;printf();scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b; printf("%d %d %lf\n",d,r,f);return 0;}

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main (void){int a,b,d,r;double f;printf();scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b; printf("%d %d %lf\n",d,r,f);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 a,b,d,r;double f;printf("");scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b; printf("%d %d %lf\n",d,r,f);return 0;}

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main (void){int a,b,d,r;double f;printf("");scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b; printf("%d %d %lf\n",d,r,f);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 a,b,d,r;double f;printf("a,b");scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b; printf("%d %d %lf\n",d,r,f);return 0;}

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main (void){int a,b,d,r;double f;printf("a,b");scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b; printf("%d %d %lf\n",d,r,f);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 a,b,d,r;double f;printf("a,b");scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b; printf("%d %d %lf \n",d,r,f);return 0;}

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main (void){int a,b,d,r;double f;printf("a,b");scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b; printf("%d %d %lf \n",d,r,f);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 a,b,d,r;double f;printf("a,b");scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b; printf("%d %d %lf \n",d,r,f);return 0; }

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main (void){int a,b,d,r;double f;printf("a,b");scanf("%d %d",&a ,&b);d=a/b;r=a%b;f=a/b; printf("%d %d %lf \n",d,r,f);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 a,b,d,r;    double f;    scanf("%d %d",&a,&b); d=a/b;    r=a%b;    f=(double)a/b;    printf("%d %d %f",d,r,f); return 0;}

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> int main(void){    int a,b,d,r;    double f;    scanf("%d %d",&a,&b); d=a/b;    r=a%b;    f=(double)a/b;    printf("%d %d %f",d,r,f); 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 a,b,d,r;    double f;    scanf("%d %d",&a,&b); d=a/b;    r=a%b;    f=(double)a/b;    printf("%d %d %f",d,r,f); return 0;}

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> int main (void){    int a,b,d,r;    double f;    scanf("%d %d",&a,&b); d=a/b;    r=a%b;    f=(double)a/b;    printf("%d %d %f",d,r,f); 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 a,b,d,r;    double f;    scanf("%d %d",&a,&b); d=a/b;    r=a%b;    f=(double)a/b;    printf("%d %d %f",d,r,f); return 0; }

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> int main (void){    int a,b,d,r;    double f;    scanf("%d %d",&a,&b); d=a/b;    r=a%b;    f=(double)a/b;    printf("%d %d %f",d,r,f); 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>main(void) {  int  a, b, d, r;  double f;   scanf("%d %d", &a, &b);   d = a / b;  r = a % b;  f =(double)a / (double)b;   printf("%d %d %f\n", d, r, f);   return 0;}

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include <stdio.h>main(void) {  int  a, b, d, r;  double f;   scanf("%d %d", &a, &b);   d = a / b;  r = a % b;  f =(double)a / (double)b;   printf("%d %d %f\n", d, r, f);   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 a,b;
scanf("%d %d",&a ,&b);
d=a/b;
r=a%b;
f=a/b;
printf("%d %d %.5lf\n",d,r,f);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: 'd' undeclared (first use in this function)
    6 | d=a/b;
      | ^
main.c:6:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:1: error: 'r' undeclared (first use in this function)
    7 | r=a%b;
      | ^
main.c:8:1: error: 'f' undeclared (first use in this function)
    8 | f=a/b;
      | ^
Language: C

#include<stdio,h>
int main(void)
{
    int a,b,d,r;
    float f,x,y;
    scanf("%d %d",&a,&b);;
    d=a/b;
    r=a%b;
    x=a;
    y=b;
    f=x/y;
    printf("%d %d %8lf",d,r,f);
    return 0;
}

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

#include<stdio.h>

int main(void){


  int a,b;


  bouble c;


  scanf("%d%d",%&a,&b);


  c = (double)a/b;


  printf("%d %d %lf\n",a/b,a%b,c);


  return 0;


}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: unknown type name 'bouble'; did you mean 'double'?
    9 |   bouble c;
      |   ^~~~~~
      |   double
main.c:12:16: error: expected expression before '%' token
   12 |   scanf("%d%d",%&a,&b);
      |                ^
Language: C

#include<stdio.h>

int main(void){


  int a,b;


  bouble c;


  scanf("%d %d\n",%&a,&b);


  c = (double)a/b;


  printf("%d %d %lf\n",a/b,a%b,c);


  return 0;


}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: unknown type name 'bouble'; did you mean 'double'?
    9 |   bouble c;
      |   ^~~~~~
      |   double
main.c:12:19: error: expected expression before '%' token
   12 |   scanf("%d %d\n",%&a,&b);
      |                   ^
Language: C

#include <stdio.h>

int main (void)

{

long a,b;

while(scanf("%ld %ld",&a,&b)!=EOF)

{

printf(%ld",a/b);

printf("%ld",a % b);

print("%.5lf\n",((double)a/(double)b);

}

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:8: error: expected expression before '%' token
   13 | printf(%ld",a/b);
      |        ^
main.c:13:11: warning: missing terminating " character
   13 | printf(%ld",a/b);
      |           ^
main.c:13:11: error: missing terminating " character
   13 | printf(%ld",a/b);
      |           ^~~~~~~
main.c:21:10: error: expected ';' before '}' token
   21 | return 0;
      |          ^
      |          ;
   22 | 
   23 | }
      | ~         
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C

#include <stdio.h>

int main (void)

{

long a,b;

while(scanf("%ld %ld",&a,&b)!=EOF)

{

printf("%ld",a/b);

printf("%ld",a % b);

print("%.5lf\n",((double)a/(double)b);

}

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:17:1: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   17 | print("%.5lf\n",((double)a/(double)b);
      | ^~~~~
      | printf
main.c:17:38: error: expected ')' before ';' token
   17 | print("%.5lf\n",((double)a/(double)b);
      |      ~                               ^
      |                                      )
main.c:17:39: error: expected ';' before '}' token
   17 | print("%.5lf\n",((double)a/(double)b);
      |                                       ^
      |                                       ;
   18 | 
   19 | }
      | ~