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

#include <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: In function 'main':
main.c:8:41: error: invalid operands to binary % (have 'double' and 'int')
    8 | printf("%d %d %f",a / b,a % b,(double)a % b);
      |                               ~~~~~~~~~ ^
      |                               |
      |                               double
Language: C

#include <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: In function 'main':
main.c:8:41: error: invalid operands to binary % (have 'double' and 'int')
    8 | printf("%d %d %f",a / b,a % b,(double)a % b);
      |                               ~~~~~~~~~ ^
      |                               |
      |                               double
Language: C

#include <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: In function 'main':
main.c:8:41: error: invalid operands to binary % (have 'double' and 'int')
    8 | printf("%d %d %f",a / b,a % b,(double)a % b);
      |                               ~~~~~~~~~ ^
      |                               |
      |                               double
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:15:13: error: lvalue required as left operand of assignment
   15 |         -1*f=a/b;
      |             ^
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:15:13: error: lvalue required as left operand of assignment
   15 |         -1*f=a/b;
      |             ^
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:15:13: error: lvalue required as left operand of assignment
   15 |         -1*f=a/b;
      |             ^
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:15:13: error: lvalue required as left operand of assignment
   15 |         -1*f=a/b;
      |             ^
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:15:13: error: lvalue required as left operand of assignment
   15 |         -1*f=a/b;
      |             ^
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:16:13: error: lvalue required as left operand of assignment
   16 |         -1*f=a/b;
      |             ^
Language: C

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

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:8: error: redeclaration of 'c' with no linkage
   11 | double c = a / b;
      |        ^
main.c:5:8: note: previous declaration of 'c' with type 'double'
    5 | double c;
      |        ^
Language: C

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

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:11: error: lvalue required as left operand of assignment
   11 | (double)c = a / b;
      |           ^
Language: C

/*********************************
*include
*********************************/
#include <stdio.h>

/*********************************
*define
*********************************/
int input_ary[ 10000 ];

