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

// A / B Problem

#include <iostream>

int main()
{
  int a b;
  std::cin >> a >> b;

  const int d = a / b;
  const int r = a % d;
  const float f = static_cast<float>(a) / b;

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected initializer before 'b'
    7 |   int a b;
      |         ^
a.cc:8:15: error: 'a' was not declared in this scope
    8 |   std::cin >> a >> b;
      |               ^
a.cc:8:20: error: 'b' was not declared in this scope
    8 |   std::cin >> a >> b;
      |                    ^
a.cc:17:13: error: 'setprecision' is not a member of 'std'
   17 |     << std::setprecision(6) << f << std::endl;
      |             ^~~~~~~~~~~~
a.cc:4:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    3 | #include <iostream>
  +++ |+#include <iomanip>
    4 |
Language: C++

// A / B Problem

#include <iostream>

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

  const int d = a / b;
  const int r = a % d;
  const float f = static_cast<float>(a) / b;

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'setprecision' is not a member of 'std'
   17 |     << std::setprecision(6) << f << std::endl;
      |             ^~~~~~~~~~~~
a.cc:4:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    3 | #include <iostream>
  +++ |+#include <iomanip>
    4 |
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: lvalue required as left operand of assignment
    6 |         a / b = d;
      |         ~~^~~
a.cc:7:11: error: lvalue required as left operand of assignment
    7 |         a % b = r;
      |         ~~^~~
a.cc:8:11: error: lvalue required as left operand of assignment
    8 |         a / b = f;
      |         ~~^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: lvalue required as left operand of assignment
    6 |         a / b = d;
      |         ~~^~~
a.cc:7:11: error: lvalue required as left operand of assignment
    7 |         a % b = r;
      |         ~~^~~
a.cc:8:11: error: lvalue required as left operand of assignment
    8 |         a / b = f;
      |         ~~^~~
Language: C++

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

int main()
{
	int x,y;

	cin >> x;
	cin >> y;

	printf("%d %d %.5lf",x/y,x%d,(double)x/y);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:36: error: 'd' was not declared in this scope
   13 |         printf("%d %d %.5lf",x/y,x%d,(double)x/y);
      |                                    ^
Language: C++

#include <iostream>
#include <cstdio>

int main()
{
	int a, b;
	std::cin >> a >> b;
	printf_s("%d %d %.5f", a/b, a%b, static_cast<double>(a)/static_cast<double>(b));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
    8 |         printf_s("%d %d %.5f", a/b, a%b, static_cast<double>(a)/static_cast<double>(b));
      |         ^~~~~~~~
      |         printf
Language: C++

#include<iostream>
#include<cstdi>

double a = 0  , b = 0 ,  f = 0 ;
int aa = 0 , bb = 0 , d = 0 , r = 0 ;

int main()
{
	std::cin >> a >> b ;
	aa = a ;
	bb = b ;
	d = aa / bb ;
	r = aa % bb ;
	f = a / b ;
	std::cout << d << " " << r << " " ;
	printf("%.5f\n", f);
}

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

#include<iostream>
#include<stdib>

double a = 0  , b = 0 ,  f = 0 ;
int aa = 0 , bb = 0 , d = 0 , r = 0 ;

int main()
{
	std::cin >> a >> b ;
	aa = a ;
	bb = b ;
	d = aa / bb ;
	r = aa % bb ;
	f = a / b ;
	std::cout << d << " " << r << " " ;
	printf("%.5f\n", f);
}

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

#include<iostream>
#include<cstdib>

double a = 0  , b = 0 ,  f = 0 ;
int aa = 0 , bb = 0 , d = 0 , r = 0 ;

int main()
{
	std::cin >> a >> b ;
	aa = a ;
	bb = b ;
	d = aa / bb ;
	r = aa % bb ;
	f = a / b ;
	std::cout << d << " " << r << " " ;
	printf("%.5f\n", f);
}

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

#include<iostream>
#include"cstdi.h"

double a = 0  , b = 0 ,  f = 0 ;
int aa = 0 , bb = 0 , d = 0 , r = 0 ;

int main()
{
	std::cin >> a >> b ;
	aa = a ;
	bb = b ;
	d = aa / bb ;
	r = aa % bb ;
	f = a / b ;
	std::cout << d << " " << r << " " ;
	printf("%.5f\n", f);
}

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

#include<iostream>
#include"stdib.h"

double a = 0  , b = 0 ,  f = 0 ;
int aa = 0 , bb = 0 , d = 0 , r = 0 ;

int main()
{
	std::cin >> a >> b ;
	aa = a ;
	bb = b ;
	d = aa / bb ;
	r = aa % bb ;
	f = a / b ;
	std::cout << d << " " << r << " " ;
	printf("%.5f\n", f);
}

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

#include<iostream>
#include<csteio>

double a = 0  , b = 0 ,  f = 0 ;
int aa = 0 , bb = 0 , d = 0 , r = 0 ;

int main()
{
	std::cin >> a >> b ;
	aa = a ;
	bb = b ;
	d = aa / bb ;
	r = aa % bb ;
	f = a / b ;
	std::cout << d << " " << r << " " ;
	printf("%.5f\n", f);
}

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

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


return 0;
}

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

#include <iostream>
#include <iomanip>

using namespace std;

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

    cout.
    cout << a / b << ' ' << a % b << ' ' 
         << fixed << setprecision(10) << double(a) / b << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'std::ostream' {aka 'class std::basic_ostream<char>'} has no member named 'cout'; did you mean 'out'?
   12 |     cout << a / b << ' ' << a % b << ' '
      |     ^~~~
      |     out
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <cmath>
#include <string>
#include <sstream>
#include <iomanip>
#include <complex>
using namespace std;

#define ll long long
#define vvi vector< vector<int> >
#define vi vector<int>
#define All(X) X.begin(),X.end()
#define FOR(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define REP(i,n) for(int i=0;i<(int)(n);i++)
#define pb push_back
#define pii pair<int,int>
#define mp make_pair
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return a/gcd(a,b)*b;}

int main(){
	/*int??????????????????????????????????????§long long ??§??¨??? long long????????§ll??¨?????\??§??????????????????????????????????????????*/
	ll int a,b;
	cin >> a >> b;
	cout << (ll int) a/b << " " << a%b << setprecission(7)  << " " << (long double)a / (long double) b << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:47: error: 'setprecission' was not declared in this scope
   30 |         cout << (ll int) a/b << " " << a%b << setprecission(7)  << " " << (long double)a / (long double) b << endl;
      |                                               ^~~~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     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<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << a/b << " " << a%b << " " << double(a)/double(b) << endl;
      |     ^~~~
a.cc:6:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:64: error: 'endl' was not declared in this scope
    6 |     cout << a/b << " " << a%b << " " << double(a)/double(b) << endl;
      |                                                                ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

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

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

#include <iostream>
using namespace std;

int main () {
 int x,y;

 cin >> x >> y;

 cout << a/b << ' ' << a%b << ' ' << (double)a/b << endl;

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'a' was not declared in this scope
    9 |  cout << a/b << ' ' << a%b << ' ' << (double)a/b << endl;
      |          ^
a.cc:9:12: error: 'b' was not declared in this scope
    9 |  cout << a/b << ' ' << a%b << ' ' << (double)a/b << endl;
      |            ^
Language: C++

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

Compiler output:
a.cc:12:17: warning: trigraph ??< ignored, use -trigraphs to enable [-Wtrigraphs]
   12 | ??????????????????<< fixed << setprecision(10) << double(a) / b << endl;
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
a.cc:5:1: error: expected unqualified-id before '?' token
    5 | ??
      | ^
Language: C++

#include<stdio.h>

int main(void)
{

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

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

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

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

return 0;
}

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

#include<cstdio>
int main()
{
int a, b, c, d, e;
double f;
scanf("%d, %d, %d, &a, &b, &c);
d = a / b;
e = a % b;
f = a / b;
printf(" %d, %d, %ls, d, e, f);
return 0;
}

Compiler output:
a.cc:6:7: warning: missing terminating " character
    6 | scanf("%d, %d, %d, &a, &b, &c);
      |       ^
a.cc:6:7: error: missing terminating " character
    6 | scanf("%d, %d, %d, &a, &b, &c);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:10:8: warning: missing terminating " character
   10 | printf(" %d, %d, %ls, d, e, f);
      |        ^
a.cc:10:8: error: missing terminating " character
   10 | printf(" %d, %d, %ls, d, e, f);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:10: error: expected ')' before ';' token
    7 | d = a / b;
      |          ^
      |          )
a.cc:6:6: note: to match this '('
    6 | scanf("%d, %d, %d, &a, &b, &c);
      |      ^
a.cc:11:1: error: expected primary-expression before 'return'
   11 | return 0;
      | ^~~~~~
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 << " ";
	cout << fixed << setprecision(5) << f << endl;
	return 0;
}

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

int main(){
int a , b , c , d == a / b , r == a % b , f == a / b; 
cin >> a >> b ;

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: expected initializer before '==' token
    5 | int a , b , c , d == a / b , r == a % b , 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:9: warning: missing terminating " character
    9 | printf ("%d %d %lf\n, a / b, a % b, (double)a/b);
      |         ^
a.cc:9:9: error: missing terminating " character
    9 | printf ("%d %d %lf\n, a / b, a % b, (double)a/b);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: expected primary-expression before 'return'
   10 | return 0;
      | ^~~~~~
Language: C++

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

int main(){
int a , b , d , r ;
double f;
 
printf( "%d %d %lf" , a / b , a % b , a / b );

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:9:1: error: 'printf' was not declared in this scope
    9 | printf( "%d %d %lf" , a / b , a % b , a / b );
      | ^~~~~~
a.cc:3:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    2 | #include<stdio.h>
  +++ |+#include <cstdio>
    3 | using namespace std;
Language: C++

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

int main(){
int a , b , d , r ;
double f;
 
printf( "%d %d %lf" , 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: In function 'int main()':
a.cc:9:1: error: 'printf' was not declared in this scope
    9 | printf( "%d %d %lf" , a / b , a % b , (double)a / b );
      | ^~~~~~
a.cc:3:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    2 | #include<stdio.h>
  +++ |+#include <cstdio>
    3 | using namespace std;
Language: C++

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

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

printf( "%d %d %lf" , 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: In function 'int main()':
a.cc:8:1: 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<stdio.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:10:1: error: 'printf' was not declared in this scope
   10 | printf( "%d %d %lf" , a / b , a % b , (double)a / b );
      | ^~~~~~
a.cc:3:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    2 | #include<stdio.h>
  +++ |+#include <cstdio>
    3 | using namespace std;
Language: C++

#include <iostream>
#include <bits/stdc++.h>
#include <string>
#include <ctype.h>
#include <algorithm>
#include <cmath>
#include <vector>

#define REP(i, n) for(int i=0;i<(int)(n);i++)
#define ALL(x) (x).begin(),(x).end()
#define square(x) (x) * (x)

const int INF = 1e9;

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:37: error: 'fa' was not declared in this scope; did you mean 'f'?
   23 |     cout << d << " " << r << " " << fa << endl;
      |                                     ^~
      |                                     f
Language: C++

#include <iostream>
#include <bits/stdc++.h>
#include <string>
#include <ctype.h>
#include <algorithm>
#include <cmath>
#include <vector>

#define REP(i, n) for(int i=0;i<(int)(n);i++)
#define ALL(x) (x).begin(),(x).end()
#define square(x) (x) * (x)

const int INF = 1e9;

using namespace std;

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

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


#include <stdio.h>

int main(){
	int a, b;
	double f;
	scanf("%d %d", &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:9:54: error: expected ';' before ')' token
    9 |         printf("%d %d %f\n", a/b, a%b, (double) a/b ));
      |                                                      ^
      |                                                      ;
Language: C++

import java.io.*;
import java.util.*;

class Main {
    public static void main(String [] args){
        Scanner scan = new Scanner(System.in);
        
        int a = scan.nextInt();
        int b = scan.nextInt();
        
        System.out.println(a / b + " " + a % b + " " + (double)a / b);
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
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.util.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void main(String [] args){
      |           ^~~~~~~
      |           :
a.cc:5:29: error: 'String' has not been declared
    5 |     public static void main(String [] args){
      |                             ^~~~~~
a.cc:5:39: error: expected ',' or '...' before 'args'
    5 |     public static void main(String [] args){
      |                                       ^~~~
a.cc:13:2: error: expected ';' after class definition
   13 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:9: error: 'Scanner' was not declared in this scope
    6 |         Scanner scan = new Scanner(System.in);
      |         ^~~~~~~
a.cc:8:17: error: 'scan' was not declared in this scope
    8 |         int a = scan.nextInt();
      |                 ^~~~
a.cc:11:9: error: 'System' was not declared in this scope
   11 |         System.out.println(a / b + " " + a % b + " " + (double)a / b);
      |         ^~~~~~
a.cc:11:48: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   11 |         System.out.println(a / b + " " + a % b + " " + (double)a / b);
      |                            ~~~~~~~~~~~~~~~~~~~ ^ ~~~
      |                                        |         |
      |                                        |         const char [2]
      |                                        const char*
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();
        
        System.out.println(a / b + " " + a % b + " " + (double)a / b);
    }
}

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

import java.util.Scanner;

public class Main {
    public static void main(String [] args){
        Scanner scan = new Scanner(System.in);
        
        int a = scan.nextInt();
        int b = scan.nextInt();
        
        System.out.println(a / b + " " + a % b + " " + (double)a / b);
    }
}

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:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include<stdio.h>

int main(void){
  long long a,b;

  scanf("%lld%lld",&a,&b);
  printf("%lld %lld %lf",a/b,a%d,(double)a/b);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: 'd' was not declared in this scope
    7 |   printf("%lld %lld %lf",a/b,a%d,(double)a/b);
      |                                ^
Language: C++

#include<stdio.h>

int main(void){
  long a,b;

  scanf("%ld%ld",&a,&b);
  printf("%ld %ld %lf",a/b,a%d,(double)a/b);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: 'd' was not declared in this scope
    7 |   printf("%ld %ld %lf",a/b,a%d,(double)a/b);
      |                              ^
Language: C++

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


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

	cin >> a >> b;

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

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


	return 0;
}

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

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


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

	cin >> a >> b;

	d = a / b;
	r = fmod(a,b);
	f = a / b;

	cout.precision(6);

	cout << d << " " << r << " ";
	

	cout << fixed << setprecision(5);
	cout<< f << endl;


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: 'fmod' was not declared in this scope
   15 |         r = fmod(a,b);
      |             ^~~~
Language: C++

#include <iostream>
#include <math.h>
#include <iomanip>
using namespace std;
int main(){
  int a, b;
  cin >> a >> b;
  int d = a/b;
  int r = fmod(a, b);
  double f = (double)a/b;
  // cout << "a???" << a << "b???" << b <<"????????§??????\n";
  cout << d << " " << r << " " << setprecision(50) 

Compiler output:
a.cc: In function 'int main()':
a.cc:12:51: error: expected ';' at end of input
   12 |   cout << d << " " << r << " " << setprecision(50)
      |                                                   ^
      |                                                   ;
a.cc:12:51: error: expected '}' at end of input
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'scanf' was not declared in this scope
    3 |     scanf("%d %d",&a, &b);
      |     ^~~~~
a.cc:8:5: error: 'printf' was not declared in this scope
    8 |     printf("%d %d %lf\n", d, r, f);
      |     ^~~~~~
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++

(a, b) = [int(i) for i in input().split()]
 
d = int(a / b)
r = a % b
f = a / b
 
 
print('%s %s %.5f' % (d, r, f))

Compiler output:
a.cc:8:7: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    8 | print('%s %s %.5f' % (d, r, f))
      |       ^~~~~~~~~~~~
a.cc:1:3: error: expected ')' before ',' token
    1 | (a, b) = [int(i) for i in input().split()]
      | ~ ^
      |   )
a.cc:1:6: error: expected constructor, destructor, or type conversion before ')' token
    1 | (a, b) = [int(i) for i in input().split()]
      |      ^
Language: C++

import java.util.*;

public class Main {
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		System.out.println((a / b) + " " + (a % b) + " " + (float) (a * 1.0 / b));
	}
}

Compiler output:
a.cc:5:17: error: stray '@' in program
    5 |                 @SuppressWarnings("resource")
      |                 ^
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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: unable to find string literal operator 'operator""a' with 'const char [13]', 'long unsigned int' arguments
    7 |         printf("%d %d %.6lf\n"a/b,a%b,(double)a/b);
      |                ^~~~~~~~~~~~~~~~
Language: C++

#include <iostream>

int main(){
float x,y,f;
int d,r;
std::cin >> x >> y;

d=x/y;
r=x%y;
f=x/y;

std::cout << d << " " << r << " " << f << std::endl;
}

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

#include <iostream>

int main(){
float f;
int x,y.d,r;
std::cin >> x >> y;

d=x/y;
r=x%y;
f=x/y;

std::cout << d << " " << r << " " << f << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '.' token
    5 | int x,y.d,r;
      |        ^
a.cc:6:18: error: 'y' was not declared in this scope
    6 | std::cin >> x >> y;
      |                  ^
a.cc:8:1: error: 'd' was not declared in this scope
    8 | d=x/y;
      | ^
a.cc:9:1: error: 'r' was not declared in this scope
    9 | r=x%y;
      | ^
Language: C++

#include <iostream>

int main(){
float f;
int x,y.d,r;
std::cin >> x >> y;

d=x/y;
r=x%y;
f=1.00000000*x/y;

std::cout << d << " " << r << " " << f << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '.' token
    5 | int x,y.d,r;
      |        ^
a.cc:6:18: error: 'y' was not declared in this scope
    6 | std::cin >> x >> y;
      |                  ^
a.cc:8:1: error: 'd' was not declared in this scope
    8 | d=x/y;
      | ^
a.cc:9:1: error: 'r' was not declared in this scope
    9 | r=x%y;
      | ^
Language: C++

#include <iostream>

int main(){
double f;
int x,y.d,r;
std::cin >> x >> y;

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

std::cout << d << " " << r << " " << f << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '.' token
    5 | int x,y.d,r;
      |        ^
a.cc:6:18: error: 'y' was not declared in this scope
    6 | std::cin >> x >> y;
      |                  ^
a.cc:8:1: error: 'd' was not declared in this scope
    8 | d=x/y;
      | ^
a.cc:9:1: error: 'r' was not declared in this scope
    9 | r=x%y;
      | ^
Language: C++

#include <iostream>

int main(){
double f;
int x,y.d,r;
std::cin >> x >> y;

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

std::cout << d << " " << r << " " << f << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '.' token
    5 | int x,y.d,r;
      |        ^
a.cc:6:18: error: 'y' was not declared in this scope
    6 | std::cin >> x >> y;
      |                  ^
a.cc:8:1: error: 'd' was not declared in this scope
    8 | d=x/y;
      | ^
a.cc:9:1: error: 'r' was not declared in this scope
    9 | r=x%y;
      | ^
Language: C++

#include <iostream>

int main(){

double f;
int x,y.d,r;

std::cin >> x >> y;

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected initializer before '.' token
    6 | int x,y.d,r;
      |        ^
a.cc:8:18: error: 'y' was not declared in this scope
    8 | std::cin >> x >> y;
      |                  ^
a.cc:10:1: error: 'd' was not declared in this scope
   10 | d = x/y;
      | ^
a.cc:11:1: error: 'r' was not declared in this scope
   11 | r = x%y;
      | ^
Language: C++

#include <stdio.h>

int main(){

double f;
int x,y,d,r;

std::cin >> x >> y;

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'cin' is not a member of 'std'
    8 | std::cin >> x >> y;
      |      ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:14:6: error: 'printf' is not a member of 'std'; did you mean 'printf'?
   14 | std::printf("%d %d %.5f", d, r, f);
      |      ^~~~~~
In file included from a.cc:1:
/usr/include/stdio.h:363:12: note: 'printf' declared here
  363 | extern int printf (const char *__restrict __format, ...);
      |            ^~~~~~
Language: C++

#include <cstdio>

int main(){

double f;
int x,y,d,r;

std::cin >> x >> y;

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'cin' is not a member of 'std'
    8 | std::cin >> x >> y;
      |      ^~~
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 |
Language: C++

import Control.Monad
import Control.Applicative

main = do
  [x,y] <- map read . words <$> getLine

  putStrLn $ (show $ x `div` y) ++ " " ++ (show $ x `mod` y) ++ " " ++ (show $ fromIntegral(round((fromIntegral(x) / fromIntegral(y)) * 100000.0))/100000.0)

Compiler output:
a.cc:7:24: error: stray '`' in program
    7 |   putStrLn $ (show $ x `div` y) ++ " " ++ (show $ x `mod` y) ++ " " ++ (show $ fromIntegral(round((fromIntegral(x) / fromIntegral(y)) * 100000.0))/100000.0)
      |                        ^
a.cc:7:28: error: stray '`' in program
    7 |   putStrLn $ (show $ x `div` y) ++ " " ++ (show $ x `mod` y) ++ " " ++ (show $ fromIntegral(round((fromIntegral(x) / fromIntegral(y)) * 100000.0))/100000.0)
      |                            ^
a.cc:7:53: error: stray '`' in program
    7 |   putStrLn $ (show $ x `div` y) ++ " " ++ (show $ x `mod` y) ++ " " ++ (show $ fromIntegral(round((fromIntegral(x) / fromIntegral(y)) * 100000.0))/100000.0)
      |                                                     ^
a.cc:7:57: error: stray '`' in program
    7 |   putStrLn $ (show $ x `div` y) ++ " " ++ (show $ x `mod` y) ++ " " ++ (show $ fromIntegral(round((fromIntegral(x) / fromIntegral(y)) * 100000.0))/100000.0)
      |                                                         ^
a.cc:1:1: error: 'import' does not name a type
    1 | import Control.Monad
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
int main(){
int a,b;
long long double A=0,B=0;
std::cin>>a>>b;
A=A+a;
B=B+b;
std::cout<<a/b<<" "<<a%b<<" "<<A/B<<std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:6: error: 'long long' specified with 'double'
    4 | long long double A=0,B=0;
      |      ^~~~
a.cc:4:6: error: 'long long' specified with 'double'
Language: C++

#include<upstream>

using namespace std;

int main(){

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

d= a/b;
r= a%b;
f= a/b;
cout <<d<<" "<<r<<" "<<f<<endl;

return0
}

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:47: error: 'setprecision' was not declared in this scope
    9 |     cout << a / b << " " << a % b << fixed << setprecision(10)  << " " << (double)a / (double) << 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;
a.cc:9:88: error: expected primary-expression before 'double'
    9 |     cout << a / b << " " << a % b << fixed << setprecision(10)  << " " << (double)a / (double) << endl;
      |                                                                                        ^~~~~~
a.cc:9:88: error: expected ')' before 'double'
    9 |     cout << a / b << " " << a % b << fixed << setprecision(10)  << " " << (double)a / (double) << endl;
      |                                                                                       ~^~~~~~
      |                                                                                        )
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:58: error: expected primary-expression before 'double'
    9 |     cout << a / b << " " << a % b << " " << (double)a / (double) << endl;
      |                                                          ^~~~~~
a.cc:9:58: error: expected ')' before 'double'
    9 |     cout << a / b << " " << a % b << " " << (double)a / (double) << endl;
      |                                                         ~^~~~~~
      |                                                          )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    6 |   cout<<(int)(a/b)<<" "<<a%b<<" "<<a/b<<endl;
      |                          ~^~
      |                          | |
      |                          | double
      |                          double
a.cc: At global scope:
a.cc:9:4: error: expected unqualified-id before 'return'
    9 |    return 0;
      |    ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

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

Compiler output:
a.cc:9:4: error: expected unqualified-id before 'return'
    9 |    return 0;
      |    ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

int main(){

double x,y;

cin >> x >> y;

cout << (int)x / y << (int)x % y << x / y << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: invalid operands of types 'int' and 'double' to binary 'operator%'
   11 | cout << (int)x / y << (int)x % y << x / y << endl;
      |                       ~~~~~~ ^ ~
      |                       |        |
      |                       int      double
Language: C++

#include <iostream>

using namespace std;

int main(){

double x,y;

cin >> x >> y;

cout << x / y << x % y << x / y * 0.1 << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   11 | cout << x / y << x % y << x / y * 0.1 << endl;
      |                  ~ ^ ~
      |                  |   |
      |                  |   double
      |                  double
Language: C++

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

Compiler output:
a.cc:9:4: error: expected unqualified-id before 'return'
    9 |    return 0;
      |    ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

void cal(int a, int b){

  cout << a/b << " "<< a%b << " "<< (double)(a/b) << endl:

}

int main(){
  int a, b;

  cin >> a >> b;
  cal(a,b);
}

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

#include <iostream>
using namespace std;

void cal(int a, int b){

  int f = (double)a/(double)b
  cout << a/b << " "<< a%b << " "<< f << endl;

}

int main(){
  int a, b;

  cin >> a >> b;
  cal(a,b);
}

Compiler output:
a.cc: In function 'void cal(int, int)':
a.cc:7:3: error: expected ',' or ';' before 'cout'
    7 |   cout << a/b << " "<< a%b << " "<< f << endl;
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%d %d" ,&a,&b);
      |   ^~~~~
a.cc:9:3: error: 'printf' was not declared in this scope
    9 |   printf("%d %d %.5lf\n" ,d,r,f);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'scanf' was not declared in this scope
    6 |     scanf("%d%d",&a,&b);
      |     ^~~~~
a.cc:11:5: error: 'printf' was not declared in this scope
   11 |     printf("%d %d %.5\n",d,r,f);
      |     ^~~~~~
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 <iostream>
#include <vector>
using namespace std;


int main(void){

	int a,b;
	int d,r;
	double f;
	cin >> a >> b;
	d = (int)(a/b);
	r = a%b;
	f = (double)a/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:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <vector>
  +++ |+#include <iomanip>
    3 | using namespace std;
Language: C++

#include <iostream>
#include <vector>
#include <iomanp>
using namespace std;


int main(void){

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

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

#include <iostream>
using namespace std;

int main(int argc, char* argv[]) {
  int a, b;
  cin >> a >> b;

  cout << a/b << " " << a%b << " " << fixed << setprecision(8) << (float)a/(float)b << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:8:48: error: 'setprecision' was not declared in this scope
    8 |   cout << a/b << " " << a%b << " " << fixed << setprecision(8) << (float)a/(float)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++

Last login: Fri Oct 16 01:01:53 on ttys003
tasakikidai-no-MacBook-Pro:~ TAKAHIRO$ emacs hdou.c






















#include<stdio.h>

int main(){
  int a,b,d,r;
  scanf("%d %d",&a,&b);
  if(1<=a && a<=1000000000 && 1<=b && b<=1000000000){
  d = a	/ b;
  r = a	% b;
  float x = a;
  float y = b;
  float f = x / y;
  printf("%d %d %.5lf\n",d,r,f);
  }
  return 0;
}

Compiler output:
a.cc:1:1: error: 'Last' does not name a type
    1 | Last login: Fri Oct 16 01:01:53 on ttys003
      | ^~~~
a.cc: In function 'int main()':
a.cc:29:3: error: 'scanf' was not declared in this scope
   29 |   scanf("%d %d",&a,&b);
      |   ^~~~~
a.cc:36:3: error: 'printf' was not declared in this scope
   36 |   printf("%d %d %.5lf\n",d,r,f);
      |   ^~~~~~
a.cc:26:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
   25 | #include<stdio.h>
  +++ |+#include <cstdio>
   26 |
Language: C++

#include <math.h>

int main()
{
    double      r;

    scanf("%lf", &r);

    printf("%f %f\n", r * r * M_PI, 2 * M_PI * r);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'scanf' was not declared in this scope
    7 |     scanf("%lf", &r);
      |     ^~~~~
a.cc:9:5: error: 'printf' was not declared in this scope
    9 |     printf("%f %f\n", r * r * M_PI, 2 * M_PI * r);
      |     ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include <math.h>
  +++ |+#include <cstdio>
    2 |
Language: C++

'use strict';

(function() {
    var fs = require('fs');
    var contents = fs.readFileSync('/dev/stdin', 'utf-8');

    var ab = function(contents) {
        var line = contents.trim().split(" ");
        var a = parseInt(line[0]);
        var b = parseInt(line[1]);

        var d = Math.floor(a / b);
        var r = a % b;
        var f = a / b;
        console.log(d + " " + r + " " + f);
    }

    ab(contents);
}());

Compiler output:
a.cc:1:1: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    1 | 'use strict';
      | ^~~~~~~~~~~~
a.cc:4:22: warning: multi-character character constant [-Wmultichar]
    4 |     var fs = require('fs');
      |                      ^~~~
a.cc:5:36: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    5 |     var contents = fs.readFileSync('/dev/stdin', 'utf-8');
      |                                    ^~~~~~~~~~~~
a.cc:5:50: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    5 |     var contents = fs.readFileSync('/dev/stdin', 'utf-8');
      |                                                  ^~~~~~~
a.cc:1:1: error: expected unqualified-id before '\x72696374'
    1 | 'use strict';
      | ^~~~~~~~~~~~
a.cc:3:12: error: expected ')' before '{' token
    3 | (function() {
      | ~          ^~
      |            )
a.cc:19:3: error: expected unqualified-id before ')' token
   19 | }());
      |   ^
Language: C++

#include<iostream>
using namespace std;

int main(){
 float a,b;
 int A,B;
 int d,r;
 float f;
 cin>>a>>b;
 a=(int)A;
 b=(int)B;
 r=a%b;
 d=(a-r)/b;
 f=a/b;
 cout<<d<<' '<<r<<' '<<f<<'\n';
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: invalid operands of types 'float' and 'float' to binary 'operator%'
   12 |  r=a%b;
      |    ~^~
      |    | |
      |    | float
      |    float
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;
		double f = (double)a / (double)b;

		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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include<cstdio>
#include<iostrem>

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

 cin >> a >> b;

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

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

 return 0;
}

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

def toi(a)
	b = []
	a.each do |n|
		b << n.to_i
	end
	b	
end
a=toi(gets().split)

x = a[0]
y = a[1]

print("#{x.div(y)} #{x.modulo(y)} #{x.quo(y).to_f}\n")

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def toi(a)
      | ^~~
Language: C++

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

int main()
{
	int a, b;
		cin >> a >> b;
		cout << oct << a / b << endl;
		cout << oct << fmod(a, b) << endl;
		cout << fixed << setprecision(5) << ((float)a) / b << endl;
	return 0;
}

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

a , b = map(int, raw_input().split())
c = a / b
d = a % b
e = float(a) / b

print '%d %d %f' % (c,d,e)

Compiler output:
a.cc:6:7: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    6 | print '%d %d %f' % (c,d,e)
      |       ^~~~~~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a , b = map(int, raw_input().split())
      | ^
Language: C++

a , b = map(int, raw_input().split())
c = a / b
d = a % b


print '%d %d %f' % (c,d,(float(a) / b))

Compiler output:
a.cc:6:7: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    6 | print '%d %d %f' % (c,d,(float(a) / b))
      |       ^~~~~~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a , b = map(int, raw_input().split())
      | ^