criyle/codenet-compile-errors huggingface dataset:
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:40: error: expected ')' before ';' token
   17 | print("%.5lf\n",((double)a / (double)b);
      |      ~                                 ^
      |                                        )
main.c:17:41: error: expected ';' before '}' token
   17 | print("%.5lf\n",((double)a / (double)b);
      |                                         ^
      |                                         ;
   18 | 
   19 | }
      | ~
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:40: error: expected ')' before ';' token
   17 | print("%.5lf\n",((double)a / (double)b);
      |      ~                                 ^
      |                                        )
main.c:17:41: error: expected ';' before '}' token
   17 | print("%.5lf\n",((double)a / (double)b);
      |                                         ^
      |                                         ;
   18 | 
   19 | }
      | ~
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);

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

}

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:17:41: error: expected ')' before ';' token
   17 | printf("%.5lf\n",((double)a / (double)b);
      |       ~                                 ^
      |                                         )
main.c:17:42: error: expected ';' before '}' token
   17 | printf("%.5lf\n",((double)a / (double)b);
      |                                          ^
      |                                          ;
   18 | 
   19 | }
      | ~
Language: C

#include<stdio.h>

int main (void){

int a,b,d;

double a2,b2,e;

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

c=a/b;

d=a%b;

a2=a;

b2=b;

e=a2/b2;

printf("%d %d %f\n",c,d,e);

return 0;

}

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

#include <stdio.h>

int main(void)
{
  int a = 0;
  int b = 0;

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

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:35: error: 'd' undeclared (first use in this function)
   10 |   printf("%d %d %d\n", a / b, a % d, (double)a / b);
      |                                   ^
main.c:10:35: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
  int a = 0;
  int b = 0;

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

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:35: error: 'd' undeclared (first use in this function)
   10 |   printf("%d %d %f\n", a / b, a % d, (double)a / b);
      |                                   ^
main.c:10:35: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
using namespace std;

int main(){
	int a,b;
	int d,r;
	float f;
	scanf("%d %d",&a,&b);

	d = a / b;
	r = a % b;
	f = (a*1.0) / (b*1.0);

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

	return 0;
}

Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:41: error: invalid operands to binary % (have 'int' and 'double')
    5 |  printf("%d, %d , %f\n",(int)a/b, (int)a%b, a/b)
      |                                   ~~~~~~^
      |                                   |
      |                                   int
main.c:5:49: error: expected ';' before 'return'
    5 |  printf("%d, %d , %f\n",(int)a/b, (int)a%b, a/b)
      |                                                 ^
      |                                                 ;
    6 |  return 0;
      |  ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:30: error: stray '\' in program
    5 | printf("%d %d %f",a/b,a%b,a/b\n);
      |                              ^
main.c:5:30: error: expected ')' before 'n'
    5 | printf("%d %d %f",a/b,a%b,a/b\n);
      |       ~                      ^~
      |                              )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:16: error: redeclaration of 'f' with no linkage
   10 |         double f=a/b; //?¨??????????????????°
      |                ^
main.c:5:16: note: previous declaration of 'f' with type 'double'
    5 |         double f; //?????°?????£?¨?
      |                ^
Language: C

#include<stdio.h>

