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

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


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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #in; did you mean #if?
    1 | #in#include <iostream>
      |  ^~
      |  if
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> a >> b ;
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <iomanip>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << d << " " << r << " " << showpoint << setprecision(12) << f << endl;
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'cin'
    6 | cin>>a>>b;
      | ^~~
a.cc:7:5: error: 'd' was not declared in this scope
    7 | c=a;d=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=(double)a/b

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

return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected ';' before 'printf'
   12 | f=(double)a/b
      |              ^
      |              ;
   13 | 
   14 | printf("%d %d %.5f",d,r,f);
      | ~~~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
  int a, b;
  int d, r;
  float f;
  cin >> a >> b;
  d = a/b;
  r = a%b;
  f = a/b;
  cout << d <<" "<< r <<" "<<setprecision(5)<< f << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:30: error: 'setprecision' was not declared in this scope
   14 |   cout << d <<" "<< r <<" "<<setprecision(5)<< f << "\n";
      |                              ^~~~~~~~~~~~
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 |
Language: C++

#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
  int a, b;
  int d, r;
  float f;
  cin >> a >> b;
  d = a/b;
  r = a%b;
  f = a/b;
  cout << d <<" "
       << r <<" "]
       << setprecision(5) << f
       << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: expected ';' before ']' token
   16 |        << r <<" "]
      |                  ^
      |                  ;
Language: C++

#include <iostream>
#include <cmath>

using namespace std;

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

    do {
        cin >> a >> b;
    } while ((a < 1 || a > pow(10, 9)) || (b < 1 || b > pow(10, 9)));

    d = a / b;
    r = a % b;
    f = static_cast<float>a / b;
 
    cout << d << " " << r << " " << setprecision(5) << f << endl;
   
    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:27: error: expected '(' before 'a'
   19 |     f = static_cast<float>a / b;
      |                           ^
      |                           (
a.cc:19:32: error: expected ')' before ';' token
   19 |     f = static_cast<float>a / b;
      |                                ^
      |                                )
a.cc:21:37: error: 'setprecision' was not declared in this scope
   21 |     cout << d << " " << r << " " << setprecision(5) << f << endl;
      |                                     ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <cmath>
  +++ |+#include <iomanip>
    3 |
Language: C++

#include <iostream>
#include <cmath>

using namespace std;

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

    do {
        cin >> a >> b;
    } while ((a < 1 || ((float)a > powf(10, 9)) || (b < 1 || (float)b > powf(10, 9)));

    d = a / b;
    r = a % b;
    f = static_cast<float>a / b;
 
    cout << d << " " << r << " " << setprecision(5) << f << endl;
   
    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:86: error: expected ')' before ';' token
   15 |     } while ((a < 1 || ((float)a > powf(10, 9)) || (b < 1 || (float)b > powf(10, 9)));
      |             ~                                                                        ^
      |                                                                                      )
a.cc:19:27: error: expected '(' before 'a'
   19 |     f = static_cast<float>a / b;
      |                           ^
      |                           (
a.cc:19:32: error: expected ')' before ';' token
   19 |     f = static_cast<float>a / b;
      |                                ^
      |                                )
a.cc:21:37: error: 'setprecision' was not declared in this scope
   21 |     cout << d << " " << r << " " << setprecision(5) << f << endl;
      |                                     ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <cmath>
  +++ |+#include <iomanip>
    3 |
Language: C++

#include <iostream>
#include <iomanip>
#include <cmath>

using namespace std;

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

    do {
        cin >> a >> b;
    } while ((a < 1 || ((float)a > powf(10, 9)) || (b < 1 || (float)b > powf(10, 9)));

    d = a / b;
    r = a % b;
    f = static_cast<float>a / b;
 
    cout << d << " " << r << " " << setprecision(5) << f << endl;
   
    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:86: error: expected ')' before ';' token
   16 |     } while ((a < 1 || ((float)a > powf(10, 9)) || (b < 1 || (float)b > powf(10, 9)));
      |             ~                                                                        ^
      |                                                                                      )
a.cc:20:27: error: expected '(' before 'a'
   20 |     f = static_cast<float>a / b;
      |                           ^
      |                           (
a.cc:20:32: error: expected ')' before ';' token
   20 |     f = static_cast<float>a / b;
      |                                ^
      |                                )