/*********************************
*function
*********************************/
int main( void )
{
	int num1;
	int num2;

	scanf( "%d %d". &num1, &num2 );
	
	printf( "%d %d %.5f", num1 / num2, num1 % num2, num1 / num2  );
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:25: error: expected identifier before '&' token
   19 |         scanf( "%d %d". &num1, &num2 );
      |                         ^
Language: C

/*********************************
*include
*********************************/
#include <stdio.h>

/*********************************
*define
*********************************/
int input_ary[ 10000 ];

/*********************************
*function
*********************************/
int main( void )
{
	float num1;
	float num2;

	scanf( "%f %f", &num1, &num2 );

	float answer1 = num1 / num2;
	float answer2 = num1 % num2;
	float answer3 = num1 / num2;

	printf( "%.0f %.0f %.5f\n", answer1, answer2, answer3 );

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:30: error: invalid operands to binary % (have 'float' and 'float')
   22 |         float answer2 = num1 % num2;
      |                              ^
Language: C

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

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

int main(int argc, const char * argv[]){
    int a,b,d,r;
    flort f;
    scanf("%d %d",&a,&b);
    d=a/b; r=a%b; f=(a/b)*1.0;
    printf("%d %d %f\n",d,r,f);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: unknown type name 'flort'; did you mean 'float'?
    3 |     flort f;
      |     ^~~~~
      |     float
main.c:4:5: 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(int argc, const char * argv[]){
main.c:4:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |     scanf("%d %d",&a,&b);
      |     ^~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("%d %d %f\n",d,r,f);
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:5:34: error: invalid operands to binary % (have 'float' and 'float')
    5 |         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\n",d,r,f);
    return 0;
}     

Compiler output:
main.c: In function 'main':
main.c:8:10: error: expected ';' before 'f'
    8 |     r=a%b
      |          ^
      |          ;
    9 |     f=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\n",d,r,f);
    return 0;
}     

Compiler output:
main.c: In function 'main':
main.c:8:10: error: expected ';' before 'f'
    8 |     r=a%b
      |          ^
      |          ;
    9 |     f=a/b;
      |     ~
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:59: error: expected ';' before ')' token
    5 |         printf("%d %d %.5lf\n", a / b, a%b, (double)a) / b);
      |                                                           ^
      |                                                           ;
main.c:5:59: error: expected statement before ')' token
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:36: error: invalid operands to binary % (have 'int' and 'double')
    5 | printf("%d %d %f\n",(int)a/b,(int)a%b,a/b);
      |                              ~~~~~~^
      |                              |
      |                              int
Language: C

#include<stdio.h>
int main(void){
double a,b;
scanf("%d %d",&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:36: error: invalid operands to binary % (have 'int' and 'double')
    5 | printf("%d %d %f\n",(int)a/b,(int)a%b,a/b);
      |                              ~~~~~~^
      |                              |
      |                              int
Language: C

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

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

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

e=a/b;
r=a%b;
f=(float)a/b;

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

return 0;
}

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

#include<stdio.h>

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:30: error: 'dpuble' undeclared (first use in this function); did you mean 'double'?
    7 | printf("%d %d %f\n",a/b,a%b,(dpuble)a/b);
      |                              ^~~~~~
      |                              double
main.c:7:30: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:37: error: expected ')' before 'a'
    7 | printf("%d %d %f\n",a/b,a%b,(dpuble)a/b);
      |       ~                             ^
      |                                     )
Language: C

#include<stdio.h>

int main(){

double a,b;

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

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

return 0;
}

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

#include<stdio.h>

int main(){

double a,b;

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

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

return 0;
}

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

#include<stdio.h>

int main(){

double a,b;

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:26: error: invalid operands to binary % (have 'double' and 'double')
   10 | printf("%d %d %d\n",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\n", a / b, a % b, (double)a / (double)b)
	
	return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected ')' before 'd'
    9 | printf("%d %d %f\n"d,r,f);
      |       ~            ^
      |                    )
Language: C

#include<stdio.h>

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

	scanf_s("%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:9:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |         scanf_s("%d %d", &a, &b);
      |         ^~~~~~~
      |         scanf
Language: C

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclede; did you mean #include?
    1 | #inclede<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:5:1: 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 | #inclede<stdio.h>
main.c:5:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 | printf("%d %d %.8lf\n",d,r,1.0*a/b);
      | ^~~~~~
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

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

Compiler output:
main.c: In function 'main':
main.c:11:22: error: expected ';' before numeric constant
   11 |                 f=a/b.0;
      |                      ^~
      |                      ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:22: error: expected ';' before numeric constant
   11 |                 f=a/b.0;
      |                      ^~
      |                      ;
Language: C

#include <stdio.h>

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

	svanf("%d %d",a ,b);
	d = a / b;
	r = a % b;
	f = double(a) / b;

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

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'svanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         svanf("%d %d",a ,b);
      |         ^~~~~
      |         scanf
main.c:10:13: error: expected expression before 'double'
   10 |         f = double(a) / b;
      |             ^~~~~~
Language: C

#include <stdio.h>

int main(void) {
	int a, b, d, r;
	float f;

	svanf("%d %d",a ,b);
	d = a / b;
	r = a % b;
	f = float(a) / b;

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

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'svanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         svanf("%d %d",a ,b);
      |         ^~~~~
      |         scanf
main.c:10:13: error: expected expression before 'float'
   10 |         f = float(a) / b;
      |             ^~~~~
Language: C

#include <stdio.h>

int main(void) {
	int a, b, d, r;
	float f;

	svanf("%d %d",a ,b);
	d = a / b;
	r = a % b;
	f = (float)a / b;

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

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

#include <stdio.h>

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

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

int main (void)

{

int a,b,d,r,f;


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

d=a/b;


r=a%b;


(double)f=a/b


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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:8:1: 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:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:16:10: error: lvalue required as left operand of assignment
   16 | (double)f=a/b
      |          ^
main.c:16:14: error: expected ';' before 'printf'
   16 | (double)f=a/b
      |              ^
      |              ;
......
   19 | printf("%d %d %d\n",d,r,f);
      | ~~~~~~
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=a(double)/b;

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

return 0;

};

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:15:5: error: expected expression before 'double'
   15 | f=a(double)/b;
      |     ^~~~~~
main.c:15:3: error: called object 'a' is not a function or function pointer
   15 | f=a(double)/b;
      |   ^
main.c:5:5: note: declared here
    5 | int a,b,d,r;
      |     ^
Language: C

int main(void)


{


    int a,b,d,r,f;


    scanf("%d",&a);


    scanf("%d",&b);


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





return 0;


}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 |     scanf("%d",&a);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:10:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   10 |     scanf("%d",&a);
      |     ^~~~~
main.c:10:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:16:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   16 |     printf("%d %d %lf\n"a / b,a % b, a / b);
      |     ^~~~~~
main.c:16:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:16:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:25: error: expected ')' before 'a'
   16 |     printf("%d %d %lf\n"a / b,a % b, a / b);
      |           ~             ^
      |                         )
Language: C

#include <stdio.h>

int main (void)

{

int a,b,d,r,f;


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

d=a/b;


r=a%b;


(double)f=a/b;


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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:18:10: error: lvalue required as left operand of assignment
   18 | (double)f=a/b;
      |          ^
Language: C

#include <stdio.h>

int main (void)

{

int a,b,d,r,f;


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

d=a/b;


r=a%b;


(double)f=a/b;


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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:18:10: error: lvalue required as left operand of assignment
   18 | (double)f=a/b;
      |          ^
Language: C

#include<stdio.h>

int main(void)


{


int a,b,d,r,f;


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


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


return o;


}

Compiler output:
main.c: In function 'main':
main.c:18:8: error: 'o' undeclared (first use in this function)
   18 | return o;
      |        ^
main.c:18:8: 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=a%b;


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


return o;


}

Compiler output:
main.c: In function 'main':
main.c:27:22: error: expected expression before ')' token
   27 | printf("%d %d %lf\n",);
      |                      ^
main.c:30:8: error: 'o' undeclared (first use in this function)
   30 | return o;
      |        ^
main.c:30:8: 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=a%b;


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


return o;


}

Compiler output:
main.c: In function 'main':
main.c:30:8: error: 'o' undeclared (first use in this function)
   30 | return o;
      |        ^
main.c:30:8: 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;
d = a/b;
r = a%b;
f = a/b
 
  scanf("%d %d",&a, &b);

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

Compiler output:
main.c: In function 'main':
main.c:9:8: error: expected ';' before 'scanf'
    9 | f = a/b
      |        ^
      |        ;
   10 | 
   11 |   scanf("%d %d",&a, &b);
      |   ~~~~~
Language: C

#include <stdio.h>

int main(void){


int a,b;


scanf("%d",&a);


scanf("%d",&b);

doublea/b;

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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:14:1: error: 'doublea' undeclared (first use in this function); did you mean 'double'?
   14 | doublea/b;
      | ^~~~~~~
      | double
main.c:14: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,b,d,r;


double 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: In function 'main':
main.c:15:18: error: invalid operands to binary & (have 'int *' and 'int')
   15 | 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=a/b;


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


return 0;


}

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

#include<stdio.h>

int main(void)


{


int a,b,d,r,f;


scanf("%d",&a);


scanf("%d",&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:21:9: error: expected expression before '%' token
   21 | r = a / %b;
      |         ^
main.c:24:5: error: expected expression before '%' token
   24 | f = %a / %b;
      |     ^
Language: C

#include <stdio.h>

int main(void){


int a,b;
double f;

scanf("%d",&a);


scanf("%d",&b);

f=doublea/b;

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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:14:3: error: 'doublea' undeclared (first use in this function); did you mean 'double'?
   14 | f=doublea/b;
      |   ^~~~~~~
      |   double
main.c:14: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 f;

scanf("%d",&a);


scanf("%d",&b);

f=double a/b;

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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:14:3: error: expected expression before 'double'
   14 | f=double a/b;
      |   ^~~~~~
Language: C

#include<stdio.h>

int main(void)


{


int a,b,d,r,f;


scanf("%d",&a);


scanf("%d",&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:21:5: error: expected expression before '%' token
   21 | r = %(a / b);
      |     ^
main.c:24:5: error: expected expression before '%' token
   24 | f = %a / b;
      |     ^
Language: C

#include<stdio.h>

int main(void)

{

 int a,b,d,r;


 double f;


 scanf("%d",&a);


 scanf("%d",&b);


 a/b=d;


 a/b-d=r;


 a/b=f;


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


 return 0;


}


 

Compiler output:
main.c: In function 'main':
main.c:19:5: error: lvalue required as left operand of assignment
   19 |  a/b=d;
      |     ^
main.c:22:7: error: lvalue required as left operand of assignment
   22 |  a/b-d=r;
      |       ^
main.c:25:5: error: lvalue required as left operand of assignment
   25 |  a/b=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=(double)a/b;


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


return o;


}

Compiler output:
main.c: In function 'main':
main.c:30:8: error: 'o' undeclared (first use in this function)
   30 | return o;
      |        ^
main.c:30:8: 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;

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

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

         return 0;

}

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

#include<stdio.h>

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

}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: invalid operands to binary & (have 'char *' and 'int')
    7 |     scanf("%d %d"&a,&b);
      |           ~~~~~~~^
      |           |
      |           char *
main.c:9:23: error: expected ')' before 'a'
    9 |     printf("%d %d %if"a/b,a%b,a/b);
      |           ~           ^
      |                       )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:30: error: expected expression before 'double'
   10 |     printf("%d %d %lf\n",d,r,double 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 %5lf\n",d,r,f);

         return 0;

}

Compiler output:
main.c: In function 'main':
main.c:14:13: error: expected ';' before 'r'
   14 |        d=a/b
      |             ^
      |             ;
......
   17 |        r=a%b
      |        ~
Language: C

#include <stdio.h>
int main(void)
{
    int a,b,d,r,f;
    scanf("%d",&a);
    scanf("%d",&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:9:7: error: expected expression before 'double'
    9 |     f=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=(double)a/b;


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


return o;


}

Compiler output:
main.c: In function 'main':
main.c:30:8: error: 'o' undeclared (first use in this function)
   30 | return o;
      |        ^
main.c:30: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,c,d;
  double e;
  scanf("%d%d",&a,&b);
  c=a/d;
  d= a%d;
  f=(double)a%d;
  printf("%d %d %f\n",c,d,f);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: 'f' undeclared (first use in this function)
    9 |   f=(double)a%d;
      |   ^
main.c:9:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:14: error: invalid operands to binary % (have 'double' and 'int')
    9 |   f=(double)a%d;
      |     ~~~~~~~~~^
      |     |
      |     double
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:21:8: error: 'o' undeclared (first use in this function)
   21 | return o;
      |        ^
main.c:21:8: 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 o;
}

Compiler output:
main.c: In function 'main':
main.c:11:20: error: invalid operands to binary % (have 'double' and 'int')
   11 |         f=(double)a%b;
      |           ~~~~~~~~~^
      |           |
      |           double
main.c:13:16: error: 'o' undeclared (first use in this function)
   13 |         return o;
      |                ^
main.c:13:16: 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 o;
}

Compiler output:
main.c: In function 'main':
main.c:13:16: error: 'o' undeclared (first use in this function)
   13 |         return o;
      |                ^
main.c:13:16: 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.5\n",d,r,f);  

return o;

???

Compiler output:
main.c: In function 'main':
main.c:21:8: error: 'o' undeclared (first use in this function)
   21 | return o;
      |        ^
main.c:21:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:1: error: expected expression before '?' token
   23 | ???
      | ^
main.c:23:3: error: expected declaration or statement at end of input
   23 | ???
      |   ^
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:13:6: error: expected ';' before 'r'
   13 | d=a/b
      |      ^
      |      ;
   14 | 
   15 | 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=(double)a/b

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:6: error: expected ';' before 'r'
   13 | d=a/b
      |      ^
      |      ;
   14 | 
   15 | 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=(double)a/b

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:6: error: expected ';' before 'r'
   13 | d=a/b
      |      ^
      |      ;
   14 | 
   15 | 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=(double)a/b;

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

return 0;

}

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

#include<stdio.h>

int main(void)

{

int a,b,d,f;

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:9:8: error: conflicting types for 'f'; have 'double'
    9 | double f;
      |        ^
main.c:7:11: note: previous declaration of 'f' with type 'int'
    7 | int a,b,d,f;
      |           ^
main.c:15:1: error: 'r' undeclared (first use in this function)
   15 | r=a%b;
      | ^
main.c:15: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,b,d,r;

double 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: In function 'main':
main.c:17:21: error: expected ')' before 'r'
   17 | printf("%d %d %lf",d r f);
      |       ~             ^~
      |                     )
Language: C

#include <stdio.h>

int main(void){

int a,b,d,r;

double f;

scanf("%d",&a);

scanf("%d",&b);

d=a/b;

r=a%b;

f=a/b;

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:19:21: error: expected ')' before 'r'
   19 | printf("%d %d %lf",d r f);
      |       ~             ^~
      |                     )
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=a/b;
  
printf("%d %d %d\n",d,r,f);


 return 0;

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

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

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

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

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

  return 0;
}

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

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

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

Compiler output:
main.c: In function 'main':
main.c:10:1: error: 'doublef' undeclared (first use in this function); did you mean 'double'?
   10 | doublef=a/b ;
      | ^~~~~~~
      | double
main.c:10:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:18: error: expected ')' before 'd'
   11 | printf("%d %d %d"d,r,f);
      |       ~          ^
      |                  )
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:10:10: error: lvalue required as left operand of assignment
   10 | (double)f=a/b ;
      |          ^
Language: C

#include<stdio.h>

int main (void) {


int a,b,d,r ;


double f ;


scanf("%d",&a) ;


scanf("%d",&b) ;


d=a/b ;


r=a/b ;


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


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


return 0 ;


}

Compiler output:
main.c: In function 'main':
main.c:27:8: warning: missing terminating " character
   27 | printf("%d,%d,%d\n,d,r,f);
      |        ^
main.c:27:8: error: missing terminating " character
   27 | printf("%d,%d,%d\n,d,r,f);
      |        ^~~~~~~~~~~~~~~~~~~
main.c:30:1: error: expected expression before 'return'
   30 | return 0 ;
      | ^~~~~~
main.c:30:11: error: expected ';' before '}' token
   30 | return 0 ;
      |           ^
      |           ;
......
   33 | }
      | ~
Language: C

#include<stdio.h>

int main (void) {


int a,b,d,r ;


double f ;


scanf("%d",&a) ;


scanf("%d",&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:27:21: error: expected ')' before 'd'
   27 | printf("%d,%d,%lf\n"d,r,f);
      |       ~             ^
      |                     )
Language: C

#include<stdio.h>

int main (void) {

int a,b,d,r ;

double f ;

scanf("%d",&a) ;

scanf("%d",&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:19:21: error: expected ')' before 'd'
   19 | printf("%d %d %lf\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=(double)a/(double)b;

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:18: error: invalid operands to binary & (have 'int *' and 'int')
    9 | 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/(double)b;

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:18: error: invalid operands to binary & (have 'int *' and 'int')
    9 | 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/(double)b;

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    5 | int a b d r;
      |       ^
main.c:5:7: error: unknown type name 'b'
main.c:5:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'r'
    5 | int a b d r;
      |           ^
main.c:9:16: error: 'a' undeclared (first use in this function)
    9 | scanf("%d %d",&a &b);
      |                ^
main.c:9:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:19: error: 'b' undeclared (first use in this function)
    9 | scanf("%d %d",&a &b);
      |                   ^
main.c:11:1: error: 'd' undeclared (first use in this function)
   11 | d=a/b;
      | ^
main.c:13:1: error: 'r' undeclared (first use in this function)
   13 | r=a%b;
      | ^
Language: C

#include<stdio.h>

int main (void) {

int a,b,d,r ;

double f ;

scanf("%d",&a) ;

scanf("%d",&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:19:21: error: expected ')' before 'd'
   19 | printf("%d %d %lf\n"d,r,f);
      |       ~             ^
      |                     )
Language: C

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

int a, b, d, r, f, ;
scanf("%d",&a);
scanf("%d",&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:5:20: error: expected identifier or '(' before ';' token
    5 | int a, b, d, r, f, ;
      |                    ^
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:13:31: error: expected expression before ')' token
   13 | printf("%d %d %lfd\n",d, r, f,);
      |                               ^
Language: C

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

int a, b;

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

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

Compiler output:
main.c: In function 'main':
main.c:10:51: error: expected expression before ')' token
   10 | printf("%d %d %lfd\n",a/b,a%b,(double)a/(double)b,);
      |                                                   ^
Language: C

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

int a, b;

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

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

Compiler output:
main.c: In function 'main':
main.c:10:50: error: expected expression before ')' token
   10 | printf("%d %d %fd\n",a/b,a%b,(double)a/(double)b,);
      |                                                  ^
Language: C

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

int a, b;

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

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

Compiler output:
main.c: In function 'main':
main.c:10:52: error: expected expression before ')' token
   10 | printf("%d %d %fd\n",a/b, a%b, (double)a/(double)b,);
      |                                                    ^
Language: C

#include <stdio.h>

int main(void)


{


int a,b;


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


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


return 0;


}

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

#include <stdio.h>

int main(void)


{


int a,b;


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


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


return 0;


}

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
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 = 1.0*a/b;
  printf("%d %d %.5f\n",d,r,f);
  return 0;
}

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include=<stdio.h>
      |         ^
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   scanf("%d%d",&a,&b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include=<stdio.h>
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%d%d",&a,&b);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |   printf("%d %d %.5f\n",d,r,f);
      |   ^~~~~~
main.c:10:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

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

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

  printf("b");
  scanf("%d",&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:15:5: error: expected expression before 'double'
   15 |   f=double(a/b);
      |     ^~~~~~
main.c:17:25: error: expected ')' before 'r'
   17 |   printf("%d %d %lf\n",d r f);
      |         ~               ^~
      |                         )
Language: C

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

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

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

  printf("b");
  scanf("%d",&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:16:5: error: expected expression before 'double'
   16 |   f=double(a/b);
      |     ^~~~~~
main.c:18:25: error: expected ')' before 'r'
   18 |   printf("%d %d %lf\n",d r f);
      |         ~               ^~
      |                         )
Language: C

#include <stdio.h>
int main(void)
{
  int a, b, d, r;
  double f;

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

  printf("b");
  scanf("%d",&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:15:5: error: expected expression before 'double'
   15 |   f=double(a/b);
      |     ^~~~~~
Language: C

#include<stdio.h>


int main(void)


{


double r, double pai=3.14159265359


scanf("%lf",&r);


printf("%lf %lf\n",r*r*pai,2*r*pai);


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:10:11: error: expected identifier or '(' before 'double'
   10 | double r, double pai=3.14159265359
      |           ^~~~~~
main.c:16:24: error: 'pai' undeclared (first use in this function)
   16 | printf("%lf %lf\n",r*r*pai,2*r*pai);
      |                        ^~~
main.c:16:24: 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=0,r=0;





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:27:1: error: 'f' undeclared (first use in this function)
   27 | f=(double)a/b;
      | ^
main.c:27:1: note: each undeclared identifier is reported only once for each function it appears in