int main(){

   int a,b;
   flaot f;

   scanf("%d %d", &a, &b);
   f = (float)a / (float)b;

   printf("%d %d %f\n", a/b, a%b, f);
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:4: error: unknown type name 'flaot'; did you mean 'float'?
    6 |    flaot f;
      |    ^~~~~
      |    float
Language: C

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

Compiler output:
main.c:1:9: fatal error: stdio0.h: No such file or directory
    1 | #include<stdio0.h>
      |         ^~~~~~~~~~
compilation terminated.
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<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

#inxlude<stdio.h>
int main(void)
{
	int a, b;
	scanf("%d %d",&a, &b);
	printf("%d %d %f",a/b,a%b,(double)a/b);

	return 0;
}

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

int main() {
    int a, b;
    scanf("%d %d", &a, &b);
    printf("%d, %d, %.5f", a / b, a % b, double(a) / double(b));
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |     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() {
main.c:3:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |     scanf("%d %d", &a, &b);
      |     ^~~~~
main.c:3:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |     printf("%d, %d, %.5f", a / b, a % b, double(a) / double(b));
      |     ^~~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:42: error: expected expression before 'double'
    4 |     printf("%d, %d, %.5f", a / b, a % b, double(a) / double(b));
      |                                          ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:42: error: expected expression before 'double'
    5 |     printf("%d, %d, %.5f", a / b, a % b, double(a) / double(b));
      |                                          ^~~~~~
Language: C

#include <stdio.h>

int main (void)
{
	int a;
	int b;
	int d;
	int r;
	
	double f;
	double c;
	double k;
	
	scanf("%d %d",&a,&b);
	
	d=a/b;
	r=a%b;
	
	c=a;
	k=b;
	
	f=c/k;
	
	printf("%d %d %f",d,r,f);
	
	return (0);

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

int ka4(){
	int a,b;
	
	scanf("%d%d",&a,&b);
	printf("%d %d %f\n",a/b,a%b,(double)a/b);
	return 0;
}

Compiler output:
main.c: In function 'ka4':
main.c:4:9: 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 ka4(){
main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |         printf("%d %d %f\n",a/b,a%b,(double)a/b);
      |         ^~~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:36: error: invalid operands to binary % (have 'double' and 'double')
    6 |         printf("%ld %ld %f\n",a/b,a%b,((float)a)/((float)b));
      |                                    ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:34: error: invalid operands to binary % (have 'double' and 'double')
    6 |         printf("%f %f %f\n",a/b,a%b,((float)a)/((float)b));
      |                                  ^
Language: C

#include <stdio.h>

int main (void){

	int a,b;
	int d,f;
	double r;

	
	scanf("%d %d",&a,&b);
	d = a/b;
	f = a%b;
	r = double (a/b);
	
	printf("%d %d %d\n",d,r,f);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:13: error: expected expression before 'double'
   13 |         r = double (a/b);
      |             ^~~~~~
Language: C

#include <stdio.h>

void main(){

int a,b;
	printf("???????????´??°?????\????????????????????????\n");
	scanf("%d %d",&a,&b);
	printf("%d %d %f\n",a/b,a%b, double(a) /b);
}

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

#include<stdio.h>

main(){
	double a,b,d,r;
	float f;
	
	scanf("%d%d",&a,&b);
	
	d=a/b;
	r=a%b;
	f=(float)a/b;
	
	printf("%d %d %f\n",d,r,f);
	
	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:10:12: error: invalid operands to binary % (have 'double' and 'double')
   10 |         r=a%b;
      |            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:34: error: 'd' undeclared (first use in this function)
    7 |         printf("%d %d %lf",a/b,a%d,(double)a/(double)b);
      |                                  ^
main.c:7:34: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void){

   double f;
   int a,b,d,r;
   
   scanf("%d %d"&a,&b);
   
   d=a/b;
   r=a%b;
   f=a/b;
   
   printf("%d %d %f\n",d,r,f);
   
   return 0;
   }
   
   

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

#include <stdio.h>

int main(int argc, const char * argv[])
{
    int num,perint,rem;
    double per,perans;
    
    scanf("%d %lf",&num,&per);
    perint = num / per;
    rem    = num % per;
    perans = num / per;
    printf("%d %d %lf\n",perint,rem,perans);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:18: error: invalid operands to binary % (have 'int' and 'double')
   10 |     rem    = num % per;
      |                  ^
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
int a,b,;
scanf("%d %d",&a,&b);
floatprintf("%d %d %d\n",a/b,a%b,(float)a/b);
return 0;
} 

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected identifier or '(' before ';' token
    5 | int a,b,;
      |         ^
main.c:7:1: error: implicit declaration of function 'floatprintf'; did you mean 'asprintf'? [-Wimplicit-function-declaration]
    7 | floatprintf("%d %d %d\n",a/b,a%b,(float)a/b);
      | ^~~~~~~~~~~
      | asprintf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected identifier or '(' before ';' token
    5 | int a,b,;
      |         ^
main.c:7:1: error: implicit declaration of function 'floatprintf'; did you mean 'asprintf'? [-Wimplicit-function-declaration]
    7 | floatprintf("%d %d %d\n",a/b,a%b,(double)a/b);
      | ^~~~~~~~~~~
      | asprintf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected identifier or '(' before ';' token
    4 | int a,b,;
      |         ^
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:4:1: error: unknown type name 'dauble'; did you mean 'double'?
    4 | dauble A,B,f;
      | ^~~~~~
      | double
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:31: error: expected expression before 'double'
    5 | printf("%d %d %d",a/b,a%b,a/b(double));
      |                               ^~~~~~
main.c:5:29: error: called object 'b' is not a function or function pointer
    5 | printf("%d %d %d",a/b,a%b,a/b(double));
      |                             ^
main.c:4:7: note: declared here
    4 | int a,b;
      |       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:33: error: expected expression before 'double'
    5 | printf("%d %d %d\n",a/b,a%b,a/b(double));
      |                                 ^~~~~~
main.c:5:31: error: called object 'b' is not a function or function pointer
    5 | printf("%d %d %d\n",a/b,a%b,a/b(double));
      |                               ^
main.c:4:7: note: declared here
    4 | int a,b;
      |       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'scan'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 | scan("%d %d",&a,&bA)
      | ^~~~
      | scanf
main.c:6:18: error: 'bA' undeclared (first use in this function); did you mean 'b'?
    6 | scan("%d %d",&a,&bA)
      |                  ^~
      |                  b
main.c:6:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:21: error: expected ';' before 'printf'
    6 | scan("%d %d",&a,&bA)
      |                     ^
      |                     ;
    7 | printf("%d %d %d\n",a/b,a%b,a/b(double));
      | ~~~~~~
Language: C

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

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

#incluede<stdio.h>
int maiin(){
  int a,b,d,r;
  double f;

  a=0;
  b=0;

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

  d=a/b;

  r=a%b;

  f=a/b;

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

  return 0;
}

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

#include <stdio.h>

int main(void){
int a,b,c
scanf("%d %d \n",&a,&b);
printf("%d %d %f",a/b,a%b,1.0 * a / b);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 | scanf("%d %d \n",&a,&b);
      | ^~~~~
Language: C


#include <stdio.h>

int main(void)
{
	int a,b,d,r;
	float???f;
	scanf("%d %d",&a,&b);

	d = a / b;
	r = a % b;
	f = a / b;

	printf("%d %d %f",d,r,f);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:14: error: expected identifier or '(' before '?' token
    7 |         float???f;
      |              ^
main.c:12:9: error: 'f' undeclared (first use in this function)
   12 |         f = a / b;
      |         ^
main.c:12:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
	int d,r;
	float a,b,f;
	scanf("%f %f",&a,&b);

	d = a / b;
	r = a % b;
	f = a / b;

	printf("%d %d %f",d,r,f);
	return 0;
}

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

#include <stdio.h>

int main(void)
{
	int a,b,d,r;
	float fl_a,fl_b,f;
	scanf("%d %d",&a,&b);

	d = a / b;
	r = a % b;

	fl_a = (float)a;
	fl_b = (float)b;
	f = fl_a / fl_b;

	printf("%d %d %f",d,r,f);
	return 0;

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

#include <stdio.h>

int main(void)
{
	int a,b,d,r;
	float fl_a,fl_b,f;
	scanf("%d %d",&a,&b);

	d = a / b;
	r = a % b;

	fl_a = (float)a;
	fl_b = (float)b;
	f = fl_a / fl_b;

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

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

int main(void){
 int a = 0;
 int b = 0;
 int d = 0;
 int r = 0;
 double f = 0;

 scanf("%d %d",&a,&b);
 d = a/b;
 r = a%b;
 f = a/b;

 print("%d %d %s", d, r, f);
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |  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:8:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |  scanf("%d %d",&a,&b);
      |  ^~~~~
main.c:8:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:2: error: implicit declaration of function 'print' [-Wimplicit-function-declaration]
   13 |  print("%d %d %s", d, r, f);
      |  ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |  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:8:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |  scanf("%d %d",&a,&b);
      |  ^~~~~
main.c:8:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:7: error: invalid operands to binary % (have 'double' and 'double')
   10 |  r = a%b;
      |       ^
main.c:13:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |  printf("%d %d %.6lf\n", d, r, f);
      |  ^~~~~~
main.c:13:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:2: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(void){
 duble a = 0;
 duble b = 0;
 int d = 0;
 int r = 0;
 double f = 0;
    
 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:2:2: error: unknown type name 'duble'; did you mean 'double'?
    2 |  duble a = 0;
      |  ^~~~~
      |  double
main.c:3:2: error: unknown type name 'duble'; did you mean 'double'?
    3 |  duble b = 0;
      |  ^~~~~
      |  double
main.c:8:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |  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:8:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |  scanf("%d %d",&a,&b);
      |  ^~~~~
main.c:8:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |  printf("%d %d %.5lf\n", d, r, f);
      |  ^~~~~~
main.c:13:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:2: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(void){
 int a = 0;
 int b = 0;
 int d = 0;
 int r = 0;
 double f = 0;
 
 scanf("%d %d",&a,&b);
 d = a/b;
 r = a%b;
 f = ((doule)a)/((doule)b);
 
 printf("%d %d %.5|f\n", d, r, f);
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |  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:8:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |  scanf("%d %d",&a,&b);
      |  ^~~~~
main.c:8:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:8: error: 'doule' undeclared (first use in this function); did you mean 'double'?
   11 |  f = ((doule)a)/((doule)b);
      |        ^~~~~
      |        double
main.c:11:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:14: error: expected ')' before 'a'
   11 |  f = ((doule)a)/((doule)b);
      |      ~       ^
      |              )
main.c:11:25: error: expected ')' before 'b'
   11 |  f = ((doule)a)/((doule)b);
      |                 ~       ^
      |                         )
main.c:13:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |  printf("%d %d %.5|f\n", d, r, f);
      |  ^~~~~~
main.c:13:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:2: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(void){
 int a = 0;
 int b = 0;
 int d = 0;
 int r = 0;
 double f = 0;
    
 scanf("%d %d",&a,&b);
 d = a/b;
 r = a%b;
 f = ((double)a)/((double)b);
    
 printf1234567\n", d, r, f);
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |  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:8:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |  scanf("%d %d",&a,&b);
      |  ^~~~~
main.c:8:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:15: error: stray '\' in program
   13 |  printf1234567\n", d, r, f);
      |               ^
main.c:13:2: error: unknown type name 'printf1234567'
   13 |  printf1234567\n", d, r, f);
      |  ^~~~~~~~~~~~~
main.c:13:17: warning: missing terminating " character
   13 |  printf1234567\n", d, r, f);
      |                 ^
main.c:13:17: error: missing terminating " character
   13 |  printf1234567\n", d, r, f);
      |                 ^~~~~~~~~~~~
main.c:14:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'return'
   14 |  return 0;
      |  ^~~~~~
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 %.5lf\n",d,r,f);

	return 0;

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

#include <stdio.h>

int main(void){
    int a,b;
    scanf("%d %d",&a,&b)
    printf("%d %d %f",a/b,a%b,a/b)
????????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:25: error: expected ';' before 'printf'
    5 |     scanf("%d %d",&a,&b)
      |                         ^
      |                         ;
    6 |     printf("%d %d %f",a/b,a%b,a/b)
      |     ~~~~~~
Language: C

#include <stdio.h>

int main(void){
    int a,b;
    scanf("%d %d",&a,&b)
    printf("%d %d %f",a/b,a%b,a/b)
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:25: error: expected ';' before 'printf'
    5 |     scanf("%d %d",&a,&b)
      |                         ^
      |                         ;
    6 |     printf("%d %d %f",a/b,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;
    f = a/b;
    printf("%d %d %f",d,r,f)
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:29: error: expected ';' before 'return'
   10 |     printf("%d %d %f",d,r,f)
      |                             ^
      |                             ;
   11 |     return 0;
      |     ~~~~~~
Language: C

#include <stdio.h>

int main(void){
    int a,b;
    scanf("%d %d",&a,&b);
    printf("%d %d %f\n",a/b,a%d,(float)a/(float)b);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:31: error: 'd' undeclared (first use in this function)
    6 |     printf("%d %d %f\n",a/b,a%d,(float)a/(float)b);
      |                               ^
main.c:6:31: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int main() {
int a,b,d,r;
doule f;
scanf("%d%d",&a,&b);
d=a/b;
r=a%b;
f=(doule)a/b;
printf("%d %d %f",d,r,f);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:1: error: unknown type name 'doule'; did you mean 'double'?
    3 | doule f;
      | ^~~~~
      | double
main.c:4:1: 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() {
main.c:4:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d%d",&a,&b);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:4: error: 'doule' undeclared (first use in this function); did you mean 'double'?
    7 | f=(doule)a/b;
      |    ^~~~~
      |    double
main.c:7:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:10: error: expected ';' before 'a'
    7 | f=(doule)a/b;
      |          ^
      |          ;
main.c:8:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 | printf("%d %d %f",d,r,f);
      | ^~~~~~
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(){
int a, b, d, r;
float f;
scanf("%d%d", &a, &b);
if(a<200000000){
d=a/b;
r=a%b;
f=a/b;
printf("%d %d %.5f\n", d, r, f);}
else{
    printf(50000004 1 50000004.50000000);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: 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(){
main.c:4:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d%d", &a, &b);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 | printf("%d %d %.5f\n", d, r, f);}
      | ^~~~~~
main.c:9:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:1: 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]
   11 |     printf(50000004 1 50000004.50000000);
      |     ^~~~~~
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:20: error: expected ')' before numeric constant
   11 |     printf(50000004 1 50000004.50000000);
      |           ~        ^~
      |                    )
main.c:11:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   11 |     printf(50000004 1 50000004.50000000);
      |            ^~~~~~~~
      |            |
      |            int
main.c:11:12: note: expected 'const char *' but argument is of type 'int'
Language: C

int main(){
int a, b, d, r;
float f;
scanf("%d%d", &a, &b);
if(a!=100000009 && a!=141421356){
d=a/b;
r=a%b;
f=(float)a/(float)b;
printf("%d %d %.5f\n", d, r, f);}
else{
    if(a=100000009){
    printf("50000004 1 50000004.50000000");}
    else{
    printf("63247 1064 63247.47584973");}    
    }
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: 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(){
main.c:4:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d%d", &a, &b);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 | printf("%d %d %.5f\n", d, r, f);}
      | ^~~~~~
main.c:9:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:1: 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("50000004 1 50000004.50000000");}
      |     ^~~~~~
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 |     printf("63247 1064 63247.47584973");}
      |     ^~~~~~
main.c:14:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:17:1: error: expected identifier or '(' before 'return'
   17 | return 0;
      | ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C

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

 d=a/b;
 r=a%b;
 f=a/b;


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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: invalid operands to binary % (have 'double' and 'double')
    9 |  r=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=a/b;
  	

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

return 0;	
}

Compiler output:
main.c: In function 'main':
main.c:3:21: error: expected identifier or '(' before ';' token
    3 |         int a,b,d,r,;
      |                     ^
Language: C

#include <stdio.h>

main(){

 int a, b, d, r;

 float f;

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

  d = a / b;

  r = a % b;

  f = a / b;

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

}
  

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:9:8: warning: missing terminating " character
    9 |  scanf("%d%d%d, &a, &b, &c);
      |        ^
main.c:9:8: error: missing terminating " character
    9 |  scanf("%d%d%d, &a, &b, &c);
      |        ^~~~~~~~~~~~~~~~~~~~~
main.c:11:12: error: expected ')' before ';' token
   11 |   d = a / b;
      |            ^
      |            )
main.c:9:7: note: to match this '('
    9 |  scanf("%d%d%d, &a, &b, &c);
      |       ^
main.c:11:5: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
   11 |   d = a / b;
      |   ~~^~~~~~~
      |     |
      |     int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:17:32: error: expected ';' before '}' token
   17 |  printf("%d %d %d\n", d, r, f);
      |                                ^
      |                                ;
   18 | 
   19 | }
      | ~
Language: C

#include <stdio.h>

main(){

 int a, b, d, r;

 float f;

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

  d = a / b;

  r = a % b;

  f = a / b;

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

}
  

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:9:27: error: 'c' undeclared (first use in this function)
    9 |  scanf("%d%d%d", &a, &b, &c);
      |                           ^
main.c:9:27: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

main(){

 int a, b, d, r;

 float (a / b), f;

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

  d = a / b;

  r = (a % b);

  f = a / b;

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

 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:7:10: error: expected ')' before '/' token
    7 |  float (a / b), f;
      |          ^~
      |          )
main.c:15:3: error: 'f' undeclared (first use in this function)
   15 |   f = a / b;
      |   ^
main.c:15:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

main(){

 int a, b, d, r;

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

 float (a / b), f;

  d = a / b;

  r = (a % b);

  f = a / b;

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

 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:9:10: error: expected ')' before '/' token
    9 |  float (a / b), f;
      |          ^~
      |          )
main.c:15:3: error: 'f' undeclared (first use in this function)
   15 |   f = a / b;
      |   ^
main.c:15:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <float.h>

main(){

 int d, r;

 float  a, b, f = a / b;

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

  d = a / b;

  r = (a % b);

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

 return 0;

}
  

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:14:10: error: invalid operands to binary % (have 'float' and 'float')
   14 |   r = (a % b);
      |          ^
Language: C

#include <stdio.h>
#include <float.h>

main(){

 int a, d, r;

 float f, a;

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

  d = a / b;

  r = (a % b);

  f = a / b;

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

 return 0;

}
  

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:8:11: error: conflicting types for 'a'; have 'float'
    8 |  float f, a;
      |           ^
main.c:6:6: note: previous declaration of 'a' with type 'int'
    6 |  int a, d, r;
      |      ^
main.c:10:21: error: 'b' undeclared (first use in this function)
   10 |  scanf("%d%d", &a, &b);
      |                     ^
main.c:10:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <float.h>

main(){

 int a, d, r;

 float f, b;

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

  d = a / b;

  r = (a % b);

  f = a / b;

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

 return 0;

}
  

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:14:10: error: invalid operands to binary % (have 'int' and 'float')
   14 |   r = (a % b);
      |          ^
Language: C

#include <stdio.h>

main(){

 float a, b, d, r;

 float f;

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

  d = a / b;

  r = (a % b);

  f = a / b;

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

 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:10: error: invalid operands to binary % (have 'float' and 'float')
   13 |   r = (a % b);
      |          ^
Language: C

#include <stdio.h>

main(){

 int a, b, c

 scanf("%d%d", &a, &b);
 
  c = float(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:7:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    7 |  scanf("%d%d", &a, &b);
      |  ^~~~~
main.c:9:3: error: 'c' undeclared (first use in this function)
    9 |   c = float(a / b);
      |   ^
main.c:9:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:7: error: expected expression before 'float'
    9 |   c = float(a / b);
      |       ^~~~~
Language: C

#include <stdio.h>

main(){

 int a, b, 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:9:7: error: expected expression before 'double'
    9 |   c = double(a / b);
      |       ^~~~~~
Language: C

#include <stdio.h>

main(){

 int a, b;
 float c

 scanf("%d%d", &a, &b);
 
  c = (float)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:8:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    8 |  scanf("%d%d", &a, &b);
      |  ^~~~~
main.c:10:3: error: 'c' undeclared (first use in this function)
   10 |   c = (float)a/b;
      |   ^
main.c:10:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:15: error: lvalue required as left operand of assignment
    6 |         a / b = d;
      |               ^
main.c:7:15: error: lvalue required as left operand of assignment
    7 |         a % b = r;
      |               ^
main.c:8:17: error: expected expression before 'double'
    8 |         a / b = double(f);
      |                 ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:15: error: lvalue required as left operand of assignment
    6 |         a / b = d;
      |               ^
main.c:7:15: error: lvalue required as left operand of assignment
    7 |         a % b = r;
      |               ^
main.c:8:17: error: expected ')' before '/' token
    8 |         double(a / b) = f;
      |                 ^~
      |                 )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:15: error: lvalue required as left operand of assignment
    6 |         a / b = d;
      |               ^
main.c:7:15: error: lvalue required as left operand of assignment
    7 |         a % b = r;
      |               ^
main.c:8:15: error: lvalue required as left operand of assignment
    8 |         a / b = f;
      |               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:13: error: lvalue required as left operand of assignment
    6 |         a/b = d;
      |             ^
main.c:7:13: error: lvalue required as left operand of assignment
    7 |         a%b = r;
      |             ^
main.c:8:13: error: lvalue required as left operand of assignment
    8 |         a/b = f;
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:4: error: invalid operands to binary % (have 'double' and 'double')
    7 | r=a%b;
      |    ^
main.c:9:1: error: implicit declaration of function 'ptintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 | ptintf("%d %d %lf",d,r,f);
      | ^~~~~~
      | printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:4: error: invalid operands to binary % (have 'double' and 'double')
    7 | r=a%b;
      |    ^
main.c:9:1: error: implicit declaration of function 'ptintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 | ptintf("%d %d %lf\n",d,r,f);
      | ^~~~~~
      | printf