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

#include<iostream>
using namespace std;
int main(){
int a,b,d,r;
double f;
cin>>a>>b;
d=a/b,r=a%b,f=a/b;
printf(d," ",r," ",f\n);
return 0;
}


Compiler output:
a.cc:8:21: error: stray '\' in program
    8 | printf(d," ",r," ",f\n);
      |                     ^
a.cc: In function 'int main()':
a.cc:8:21: error: expected ')' before 'n'
    8 | printf(d," ",r," ",f\n);
      |       ~             ^~
      |                     )
a.cc:8:8: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    8 | printf(d," ",r," ",f\n);
      |        ^
      |        |
      |        int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'cin'
    5 | cin>>a>>b;
      | ^~~
a.cc:6:23: error: 'b' was not declared in this scope
    6 | printf("%d %d %d\n",a/b,a%b,(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*d);
    f = (double)a / (double)b;
    printf("d = %d\n", d);
    printf("r = %d\n", r);
    printf("f = %f\n", f);
    
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:25: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    5 |     scanf("%d" "%d", &a &b);
      |                      ~~ ^~
      |                      |   |
      |                      |   int
      |                      int*
Language: C++

#include<bits/stdc++.h>
int main(){
    double a, b, c;
    scanf("%lf%lf", &a,&b);
    printf("%d %d %f\n", a/b, a%b, a/b);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:32: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    5 |     printf("%d %d %f\n", a/b, a%b, a/b);
      |                               ~^~
      |                               | |
      |                               | double
      |                               double
Language: C++


#include<cstdio>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected ')' before ';' token
   10 |     printf("%d %d %.5f\n",d,r,f;
      |           ~                    ^
      |                                )
Language: C++


#include<cstdio>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:33: error: expected ';' before 'S'
   10 |     printf("%d %d %.5f\n",d,r,f)S;
      |                                 ^
      |                                 ;
Language: C++

#include<cstdio>

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



Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: expected ')' before ';' token
    5 |   scanf("%d%d",&a,&b;
      |        ~            ^
      |                     )
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b;
double a1,b1;
cin>>a>>b;
a1=a*;
b1=b*;
cout<<a/b<<" "<<a%b<<" "<<a1/b1<<endl;
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected primary-expression before ';' token
    7 | a1=a*;
      |      ^
a.cc:8:6: error: expected primary-expression before ';' token
    8 | b1=b*;
      |      ^
Language: C++

#include "stdafx.h"

#include <iostream>
using namespace std;

int main()
{
	int a, b, f1, f2;
	double f3;
	cin >> a >> b;
	f1 = a / b;
	f2 = a%b;
	f3 = (double)a / b;
	cout << f1 << "," << f2 << ",";
	printf("%.5lf\n", f3);
	return 0;
}



Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std

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

    cin >> a >> b;

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

    cout << d << " " << r << " " << f << endl;


    return 0;

}


Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
int a,b,r,d;
double x,y,r;

cin>>a>>b;
d=a/b;
r=a%b;
x=a;
y=b;
f=x/y;
cout<<d<<" "<<r<<" "<<f<<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: conflicting declaration 'double r'
    6 | double x,y,r;
      |            ^
a.cc:5:9: note: previous declaration as 'int r'
    5 | int a,b,r,d;
      |         ^
a.cc:13:1: error: 'f' was not declared in this scope
   13 | f=x/y;
      | ^
Language: C++

import java.util.Scanner;

class Main{
public static void main(String[] args){
 Scanner sc=new Scanner(System.in);
int a =sc.nextInt();
int b =sc.nextInt();

int d;
d=a/b;

int r;
r=a%b;

double af,bf,cf;
double af=a;
double bf=b;
double cf=a/b;

System.out.println(d+" "+r+" "+cf);

}
}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:7: error: expected ':' before 'static'
    4 | public static void main(String[] args){
      |       ^~~~~~~
      |       :
a.cc:4:25: error: 'String' has not been declared
    4 | public static void main(String[] args){
      |                         ^~~~~~
a.cc:4:34: error: expected ',' or '...' before 'args'
    4 | public static void main(String[] args){
      |                                  ^~~~
a.cc:23:2: error: expected ';' after class definition
   23 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:2: error: 'Scanner' was not declared in this scope
    5 |  Scanner sc=new Scanner(System.in);
      |  ^~~~~~~
a.cc:6:8: error: 'sc' was not declared in this scope
    6 | int a =sc.nextInt();
      |        ^~
a.cc:16:8: error: redeclaration of 'double af'
   16 | double af=a;
      |        ^~
a.cc:15:8: note: 'double af' previously declared here
   15 | double af,bf,cf;
      |        ^~
a.cc:17:8: error: redeclaration of 'double bf'
   17 | double bf=b;
      |        ^~
a.cc:15:11: note: 'double bf' previously declared here
   15 | double af,bf,cf;
      |           ^~
a.cc:18:8: error: redeclaration of 'double cf'
   18 | double cf=a/b;
      |        ^~
a.cc:15:14: note: 'double cf' previously declared here
   15 | double af,bf,cf;
      |              ^~
a.cc:20:1: error: 'System' was not declared in this scope
   20 | System.out.println(d+" "+r+" "+cf);
      | ^~~~~~
a.cc:20:27: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   20 | System.out.println(d+" "+r+" "+cf);
      |                    ~~~~~~~^~~~
      |                         |  |
      |                         |  const char [2]
      |                         const char*
Language: C++

import java.util.Scanner;

class Main{
public static void main(String[] args){
 Scanner sc=new Scanner(System.in);
int a =sc.nextInt();
int b =sc.nextInt();

int d;
d=a/b;

int r;
r=a%b;

double aq,bq,cq;
double aq=a;
double bq=b;
double cq=a/b;

System.out.println(d+" "+r+" "+cq);

}
}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:7: error: expected ':' before 'static'
    4 | public static void main(String[] args){
      |       ^~~~~~~
      |       :
a.cc:4:25: error: 'String' has not been declared
    4 | public static void main(String[] args){
      |                         ^~~~~~
a.cc:4:34: error: expected ',' or '...' before 'args'
    4 | public static void main(String[] args){
      |                                  ^~~~
a.cc:23:2: error: expected ';' after class definition
   23 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:2: error: 'Scanner' was not declared in this scope
    5 |  Scanner sc=new Scanner(System.in);
      |  ^~~~~~~
a.cc:6:8: error: 'sc' was not declared in this scope
    6 | int a =sc.nextInt();
      |        ^~
a.cc:16:8: error: redeclaration of 'double aq'
   16 | double aq=a;
      |        ^~
a.cc:15:8: note: 'double aq' previously declared here
   15 | double aq,bq,cq;
      |        ^~
a.cc:17:8: error: redeclaration of 'double bq'
   17 | double bq=b;
      |        ^~
a.cc:15:11: note: 'double bq' previously declared here
   15 | double aq,bq,cq;
      |           ^~
a.cc:18:8: error: redeclaration of 'double cq'
   18 | double cq=a/b;
      |        ^~
a.cc:15:14: note: 'double cq' previously declared here
   15 | double aq,bq,cq;
      |              ^~
a.cc:20:1: error: 'System' was not declared in this scope
   20 | System.out.println(d+" "+r+" "+cq);
      | ^~~~~~
a.cc:20:27: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   20 | System.out.println(d+" "+r+" "+cq);
      |                    ~~~~~~~^~~~
      |                         |  |
      |                         |  const char [2]
      |                         const char*
Language: C++

import java.util.Scanner;

class Main{
public static void main(String[] args){
 Scanner sc=new Scanner(System.in);
int a =sc.nextInt();
int b =sc.nextInt();

int d;
d=a/b;

int r;
r=a%b;

double k,l,m;
k=a;
l=b;
m=a/b;

System.out.println(d+" "+r+" "+cq);

}
}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:7: error: expected ':' before 'static'
    4 | public static void main(String[] args){
      |       ^~~~~~~
      |       :
a.cc:4:25: error: 'String' has not been declared
    4 | public static void main(String[] args){
      |                         ^~~~~~
a.cc:4:34: error: expected ',' or '...' before 'args'
    4 | public static void main(String[] args){
      |                                  ^~~~
a.cc:23:2: error: expected ';' after class definition
   23 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:2: error: 'Scanner' was not declared in this scope
    5 |  Scanner sc=new Scanner(System.in);
      |  ^~~~~~~
a.cc:6:8: error: 'sc' was not declared in this scope
    6 | int a =sc.nextInt();
      |        ^~
a.cc:20:1: error: 'System' was not declared in this scope
   20 | System.out.println(d+" "+r+" "+cq);
      | ^~~~~~
a.cc:20:27: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   20 | System.out.println(d+" "+r+" "+cq);
      |                    ~~~~~~~^~~~
      |                         |  |
      |                         |  const char [2]
      |                         const char*
a.cc:20:32: error: 'cq' was not declared in this scope
   20 | System.out.println(d+" "+r+" "+cq);
      |                                ^~
Language: C++

import java.util.Scanner;

class Main{
public static void main(String[] args){
 Scanner sc=new Scanner(System.in);
int a =sc.nextInt();
int b =sc.nextInt();

int d;
d=a/b;

int r;
r=a%b;

double k,l,m;
k=a;
l=b;
m=a/b;

System.out.println(d+" "+r+" "+m);

}
}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:7: error: expected ':' before 'static'
    4 | public static void main(String[] args){
      |       ^~~~~~~
      |       :
a.cc:4:25: error: 'String' has not been declared
    4 | public static void main(String[] args){
      |                         ^~~~~~
a.cc:4:34: error: expected ',' or '...' before 'args'
    4 | public static void main(String[] args){
      |                                  ^~~~
a.cc:23:2: error: expected ';' after class definition
   23 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:2: error: 'Scanner' was not declared in this scope
    5 |  Scanner sc=new Scanner(System.in);
      |  ^~~~~~~
a.cc:6:8: error: 'sc' was not declared in this scope
    6 | int a =sc.nextInt();
      |        ^~
a.cc:20:1: error: 'System' was not declared in this scope
   20 | System.out.println(d+" "+r+" "+m);
      | ^~~~~~
a.cc:20:27: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   20 | System.out.println(d+" "+r+" "+m);
      |                    ~~~~~~~^~~~
      |                         |  |
      |                         |  const char [2]
      |                         const char*
Language: C++

#include <bits/stdc++.h>
using namespace std;
  
int main() {
  double a, b, c;
  int A, B, C; 
  cin >> A >> B;
  b = B
  c = C
  A = C;
  a = b / c;
  A /= B;
  C = C - B * A;
   
 
  cout << A << " " << B << " " << C << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected ';' before 'c'
    8 |   b = B
      |        ^
      |        ;
    9 |   c = C
      |   ~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int a=0,b=0,c=0,d=0,e=0;
  double f=0,g=0,h=0;
  cin >> a >> b;
  c = a/b;
  d = a%b;
  f = a/b
  cout << c << ' ' << d << ' ' << f <<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected ';' before 'cout'
   10 |   f = a/b
      |          ^
      |          ;
   11 |   cout << c << ' ' << d << ' ' << f <<endl;
      |   ~~~~
Language: C++

import java.util.*;
public class Main{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int d = a / b;
	int r = a % b;
	float a_f = (float)a;
	float b_f = (float)b;
	float f =  a_f / b_f ;
		if (f > 1000000){
		int x = a / b;
		float r_f = (float)r ;
		float y = r_f / b_f;
		float z = x + y;
		
			if(r_f == 0){System.out.println(d +" "+ r + " " + x);}
			else{ if(y == 0.5 ){System.out.println(d +" "+ r + " " + x + ".5");} else{ System.out.println(d + " " + r + " "+ z);}}}
			else{
			System.out.println(d + " " + r + " " + f);
		}
	}
}


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

#include <iostream>
using namespace std;

int main() {
  int a,b,d,r;
  float f;
  cin >> a >> b;
  d=a/b;
  r=a%b; 
  f=static_cast<float>(a)/static_cast<float>(b);
  cout << d << ' ' << r << ' ';
  printf("%.8lf\n", f) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |   printf("%.8lf\n", f) << endl;
      |   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~
Language: C++

#include <studio.h>
using namespace std;

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

  d=a/b;
  r=a%b; 
  f=static_cast<float>(a)/static_cast<float>(b);
  cout << d << ' ' << r << ' ';
  printf("%.5f\n", f);
}


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

#include <iostream>
using namespace std;

int main() {
  int a,b,d,r;
  double f;
scanf(%d%d,a,b);
  d=a/b;
  r=a%b; 
  f=static_cast<float>(a)/static_cast<float>(b);

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected primary-expression before '%' token
    7 | scanf(%d%d,a,b);
      |       ^
Language: C++

#include <iostream>
#include <iomanip>
using namespace std;
 
int main() {
  int a,b,d,r;
  double f;
  cin >> a >> b;
  d=a/b;
  r=a%b;
  f=(double)a/(double)b;
  cout << fixed;
  cout << setprecision(8) << d << ' '<< r<<' '<<  f << endl;
}


Compiler output:
a.cc:4:1: error: extended character   is not valid in an identifier
    4 |  
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |   int a,b,d,r;
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
a.cc:7:1: error: extended character   is not valid in an identifier
    7 |   double f;
      | ^
a.cc:7:1: error: extended character   is not valid in an identifier
a.cc:8:1: error: extended character   is not valid in an identifier
    8 |   cin >> a >> b;
      | ^
a.cc:8:1: error: extended character   is not valid in an identifier
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |   d=a/b;
      | ^
a.cc:9:1: error: extended character   is not valid in an identifier
a.cc:10:1: error: extended character   is not valid in an identifier
   10 |   r=a%b;
      | ^
a.cc:10:1: error: extended character   is not valid in an identifier
a.cc:11:1: error: extended character   is not valid in an identifier
   11 |   f=(double)a/(double)b;
      | ^
a.cc:11:1: error: extended character   is not valid in an identifier
a.cc:12:1: error: extended character   is not valid in an identifier
   12 |   cout << fixed;
      | ^
a.cc:12:1: error: extended character   is not valid in an identifier
a.cc:13:1: error: extended character   is not valid in an identifier
   13 |   cout << setprecision(8) << d << ' '<< r<<' '<<  f << endl;
      | ^
a.cc:13:1: error: extended character   is not valid in an identifier
a.cc:13:49: error: extended character   is not valid in an identifier
   13 |   cout << setprecision(8) << d << ' '<< r<<' '<<  f << endl;
      |                                                 ^
a.cc:4:1: error: '\U000000a0' does not name a type
    4 |  
      | ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
  int a,b,d,r;
  double f;
  cin >> a >> b;
  d=a/b;
  r=a%b;
  f=(double)a/(double)b;
  cout << fixed;
  cout << setprecision(8) << d << ' '<< r<<' '<<  f << endl;
}


Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:5:1: error: extended character   is not valid in an identifier
    5 |   int a,b,d,r;
      | ^
a.cc:5:1: error: extended character   is not valid in an identifier
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |   double f;
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
a.cc:7:1: error: extended character   is not valid in an identifier
    7 |   cin >> a >> b;
      | ^
a.cc:7:1: error: extended character   is not valid in an identifier
a.cc:8:1: error: extended character   is not valid in an identifier
    8 |   d=a/b;
      | ^
a.cc:8:1: error: extended character   is not valid in an identifier
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |   r=a%b;
      | ^
a.cc:9:1: error: extended character   is not valid in an identifier
a.cc:10:1: error: extended character   is not valid in an identifier
   10 |   f=(double)a/(double)b;
      | ^
a.cc:10:1: error: extended character   is not valid in an identifier
a.cc:11:1: error: extended character   is not valid in an identifier
   11 |   cout << fixed;
      | ^
a.cc:11:1: error: extended character   is not valid in an identifier
a.cc:12:1: error: extended character   is not valid in an identifier
   12 |   cout << setprecision(8) << d << ' '<< r<<' '<<  f << endl;
      | ^
a.cc:12:1: error: extended character   is not valid in an identifier
a.cc:12:49: error: extended character   is not valid in an identifier
   12 |   cout << setprecision(8) << d << ' '<< r<<' '<<  f << endl;
      |                                                 ^
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
Language: C++

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

int main() {
    int a, b;
    cin >> a >> b;
    cout << a / b << endl;
    cout << a % b << endl;
    cout << 1.0 * a / b << endl;
    return 0;
}


Compiler output:
a.cc:1:10: fatal error: bits/stadc++.h: No such file or directory
    1 | #include <bits/stadc++.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;

int main(){
    int a, b, d, r
    double f;
    cin >> a >> b;
    d = a / b;
    r = a / b;
    f = a / b;
    printf("%d %d %d", d, r, f);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'double'
    7 |     double f;
      |     ^~~~~~
a.cc:10:5: error: 'r' was not declared in this scope
   10 |     r = a / b;
      |     ^
a.cc:11:5: error: 'f' was not declared in this scope
   11 |     f = a / b;
      |     ^
Language: C++

import java.util.Scanner;
public class Ex {
public static void main(String[] args){
		
		{
	         int a,b ;
	         
	      
	         Scanner sc = new Scanner(System.in);
	         
	     
		a = sc.nextInt();
        b = sc.nextInt();
	
        int d=a/b;
        int r=a%b;
        double f=(double)a/(double)b;
   
        System.out.println(d+" "+r+" "+f);
     
        sc.close();
	}
	}
}
	



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

#include<iostream>
using namespace std;
int main(){
int d,r;
double a,b,f;
cin >> a >> b;
d=a/b; r=a%b;
f=a/b;
cout << d << " " << r << " " << f <<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    7 | d=a/b; r=a%b;
      |          ~^~
      |          | |
      |          | double
      |          double
Language: C++

#include <iostream>

int main()
{
	double x,y;
	cin >> x >> y;
	printf("%lf%lf%.8lf\n", x/b,x%y,x/y);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> x >> y;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:35: error: 'b' was not declared in this scope
    7 |         printf("%lf%lf%.8lf\n", x/b,x%y,x/y);
      |                                   ^
a.cc:7:38: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    7 |         printf("%lf%lf%.8lf\n", x/b,x%y,x/y);
      |                                     ~^~
      |                                     | |
      |                                     | double
      |                                     double
Language: C++

#include <stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'f' was not declared in this scope
    9 |   f=(double)a/(double)b;
      |   ^
Language: C++

#include <stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:2: error: 'f' was not declared in this scope
    9 |  f=(double)a/(double)b;
      |  ^
Language: C++

#include <stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:2: error: 'f' was not declared in this scope
    9 |  f=(double)a/(double)b;
      |  ^
Language: C++

#include <stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:2: error: 'f' was not declared in this scope
    9 |  f=(double)a/(double)b;
      |  ^
Language: C++

#include <stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:2: error: 'f' was not declared in this scope
    9 |  f=(double)a/(double)b;
      |  ^
Language: C++

#include <stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:2: error: 'f' was not declared in this scope
    9 |  f=((double)a/(double)b);
      |  ^
Language: C++

#include <stdio.h>

int main() {
	int in1, in2;
	int ans1, ans2;
	float ans3;
	scanf_s("%d %d", &in1, &in2);

	ans2 = in1 % in2;
	ans1 = (in1 - ans2) / in2;
	ans3 = (float)in1 / (float)in2;

	printf("%d %d %lf\n", ans1, ans2, ans3);

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |         scanf_s("%d %d", &in1, &in2);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<iostream>
using namespace std;

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

	cin>>a>>b;

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

	printf("%.8if\n",f)

	cout << d << " " << r << " " << f << endl;

	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: expected ';' before 'cout'
   13 |         printf("%.8if\n",f)
      |                            ^
      |                            ;
   14 | 
   15 |         cout << d << " " << r << " " << f << endl;
      |         ~~~~                
a.cc:17:18: error: expected '}' at end of input
   17 |         return 0;
      |                  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

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

	cin>>a>>b;

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

	printf("%.8if\n",f);

	cout << d << " " << r << " " << f << endl;

	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: expected '}' at end of input
   17 |         return 0;
      |                  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
#include<studio.h>
using namespace std;
    int main(){
    // Your code here!
    int a,b;
    cin>>a>>b;
    printf("%d %d %1f\n" ,a / b , a%b,(double)a/b);
    return 0;
}


Compiler output:
a.cc:2:9: fatal error: studio.h: No such file or directory
    2 | #include<studio.h>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <sstream>
#include <math.h>
#include <algorithm>
using namespace std;
int main() {
    double a, b ;
    int d, r ;
    double f, aa, bb ;
    cin >> a >> b ;
    d = a / b;
    r = a % b;
    aa = a;
    bb = b;
    f = aa / bb;
    cout << d << " " << r << " " << f << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   12 |     r = a % b;
      |         ~ ^ ~
      |         |   |
      |         |   double
      |         double
Language: C++

#include <iostream>
#include <sstream>
#include <math.h>
#include <algorithm>
#include <iomanip>
using namespace std;
int main() {
    double a, b ;
    int d, r ;
    cin >> a >> b ;
    d = a / b;
    r = a % b;
    f = a / b;
    cout << d << " " << r << " " << setprecision(15) << f << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   12 |     r = a % b;
      |         ~ ^ ~
      |         |   |
      |         |   double
      |         double
a.cc:13:5: error: 'f' was not declared in this scope
   13 |     f = a / b;
      |     ^
Language: C++

#include <iostream>
#include <sstream>
#include <math.h>
#include <algorithm>
#include <iomanip>
using namespace std;
int main() {
    double a, b ;
    int d, r ;
    cin >> a >> b ;
    int aa, bb;
    aa = a;
    bb = b;
    d = aa / bb;
    r = aa % bb;
    f = a / b;
    cout << d << " " << r << " " << setprecision(15) << f << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'f' was not declared in this scope
   16 |     f = a / b;
      |     ^
Language: C++

#include <iostream>
#include <sstream>
#include <math.h>
#include <algorithm>
#include <iomanip>
using namespace std;
int main() {
    double a, b ,f;
    int d, r ;
    cin >> a >> b ;
    int aa, bb;
    aa = a;
    bb = b;
    d = aa / bb;
    r = aa % bb;
    f = a / b;
    printf("%d %d &.5lf\n", a/b, a%b, (double)a /b);
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:17:35: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   17 |     printf("%d %d &.5lf\n", a/b, a%b, (double)a /b);
      |                                  ~^~
      |                                  | |
      |                                  | double
      |                                  double
Language: C++

#include <iostream>
#include <sstream>
#include <math.h>
#include <algorithm>
#include <iomanip>
using namespace std;
int main() {
    int a, b ;
    int d, r ;
    cin >> a >> b ;
    int aa, bb;
    aa = a;
    bb = b;
    d = aa / bb;
    r = aa % bb;
    f = a / b;
    printf("%d %d &.5lf\n", a/b, a%b, (double)a /b);
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'f' was not declared in this scope
   16 |     f = a / b;
      |     ^
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;

int main(){
int a, b;
cin >> a >.b;

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

return 0;
}


Compiler output:
a.cc:9:25: error: stray '\' in program
    9 | printf("%d %d %lf\n", a \ b, a % b, (double)a\b);
      |                         ^
a.cc:9:46: error: stray '\' in program
    9 | printf("%d %d %lf\n", a \ b, a % b, (double)a\b);
      |                                              ^
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before '.' token
    7 | cin >> a >.b;
      |           ^
a.cc:9:24: error: expected ')' before 'b'
    9 | printf("%d %d %lf\n", a \ b, a % b, (double)a\b);
      |       ~                ^  ~
      |                        )
a.cc:9:46: error: expected ')' before 'b'
    9 | printf("%d %d %lf\n", a \ b, a % b, (double)a\b);
      |       ~                                      ^~
      |                                              )
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;

int main(){
int a, b;
cin >> a >.b;

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

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before '.' token
    7 | cin >> a >.b;
      |           ^
Language: C++

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



Compiler output:
a.cc:3:1: error: extended character 　 is not valid in an identifier
    3 | 　int a,b;
      | ^
a.cc:4:1: error: extended character 　 is not valid in an identifier
    4 | 　scanf("%d %d", &a, &b);
      | ^
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　int d,r;
      | ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　printf("%d %d %.8f\n", d, r, f);
      | ^
a.cc:11:1: error: extended character 　 is not valid in an identifier
   11 | 　return 0;
      | ^
a.cc: In function 'int main()':
a.cc:3:1: error: '\U00003000int' was not declared in this scope
    3 | 　int a,b;
      | ^~~~~
a.cc:4:19: error: 'a' was not declared in this scope
    4 | 　scanf("%d %d", &a, &b);
      |                   ^
a.cc:4:23: error: 'b' was not declared in this scope
    4 | 　scanf("%d %d", &a, &b);
      |                       ^
a.cc:4:1: error: '\U00003000scanf' was not declared in this scope
    4 | 　scanf("%d %d", &a, &b);
      | ^~~~~~~
a.cc:5:6: error: expected ';' before 'd'
    5 | 　int d,r;
      |      ^~
      |      ;
a.cc:6:3: error: 'd' was not declared in this scope
    6 |   d = a/b;
      |   ^
a.cc:7:3: error: 'r' was not declared in this scope
    7 |   r = a%b;
      |   ^
a.cc:10:1: error: '\U00003000printf' was not declared in this scope; did you mean 'vsprintf'?
   10 | 　printf("%d %d %.8f\n", d, r, f);
      | ^~~~~~~~
      | vsprintf
a.cc:11:1: error: '\U00003000return' was not declared in this scope
   11 | 　return 0;
      | ^~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int a, b;
    cin >> a;
    cin >> b;
    cout << a ? b << a % b << (double)a / b << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: invalid operands of types 'int' and 'double' to binary 'operator<<'
    7 |     cout << a ? b << a % b << (double)a / b << endl;
      |                 ~~~~~~~~~~ ^~ ~~~~~~~~~~~~~
      |                   |                     |
      |                   int                   double
a.cc:7:52: error: expected ':' before ';' token
    7 |     cout << a ? b << a % b << (double)a / b << endl;
      |                                                    ^
      |                                                    :
a.cc:7:52: error: expected primary-expression before ';' token
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a, b, d, r;
    double f;
    
    cin >> a >> b;
    
    d = a / b;
    r = a % b;
    f = 1.0 * a / b;
    
    cout << a << " " << b << " " << c;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:37: error: 'c' was not declared in this scope
   14 |     cout << a << " " << b << " " << c;
      |                                     ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a, b, d, r;
    double f;
    
    cin >> a >> b;
    
    d = a / b;
    r = a % b;
    f = 1.0 * a / b;
    
    cout << a << " " << b << " " << c << endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:37: error: 'c' was not declared in this scope
   14 |     cout << a << " " << b << " " << c << endl;
      |                                     ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a, d, r;
    double f, b;
    
    cin >> a >> b;
    
    d = a / b;
    r = a % b;
    f = 1.0 * a / b;
    
    cout << d << " " << r << " " << f << endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: invalid operands of types 'int' and 'double' to binary 'operator%'
   11 |     r = a % b;
      |         ~ ^ ~
      |         |   |
      |         int double
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a, b, d, r;
    double f;
    
    cin >> a >> b;
    
    d = a / b;
    r = a % b;
    f = 1.0 * a / b;
    
    cout << d << " " << r << " " << fixed << setprecision(5) << f << endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:46: error: 'setprecision' was not declared in this scope
   14 |     cout << d << " " << r << " " << fixed << setprecision(5) << f << endl;
      |                                              ^~~~~~~~~~~~
a.cc:2:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include <iostream>
  +++ |+#include <iomanip>
    2 | using namespace std;
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: expected ')' before 'a'
    7 |     printf ("%d %d %f\n" a / b , a % b , double a/b);
      |            ~            ^~
      |                         )
a.cc:7:42: error: expected primary-expression before 'double'
    7 |     printf ("%d %d %f\n" a / b , a % b , double a/b);
      |                                          ^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int a, b, d, r;
    double f;
    cin >> a >> b;
    d = a / b;
    r = a % b;
    f = double(a) / double(b);
    cout << d << " " << r << " " << fixed << setprecision(5) << f << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:46: error: 'setprecision' was not declared in this scope
   11 |     cout << d << " " << r << " " << fixed << setprecision(5) << f << endl;
      |                                              ^~~~~~~~~~~~
a.cc:2:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include<iostream>
  +++ |+#include <iomanip>
    2 | using namespace std;
Language: C++

#include<iostreram>
using namespace std;

int main(){
    int a,b;
    cin>>a>>b;
    
    cout<<fixed<<setprecision(5);
    
    cout<<a/b<<" "<<a%b<<" "<<(double)a/b<<endl;
    
    return 0;
}


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

#include<iostreram>
#inslude<iomanip>
#include<algorithm>
using namespace std;

int main(){
    int a,b;
    cin>>a>>b;
    
    cout<<fixed<<setprecision(5);
    
    cout<<a/b<<" "<<a%b<<" "<<(double)a/b<<endl;
    
    return 0;
}


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

#include<iostreram>
#inslude<iomanip>
#include<algorithm>
using namespace std;

int main(){
    int a,b;
    cin>>a>>b;
    
    cout<<fixed<<setprecision(5);
    
    cout<<a/b<<" "<< a%b <<" "<<(double)a/b<<endl;
    
    return 0;
}


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

#include<iostreram>
#inslude<iomanip>
#include<algorithm>
using namespace std;

int main(){
    int a,b;
    cin>>a>>b;
    
    cout<<a/b<<" "<< a%b <<" ";
    cout<<fixed;
    cout.precision(6);
    cout<<(double)a/(double)b<<endl;
    
    return 0;
}


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

#include<iostreram>
using namespace std;

int main(){
    int a,b;
    cin>>a>>b;
    
    cout<<a/b<<" "<< a%b <<" ";
    
    cout<<fixed;
    
    cout.precision(6);
    
    cout<<(double)a/(double)b<<endl;
    
    return 0;
}


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

#include<iostreram>
using namespace std;

int main(){
    int a,b;
    cin>>a>>b;
    
    cout<<a/b<<" "<< a%b <<" ";
    
    cout<<fixed;
    
    cout<<precision(6);
    
    cout<<(double)a/(double)b<<endl;
    
    return 0;
}


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

#include<iostreram>
using namespace std;

int main(){
    int a,b;
    cin>>a>>b;
    
    cout<<a/b<<" "<< a%b <<" ";
    
    cout<<fixed;
    
    cout<<precision(5);
    
    cout<<(double)a/(double)b<<endl;
    
    return 0;
}


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

#include<iostream>
using namespace std;

int main(){
    int a,b;
    cin>>a>>b;
    
    cout<<a/b<<" "<< a%b <<" ";
    
    cout<<fixed;
    
    cout<<precision(5);
    
    cout<<(double)a/(double)b<<endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'precision' was not declared in this scope
   12 |     cout<<precision(5);
      |           ^~~~~~~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <cstdio>
using namespace std;

int main(){
	double a, b;
	
	cin >> a >> b;
	
	double d;
	double r;
	double f;
	
	d = a/b;
	r = a%b;
	f = a/b;
	
	printf( "%d %d %f\n", d, r, f);
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   16 |         r = a%b;
      |             ~^~
      |             | |
      |             | double
      |             double
Language: C++

#include <iostream>
#include <stdio.h>
#include <cstdio>
using namespace std;
int main(){
	double a, b;
	cin >> a >> b;
	double d;
	double r;
	double f;
	d = a/b;
	r = a%b;
	f = a/b;
	printf( "%d %d %f\n", d, r, f);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   12 |         r = a%b;
      |             ~^~
      |             | |
      |             | double
      |             double
Language: C++

#include <iostream>
#include <stdio.h>
#include <cstdio>
using namespace std;
int main(){
	double a, b;
	cin >> a >> b;
	double d, r, f;
	d = a/b;
	r = a%b;
	f = a/b;
	printf( "%d %d %f\n", d, r, f);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   10 |         r = a%b;
      |             ~^~
      |             | |
      |             | double
      |             double
Language: C++

#include<iostream>
using namespace std;
int main(){
    int a,b,c;
    cin>>a>>b>>c;
    cout<<a/b<<" "<<a%b<<" "<<setiosflags(ios::fixed)<<setprecision(5)<<(float)a/b<<endl;<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:31: error: 'setiosflags' was not declared in this scope
    6 |     cout<<a/b<<" "<<a%b<<" "<<setiosflags(ios::fixed)<<setprecision(5)<<(float)a/b<<endl;<<endl;
      |                               ^~~~~~~~~~~
a.cc:2:1: note: 'std::setiosflags' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include<iostream>
  +++ |+#include <iomanip>
    2 | using namespace std;
a.cc:6:56: error: 'setprecision' was not declared in this scope
    6 |     cout<<a/b<<" "<<a%b<<" "<<setiosflags(ios::fixed)<<setprecision(5)<<(float)a/b<<endl;<<endl;
      |                                                        ^~~~~~~~~~~~
a.cc:6:56: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
a.cc:6:90: error: expected primary-expression before '<<' token
    6 |     cout<<a/b<<" "<<a%b<<" "<<setiosflags(ios::fixed)<<setprecision(5)<<(float)a/b<<endl;<<endl;
      |                                                                                          ^~
Language: C++

#include<iostream>
#include <iomanip>
using namespace std;
int main(){
    int a,b,c;
    cin>>a>>b>>c;
    cout<<a/b<<" "<<a%b<<" "<<setprecision(5)<<(float)a/b<<endl;<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:65: error: expected primary-expression before '<<' token
    7 |     cout<<a/b<<" "<<a%b<<" "<<setprecision(5)<<(float)a/b<<endl;<<endl;
      |                                                                 ^~
Language: C++

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


Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include <stdio.h><font></font>
      |                   ^~~~~~
a.cc:2:20: warning: extra tokens at end of #include directive
    2 | #include <stdlib.h><font></font>
      |                    ^~~~~~
a.cc:3:1: error: expected unqualified-id before '<' token
    3 | <font></font>
      | ^
a.cc:11:2: error: expected unqualified-id before '<' token
   11 | }<font></font>
      |  ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b;
double f;
cout << a/b << a%b <<(double)a/b) <<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:33: error: expected ';' before ')' token
    6 | cout << a/b << a%b <<(double)a/b) <<endl;
      |                                 ^
      |                                 ;
Language: C++

#include <iostream>
using namespace std;

int main(){
	double a, b;
	
	cin >> a >> b;
	
	double d;
	double r;
	double f;
	
	d = a/b;
	r = a%b;
	f = a/b;
	
	printf( "%d %d %f\n", d, r, f);
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   14 |         r = a%b;
      |             ~^~
      |             | |
      |             | double
      |             double
Language: C++

#include <iostream>
using namespace std;
int main(){
	double a, b;
	cin >> a >> b;
	double d;
	double r;
	double f;
	d = a/b;
	r = a%b;
	f = a/b;
	printf( "%d %d %f\n", d, r, f);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   10 |         r = a%b;
      |             ~^~
      |             | |
      |             | double
      |             double
Language: C++

#include <iostream>
using namespace std;
int main(){
	double a, b;
	cin >> a >> b;
	double d, r, f;
	d = a/b;
	r = a%b;
	f = a/b;
	printf( "%d %d %f\n", d, r, f);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    8 |         r = a%b;
      |             ~^~
      |             | |
      |             | double
      |             double
Language: C++

#include<stdio.h>

int main(){
    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:
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
a.cc:45:1: error: expected declaration before '}' token
   45 | }
      | ^
a.cc:56:1: error: expected declaration before '}' token
   56 | }
      | ^
Language: C++

#include <iostream>
#include <iomanip>
using namespace std;


int main(void){

int x,y,d,r;
float f;
cin >> x >> y;

  d = x / y;
  r = x % y;
  f = (float)x / (float)y;

std::cout << d << " " <<r  << " "  << fixed << setprecision(6) <<　f<< std::endl;
    }


Compiler output:
a.cc:16:66: error: extended character 　 is not valid in an identifier
   16 | std::cout << d << " " <<r  << " "  << fixed << setprecision(6) <<　f<< std::endl;
      |                                                                  ^
a.cc: In function 'int main()':
a.cc:16:66: error: '\U00003000f' was not declared in this scope
   16 | std::cout << d << " " <<r  << " "  << fixed << setprecision(6) <<　f<< std::endl;
      |                                                                  ^~~