Language: C++

#include <iostream>
#include <iomanip>
#include <cmath>

using namespace std;

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

    do {
        cin >> a >> b;
    } while ((a < 1 || (float)a > powf(10, 9)) || (b < 1 || (float)b > powf(10, 9)));

    d = a / b;
    r = a % b;
    f = static_cast<float>a / b;
 
    cout << d << " " << r << " " << setprecision(5) << f << endl;
   
    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:27: error: expected '(' before 'a'
   20 |     f = static_cast<float>a / b;
      |                           ^
      |                           (
a.cc:20:32: error: expected ')' before ';' token
   20 |     f = static_cast<float>a / b;
      |                                ^
      |                                )
Language: C++

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

int main()
{
	int a = 0, b = 0;
	cin >> a >> b;
	cout << a / b << " " << a % b << " "
        printf("%f\n", (1.0 * a) / b);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:45: error: expected ';' before 'printf'
    9 |         cout << a / b << " " << a % b << " "
      |                                             ^
      |                                             ;
   10 |         printf("%f\n", (1.0 * a) / b);
      |         ~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
float a,b;

cin >> a >> b;
cout << (int)a/b << " " << (int)a%b << " " << a/b << endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: invalid operands of types 'int' and 'float' to binary 'operator%'
    8 | cout << (int)a/b << " " << (int)a%b << " " << a/b << endl;
      |                            ~~~~~~^~
      |                            |      |
      |                            int    float
Language: C++

#include<iostream>
using namespace std;

int main(){
int a,b;

cin >> a >> b;

cout << a/b << " " << a%b << " ";
printf("%.8lf", (float)a%b);

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: invalid operands of types 'float' and 'int' to binary 'operator%'
   10 | printf("%.8lf", (float)a%b);
      |                 ~~~~~~~~^~
      |                 |        |
      |                 float    int
Language: C++

using System;

class MainClass
{
	public static void Main (string[] args)
	{
		string str = Console.ReadLine ();
		string[]spStr = str.Split(' ');

		int a = int.Parse (spStr[0]);
		int b = int.Parse (spStr[1]);

		int d = a / b;
		int r = a % b;
		double f = (double)a / b;

		Console.WriteLine (d + " " + r + " " + f);
	}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:5:15: error: expected ':' before 'static'
    5 |         public static void Main (string[] args)
      |               ^~~~~~~
      |               :
a.cc:5:34: error: 'string' has not been declared
    5 |         public static void Main (string[] args)
      |                                  ^~~~~~
a.cc:5:43: error: expected ',' or '...' before 'args'
    5 |         public static void Main (string[] args)
      |                                           ^~~~
a.cc:19:2: error: expected ';' after class definition
   19 | }
      |  ^
      |  ;
a.cc: In static member function 'static void MainClass::Main(int*)':
a.cc:7:17: error: 'string' was not declared in this scope
    7 |                 string str = Console.ReadLine ();
      |                 ^~~~~~
a.cc:8:24: error: expected primary-expression before ']' token
    8 |                 string[]spStr = str.Split(' ');
      |                        ^
a.cc:10:25: error: expected primary-expression before 'int'
   10 |                 int a = int.Parse (spStr[0]);
      |                         ^~~
a.cc:11:25: error: expected primary-expression before 'int'
   11 |                 int b = int.Parse (spStr[1]);
      |                         ^~~
a.cc:17:17: error: 'Console' was not declared in this scope
   17 |                 Console.WriteLine (d + " " + r + " " + f);
      |                 ^~~~~~~
a.cc:17:48: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   17 |                 Console.WriteLine (d + " " + r + " " + f);
      |                                    ~~~~~~~~~~~ ^ ~~~
      |                                            |     |
      |                                            |     const char [2]
      |                                            const char*
Language: C++

#include <iostream>
using namespace std;

int main(){
    double a = 0;
    double b = 0;
    int d = 0;
    int r = 0;
    float f = 0;
    
    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:14:11: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   14 |     r = a % b;
      |         ~ ^ ~
      |         |   |
      |         |   double
      |         double
a.cc:17:16: error: expected primary-expression before ',' token
   17 |     cout << d <, " " << r << " " << f << endl;
      |                ^
a.cc:17:22: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<'
   17 |     cout << d <, " " << r << " " << f << endl;
      |                  ~~~ ^~ ~
      |                  |      |
      |                  |      int
      |                  const char [2]
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:16: error: expected primary-expression before ',' token
   18 |     cout << d <, " " << r << " ";
      |                ^
a.cc:18:22: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<'
   18 |     cout << d <, " " << r << " ";
      |                  ~~~ ^~ ~
      |                  |      |
      |                  |      int
      |                  const char [2]
Language: C++

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

int main(){
    int a = 0;
    int b = 0;
    int d = 0;
    int r = 0;
    float f = 0;
    
    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:18:16: error: expected primary-expression before ',' token
   18 |     cout << d <, " " << r << " " << fixed << setprecision(5) << f << endl;
      |                ^
a.cc:18:22: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<'
   18 |     cout << d <, " " << r << " " << fixed << setprecision(5) << f << endl;
      |                  ~~~ ^~ ~
      |                  |      |
      |                  |      int
      |                  const char [2]
Language: C++

#include <iostream>
using namespace std;

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

	cin >> a >> b;

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

	cout << d << " " << r << " " << setprecision(5) << f << endl; 

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:41: error: 'setprecision' was not declared in this scope
   15 |         cout << d << " " << r << " " << 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>
using namespace std;

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

	cin >> a >> b;

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

	cout  << setprecision(5) << d << " " << r << " " << f << endl; 

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: 'setprecision' was not declared in this scope
   15 |         cout  << setprecision(5) << d << " " << r << " " << 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<stdio.h>
int main(void){
	int a, b, d, r;
	float f;
	scanf_s("%d", &a);
	scanf_s("%d", &b);
	d = a / b;
	r = a%b;
	f = a / b;
	printf("%d %d %lf", d, r, f);
	return 0;
}

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

#include <stdio.h>
#include <algorithm>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> x>>y;
      |     ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <algorithm>
  +++ |+#include <iostream>
    3 |
Language: C++

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

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
Language: C++

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

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

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

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

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

int main(){
int n,m,d,r;
double f;
cin>>n>>m;
d=n/m;
r=n%m;
f=double(n)/double(m);
cout<<d<<r;
cout<<setprecision(6)<<f<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: 'setprecision' was not declared in this scope
   13 | cout<<setprecision(6)<<f<<endl;
      |       ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include<algorithm>
  +++ |+#include <iomanip>
    3 | using namespace std;
Language: C++

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

int main(){
int n,m,d,r;
double f;
cin>>n>>m;
d=n/m;
r=n%m;
f=n/m;
cout<<d<<r;
cout<<setprecision(6)<<f.<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: expected unqualified-id before '<<' token
   14 | cout<<setprecision(6)<<f.<<endl;
      |                          ^~
Language: C++

#include <iostream>
#include <fstream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <cstring>
#include <string>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <algorithm>
using namespace std;
 
#define REP(i,n) for(int i=0; i<n; ++i)
#define FOR(i,a,b) for(int i=a; i<=b; ++i)
#define FORR(i,a,b) for (int i=a; i>=b; --i)
#define pi M_PI
 
typedef long long ll;
typedef vector<int> VI;
typedef vector<ll> VL;
typedef vector<VI> VVI;
typedef pair<int,int> P;
typedef pair<ll,ll> PL;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:30:27: error: expected ')' before 'a'
   30 |     printf("%d %d %.10f\n" a+b, a%b, (double)a/b);
      |           ~               ^~
      |                           )
Language: C++

#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, r, f);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:10:10: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   10 |   printf(d, r, f);
      |          ^
      |          |
      |          int
In file included from /usr/include/c++/14/cstdio:42,
                 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 <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: 'sanf' was not declared in this scope; did you mean 'scanf'?
    5 |    sanf("%d %d\n",&a, &b);
      |    ^~~~
      |    scanf
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:49: error: 'setprecision' was not declared in this scope
    8 |         cout << a / b << " " << a % b << " " << setprecision(5) << (double)a / b << 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 <iomanip>
#include <cstdio>
using namespace std;

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

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

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

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
Language: C++

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

Compiler output:
a.cc:2:1: error: expected unqualified-id before '?' token
    2 | ??
      | ^
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=(double)a/b;
  printf("%d %d %.8lf\n", d,r,f); 
  
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>a>>b;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<cstdio>
  +++ |+#include <iostream>
    3 | using namespace std ;
Language: C++

#include<bits/stdc++.h>
using namespace std;main(){double a,b;cin>>a>>b;cout<<a/b<<" "<<a%b<<" "<<fixed<<setprecision(9)<<a/b<<endl;}

Compiler output:
a.cc:2:21: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | using namespace std;main(){double a,b;cin>>a>>b;cout<<a/b<<" "<<a%b<<" "<<fixed<<setprecision(9)<<a/b<<endl;}
      |                     ^~~~
a.cc: In function 'int main()':
a.cc:2:66: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    2 | using namespace std;main(){double a,b;cin>>a>>b;cout<<a/b<<" "<<a%b<<" "<<fixed<<setprecision(9)<<a/b<<endl;}
      |                                                                 ~^~
      |                                                                 | |
      |                                                                 | double
      |                                                                 double
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '>>' token
    5 |  int a >> b;
      |        ^~
a.cc:6:9: error: 'a' was not declared in this scope
    6 |  cin >> a, b;
      |         ^
a.cc:6:12: error: 'b' was not declared in this scope
    6 |  cin >> a, b;
      |            ^
Language: C++

#include"stdafx.h"
#include<iostream>
#include<float.h>
using namespace std;

int main()
{
	int a, b,d,r;
	float x,y,f;
	cin >> a >> b;
	d = a / b;
	r = a%b;
	x = a;
	y = b;
	f = x / y;
	printf("%d %d %.5lf\n ",d,r, f);
	return 0;
}

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

#include"stdafx.h"
#include<iostream>
#include<float.h>
using namespace std;

int main()
{
	int a, b,d,r;
	float x,y,f;
	cin >> a >> b;
	d = a / b;
	r = a%b;
	x = a;
	y = b;
	f = x / y;
	printf("%d %d %.16lf\n ",d,r, f);
	return 0;
}

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

#include"stdafx.h"
#include<iostream>
#include<float.h>
using namespace std;

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

Compiler output:
a.cc:1:9: 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 i,j;
        cin >> i >> j;
        printf("%d %d %lf\n", i/j, i%j, ((double)i/(double)j);
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:62: error: expected ')' before ';' token
    7 |         printf("%d %d %lf\n", i/j, i%j, ((double)i/(double)j);
      |               ~                                              ^
      |                                                              )
Language: C++

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

int main(){
        int i,j;
        cin >> i >> j;

        printf("%d %d %lf\n", i/j, i%j, (double)i/(double)j);

        return 0;
}

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

putTuple :: (Int,Int,Double) -> IO ()
putTuple (a,b,c)=putStrLn $ show a ++ " " ++ show b ++ " " ++show c
main=getLine>>=putTuple.(\[a,b]->(a`div`b,a`mod`b,(fromIntegral a)/(fromIntegral b))).map (read ::String->Int).words

Compiler output:
a.cc:3:26: error: stray '\' in program
    3 | main=getLine>>=putTuple.(\[a,b]->(a`div`b,a`mod`b,(fromIntegral a)/(fromIntegral b))).map (read ::String->Int).words
      |                          ^
a.cc:3:36: error: stray '`' in program
    3 | main=getLine>>=putTuple.(\[a,b]->(a`div`b,a`mod`b,(fromIntegral a)/(fromIntegral b))).map (read ::String->Int).words
      |                                    ^
a.cc:3:40: error: stray '`' in program
    3 | main=getLine>>=putTuple.(\[a,b]->(a`div`b,a`mod`b,(fromIntegral a)/(fromIntegral b))).map (read ::String->Int).words
      |                                        ^
a.cc:3:44: error: stray '`' in program
    3 | main=getLine>>=putTuple.(\[a,b]->(a`div`b,a`mod`b,(fromIntegral a)/(fromIntegral b))).map (read ::String->Int).words
      |                                            ^
a.cc:3:48: error: stray '`' in program
    3 | main=getLine>>=putTuple.(\[a,b]->(a`div`b,a`mod`b,(fromIntegral a)/(fromIntegral b))).map (read ::String->Int).words
      |                                                ^
a.cc:1:1: error: 'putTuple' does not name a type
    1 | putTuple :: (Int,Int,Double) -> IO ()
      | ^~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'inta' was not declared in this scope; did you mean 'int'?
    3 | inta,b;
      | ^~~~
      | int
a.cc:3:6: error: 'b' was not declared in this scope
    3 | inta,b;
      |      ^
a.cc:5:15: error: 'a' was not declared in this scope
    5 | scanf("%d%d",&a,&b);
      |               ^
a.cc:5:1: error: 'scanf' was not declared in this scope
    5 | scanf("%d%d",&a,&b);
      | ^~~~~
a.cc:7:1: error: 'printf' was not declared in this scope
    7 | printf("%d %d %f\n",a/b,a%b,c);
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'inta' was not declared in this scope; did you mean 'int'?
    4 | inta,b;
      | ^~~~
      | int
a.cc:4:6: error: 'b' was not declared in this scope
    4 | inta,b;
      |      ^
a.cc:6:15: error: 'a' was not declared in this scope
    6 | scanf("%d%d",&a,&b);
      |               ^
Language: C++

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

Compiler output:
a.cc:6:11: warning: missing terminating " character
    6 | scanf(%D%D",&a,&b);
      |           ^
a.cc:6:11: error: missing terminating " character
    6 | scanf(%D%D",&a,&b);
      |           ^~~~~~~~~
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:7: error: expected primary-expression before '%' token
    6 | scanf(%D%D",&a,&b);
      |       ^
a.cc:6:8: error: 'D' was not declared in this scope
    6 | scanf(%D%D",&a,&b);
      |        ^
Language: C++

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

Compiler output:
a.cc:6:11: warning: missing terminating " character
    6 | scanf(%d%d",&a,&b);
      |           ^
a.cc:6:11: error: missing terminating " character
    6 | scanf(%d%d",&a,&b);
      |           ^~~~~~~~~
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:7: error: expected primary-expression before '%' token
    6 | scanf(%d%d",&a,&b);
      |       ^
a.cc:6:8: error: 'd' was not declared in this scope
    6 | scanf(%d%d",&a,&b);
      |        ^
Language: C++

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

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

return 0;

}

Compiler output:
a.cc:6:11: warning: missing terminating " character
    6 | scanf(%d%d",&a,&b);
      |           ^
a.cc:6:11: error: missing terminating " character
    6 | scanf(%d%d",&a,&b);
      |           ^~~~~~~~~
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:7: error: expected primary-expression before '%' token
    6 | scanf(%d%d",&a,&b);
      |       ^
a.cc:6:8: error: 'd' was not declared in this scope
    6 | scanf(%d%d",&a,&b);
      |        ^
Language: C++

#include <iostream>

int main(){
  int x, y;
  int s, r;
  double f;
  std::cin >> x >> y;
  
  s = x / y;
  r = x % y;
  f = (double)x / (double)y;
  std::cout << x << " " << y << " " << z << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:40: error: 'z' was not declared in this scope
   12 |   std::cout << x << " " << y << " " << z << std::endl;
      |                                        ^
Language: C++

using System;
using System.Linq;
class Program {
	public static void Main() {
		int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
		Console.WriteLine((x[0] / x[1]) + " " + (x[0] % x[1]) + " " + (1.0 * x[0] / x[1]).ToString("f12"));
	}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:4:15: error: expected ':' before 'static'
    4 |         public static void Main() {
      |               ^~~~~~~
      |               :
a.cc:8:2: error: expected ';' after class definition
    8 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main()':
a.cc:5:20: error: structured binding declaration cannot have type 'int'
    5 |                 int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |                    ^~
a.cc:5:20: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:5:20: error: empty structured binding declaration
a.cc:5:23: error: expected initializer before 'x'
    5 |                 int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |                       ^
a.cc:6:17: error: 'Console' was not declared in this scope
    6 |                 Console.WriteLine((x[0] / x[1]) + " " + (x[0] % x[1]) + " " + (1.0 * x[0] / x[1]).ToString("f12"));
      |                 ^~~~~~~
a.cc:6:36: error: 'x' was not declared in this scope
    6 |                 Console.WriteLine((x[0] / x[1]) + " " + (x[0] % x[1]) + " " + (1.0 * x[0] / x[1]).ToString("f12"));
      |                                    ^
Language: C++

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

Compiler output:
a.cc:2:1: error: 'it' does not name a type; did you mean 'int'?
    2 | it main(){
      | ^~
      | int
Language: C++

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

Compiler output:
a.cc:1:22: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>int main(void){int a,b;
      |                      ^~~~
a.cc:1:9: fatal error: stdio.h>in: No such file or directory
    1 | #include<stdio.h>int main(void){int a,b;
      |         ^~~~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc:1:22: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>int main(void){int a,d;
      |                      ^~~~
a.cc:1:9: fatal error: stdio.h>in: No such file or directory
    1 | #include<stdio.h>int main(void){int a,d;
      |         ^~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

int main(void){
float a,b;
cin >> a >> b;
cout << (int)(a/b) <<" "<< fmod(a,b) <<" "<< a/b << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: 'fmod' was not declared in this scope
    7 | cout << (int)(a/b) <<" "<< fmod(a,b) <<" "<< a/b << endl;
      |                            ^~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'co' was not declared in this scope
    7 | co<<a/b<<" ";
      | ^~
Language: C++

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

int main(){
  int a, b, d, r;
  float f;
  d = a / b;
  r = a % b;
  f = a / b;
  cout << a << " " << b << " " << c << endl;
  return 0;
}

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

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

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

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

#include<stdio.h>
  #include<iostream>
  #include<algorithm>
  #define N 2

  using namespace std;
  void output_array_int(int*,int,char);
  void input_array_int(int*,int);

  ////////////////////////////////////////////////////////////////////////////////

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

    cout<<a/b<<" "<<a%b<<" "<<;
    printf("%.5f\n",(double)a/(double)b);
    return 0;
  }

  ////////////////////////////////////////////////////////////////////////////////

  void output_array_int(int * a,int n,char ch){
    int i;

    for(i=0;i<n;i++){
      cout<<*(a+i);
      if(i<(n-1)){
        cout<<ch;
      }
    }

    cout<<endl;

    return;
  }

  void input_array_int(int *a,int n){
    int i;

    for(i=0;i<n;i++){
      cin>>*(a+i);
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:16:31: error: expected primary-expression before ';' token
   16 |     cout<<a/b<<" "<<a%b<<" "<<;
      |                               ^
Language: C++

#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
    int a,b;

    cin >> a >> b;

    int ansi = a / b;
    double ansd =1.000000000001 * a / b;
    double remainder =  a % b;

    cout << ansi << " "
         << remainder << " "
         << setprecision(1???) << ansd << endl;

    return 0;
}

Compiler output:
a.cc:18:28: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
   18 |          << setprecision(1???) << ansd << endl;
a.cc: In function 'int main()':
a.cc:18:28: error: expected primary-expression before '?' token
   18 |          << setprecision(1???) << ansd << endl;
      |                            ^
a.cc:18:29: error: expected primary-expression before '?' token
   18 |          << setprecision(1???) << ansd << endl;
      |                             ^
a.cc:18:30: error: expected primary-expression before ')' token
   18 |          << setprecision(1???) << ansd << endl;
      |                              ^
a.cc:18:30: error: expected ':' before ')' token
   18 |          << setprecision(1???) << ansd << endl;
      |                              ^
      |                              :
a.cc:18:30: error: expected primary-expression before ')' token
a.cc:18:30: error: expected ':' before ')' token
   18 |          << setprecision(1???) << ansd << endl;
      |                              ^
      |                              :
a.cc:18:30: error: expected primary-expression before ')' token
a.cc:18:30: error: expected ':' before ')' token
   18 |          << setprecision(1???) << ansd << endl;
      |                              ^
      |                              :
a.cc:18:30: error: expected primary-expression before ')' token
Language: C++

#include<cstdio>

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

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

printf("%d %d %f",d,r,f);
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:1: error: 'return0' was not declared in this scope
   14 | return0;
      | ^~~~~~~
Language: C++

#include<cstdio>

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

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

printf("%d %d %f",d,r,f);
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:1: error: 'return0' was not declared in this scope
   14 | return0;
      | ^~~~~~~
Language: C++

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

int main() {
	int a,b;
	cin>>a>>b;
	int d = a/b;
	int r = a%b;
	double f = (double)a / (double)b
	cout<<d<<" "<<r<<" "<<f<<endl;// your code goes here
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ',' or ';' before 'cout'
   10 |         cout<<d<<" "<<r<<" "<<f<<endl;// your code goes here
      |         ^~~~
Language: C++

#include <iomanip>
using namespace std;

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

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

#include <iomanip>
using namespace std;

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

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

#include <studio.h>
using namespace std;

int main() {
	int a,b;
	cin>>a>>b;
	cout<<a/b<<" "<<a%b<<" ";
	printf("%.10lf\n", (double)a/(double)b);
	cout<<endl;// your code goes here
}

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

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

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:3:11: error: expected ':' before 'static'
    3 |     public static void main(String[] args){
      |           ^~~~~~~
      |           :
a.cc:3:29: error: 'String' has not been declared
    3 |     public static void main(String[] args){
      |                             ^~~~~~
a.cc:3:38: error: expected ',' or '...' before 'args'
    3 |     public static void main(String[] args){
      |                                      ^~~~
a.cc:17:2: error: expected ';' after class definition
   17 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:4:8: error: 'Scanner' was not declared in this scope
    4 |        Scanner scan = new Scanner(System.in);
      |        ^~~~~~~
a.cc:5:16: error: 'scan' was not declared in this scope
    5 |        int a = scan.nextInt();
      |                ^~~~
a.cc:15:8: error: 'System' was not declared in this scope
   15 |        System.out.println(d + " " + r + " " + "%8f");
      |        ^~~~~~
a.cc:15:39: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   15 |        System.out.println(d + " " + r + " " + "%8f");
      |                           ~~~~~~~~~~~ ^ ~~~
      |                                   |     |
      |                                   |     const char [2]
      |                                   const char*
Language: C++

import java.util.Scanner;
import java.math.*;


/**
 * @author kawakami
 *
 */
class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
	       
        int a;
        int b;
        int d,r;
        double f;

       
           
        a = as.nextInt();
        b = as.nextInt();

        d=a/b;
        r=a%b;
        double fa=(float)a;
        double fb=(float)b;
        f=fa/fb;
        
        //System.out.println(f);
        BigDecimal fr = new BigDecimal(f);
        
        
        //System.out.println(fr);
        
        fr = fr.setScale(6,BigDecimal.ROUND_HALF_UP);
        
        
       


        

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

	}

}

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: 'import' does not name a type
    2 | import java.math.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:14:15: error: expected ':' before 'static'
   14 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               :
a.cc:14:33: error: 'String' has not been declared
   14 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:14:42: error: expected ',' or '...' before 'args'
   14 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:52:2: error: expected ';' after class definition
   52 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:16:17: error: 'Scanner' was not declared in this scope
   16 |                 Scanner as = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:25:13: error: 'as' was not declared in this scope; did you mean 'a'?
   25 |         a = as.nextInt();
      |             ^~
      |             a
a.cc:35:9: error: 'BigDecimal' was not declared in this scope
   35 |         BigDecimal fr = new BigDecimal(f);
      |         ^~~~~~~~~~
a.cc:40:9: error: 'fr' was not declared in this scope; did you mean 'fb'?
   40 |         fr = fr.setScale(6,BigDecimal.ROUND_HALF_UP);
      |         ^~
      |         fb
a.cc:48:5: error: 'System' was not declared in this scope
   48 |     System.out.println(d+" "+r+" "+fr);
      |     ^~~~~~
a.cc:48:31: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   48 |     System.out.println(d+" "+r+" "+fr);
      |                        ~~~~~~~^~~~
      |                             |  |
      |                             |  const char [2]
      |                             const char*
Language: C++

#include "stdafx.h"
#include <iostream>
#include <cstring>
#include <iomanip>
using namespace std;

int main() {
	int a, b;
	double c;
	cin >> a;
	cin >> b;
	cout << a / b << endl;
	cout << a % b << endl;
	std:cout << std::setprecision(11) << (double)a / b << endl;

	return 0;
}

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