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

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



Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> a;
      |     ^~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << d;
      |     ^~~~
a.cc:16:13: error: 'endl' was not declared in this scope
   16 |     cout << endl;
      |             ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected ';' before 'r'
    6 |     d = a / b
      |              ^
      |              ;
    7 |     r = a % b
      |     ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected ';' before '}' token
   10 |     return 0
      |             ^
      |             ;
   11 | 
   12 | }
      | ~
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:40: error: expected primary-expression before ',' token
    9 |     cout << d << " " << r << " " << f <, endl;
      |                                        ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected primary-expression before 'float'
    8 |     float f = float a / float b;
      |               ^~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: expected '}' at end of input
   10 |     cout<<d<<" "<<r<<" "<<f<<endl;
      |                                   ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: conflicting declaration 'double a'
    9 |     double a,b;
      |            ^
a.cc:4:9: note: previous declaration as 'int a'
    4 |     int a,b,d,r;
      |         ^
a.cc:9:14: error: conflicting declaration 'double b'
    9 |     double a,b;
      |              ^
a.cc:4:11: note: previous declaration as 'int b'
    4 |     int a,b,d,r;
      |           ^
Language: C++

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

float a,b;

scanf("%d%d",&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:8:26: error: invalid operands of types 'float' and 'float' to binary 'operator%'
    8 | printf("%d %d %f\n",a/b,a%b,a/b);
      |                         ~^~
      |                         | |
      |                         | float
      |                         float
Language: C++

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

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


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

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

int main(){
    int a,b,d,r;
    double f;
    cin >> a >> b;
    d = a / b;
    r = a % b;
    f = (double)a / b;
    cout << d << " " << r << " " << f << endl;
    system("pause")
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ';' before '}' token
   12 |     system("pause")
      |                    ^
      |                    ;
   13 | }
      | ~
Language: C++

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
        
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        System.out.println(a/b);
        System.out.println(a%b);
        System.out.println("%.1f",(double)(a)/(double)(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++

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        double x = Math.PI;
        double r = sc.nextInt();
        
        double m=r*r*x;
        double n=(r+r)*x;
        
        System.out.printf("%.6f %6.f\n",m,n);
    }
}
    
}


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{
      | ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

include <iostream>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	printf("%d %d %.16lf",a/b,a%b,(double)a/b);
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>a>>b;
      |         ^~~
a.cc:6:9: error: 'printf' was not declared in this scope
    6 |         printf("%d %d %.16lf",a/b,a%b,(double)a/b);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include <iostream>
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: 'o' was not declared in this scope
   18 |   return o;
      |          ^
Language: C++

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

int main(){
    
    int a.b;
    
    double f = a / b;
    
    printf("%.5lf＼n", f );
    
    cin >> a >> b;
    
    cout << a / b << " "<<a % b<< " "<<f<<endl;
    
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected initializer before '.' token
    6 |     int a.b;
      |          ^
a.cc:8:16: error: 'a' was not declared in this scope
    8 |     double f = a / b;
      |                ^
a.cc:8:20: error: 'b' was not declared in this scope
    8 |     double f = a / b;
      |                    ^
Language: C++

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

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




Compiler output:
a.cc: In function 'int main()':
a.cc:14:24: error: 'f' was not declared in this scope; did you mean 'f2'?
   14 |     printf("%.5lf＼n", f );
      |                        ^
      |                        f2
Language: C++

#include <bits/stdc++.h>
#define cinf(n,x) for(int i=0;i<(n);i++) cin >> x[i];
typedef long long int ll;
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: conflicting declaration 'double d'
   10 |         double d=a/b;
      |                ^
a.cc:8:13: note: previous declaration as 'int d'
    8 |         int d=a/b;
      |             ^
Language: C++

#include <bits/stdc++.h>
#define cinf(n,x) for(int i=0;i<(n);i++) cin >> x[i];
typedef long long int ll;
using namespace std;
 
int main(){
    int a,b; cin >> a >> b ;
    int d=a/b;
    int r=a%b;
    double f=a/b;
    cout << d << " "<< r << " "<<f<< endl;
}


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

#include <stdio.h>

using namespace std;

int main(void)
{
    int a, b, d, r;
    double f;
    
    cin >> a >> b;
    // scanf("%d %d", &a, &b);
    d = a / b;
    r = a % b;
    f = a / b;
    // printf("%d %d %f\n", d, r, f);
    cout << d << ' '
         << r << ' '
         << f << endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'cin' was not declared in this scope
   10 |     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 | 
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << d << ' '
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:18: error: 'endl' was not declared in this scope
   18 |          << f << 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 |
Language: C++

#include <iostream>
#include <cstdlib>

using namespace std;

int main(void)
{
    int a, b, d, r;
    double f;
    
    try {
        cin >> a >> b;
        if (b == 0) {
            throw "error";
        }
        d = a / b;
        r = a % b;
        f = a / b;
        cout << d << ' '
             << r << ' '
             << f << endl;
    catch (char* e) {
        cout << e << endl;
    }
         
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:5: error: expected primary-expression before 'catch'
   22 |     catch (char* e) {
      |     ^~~~~
a.cc:27:2: error: expected 'catch' at end of input
   27 | }
      |  ^
a.cc:27:2: error: expected '(' at end of input
   27 | }
      |  ^
      |  (
a.cc:27:2: error: expected type-specifier at end of input
a.cc:27:2: error: expected ')' at end of input
   27 | }
      |  ^
      |  )
a.cc:27:2: error: expected '{' at end of input
a.cc:27:2: error: expected '}' at end of input
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

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


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

nclude<iostream>
using namespace std;
int main(){
    int a,b;
    cin >> a >> b;
    cout << a/b << " " << a%b << " " << fixed << setprecision(8) << endl;
    return 0;
}



Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude<iostream>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> a >> b;
      |     ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << a/b << " " << a%b << " " << fixed << setprecision(8) << endl;
      |     ^~~~
a.cc:6:41: error: 'fixed' was not declared in this scope
    6 |     cout << a/b << " " << a%b << " " << fixed << setprecision(8) << endl;
      |                                         ^~~~~
a.cc:6:50: error: 'setprecision' was not declared in this scope
    6 |     cout << a/b << " " << a%b << " " << fixed << setprecision(8) << endl;
      |                                                  ^~~~~~~~~~~~
a.cc:6:69: error: 'endl' was not declared in this scope
    6 |     cout << a/b << " " << a%b << " " << fixed << setprecision(8) << endl;
      |                                                                     ^~~~
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:6:50: error: 'setprecision' was not declared in this scope
    6 |     cout << a/b << " " << a%b << " " << fixed << setprecision << 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;
    cin >> a >> b;
    cout << a/b << " " << a%b << " " << fixed << setprecision(8) << (double)a/(double)b << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:50: error: 'setprecision' was not declared in this scope
    6 |     cout << a/b << " " << a%b << " " << fixed << setprecision(8) << (double)a/(double)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>
using namespace std;
int main(){
    int a,b;
    cin >> a >> b;
    cout << a/b << " " << a%b << " " << fixed << setprecision(8) << (double)a/(double)b << << endl;
    return 0;
}



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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected initializer before '/' token
    6 |     double a/b;
      |             ^
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
    int a,b;
    cin >> a >> b;
    cout << a/b << " " << a%b << " " << endl;
    printf("%.8lf\n", a/b);
    return 0;
{


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

#include<iostream>
#include<string>
#include<algorithm>	
#include<cmath>
using namespace std;
int main() {
	double double a, b, c = 0; cin >> a >> b;
	int d = a;
	while (d >= b) {
		d = d - b;
		c++;
	}
	cout << c << ' ';
	cout << d << ' ';
	cout << a / b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: two or more data types in declaration of 'a'
    7 |         double double a, b, c = 0; cin >> a >> b;
      |         ^~~~~~
a.cc:7:9: error: two or more data types in declaration of 'b'
a.cc:7:9: error: two or more data types in declaration of 'c'
a.cc:7:43: error: 'a' was not declared in this scope
    7 |         double double a, b, c = 0; cin >> a >> b;
      |                                           ^
a.cc:7:48: error: 'b' was not declared in this scope
    7 |         double double a, b, c = 0; cin >> a >> b;
      |                                                ^
a.cc:11:17: error: 'c' was not declared in this scope
   11 |                 c++;
      |                 ^
a.cc:13:17: error: 'c' was not declared in this scope
   13 |         cout << c << ' ';
      |                 ^
Language: C++

#include<iostream>
using namespace std;

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

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

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

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: 'froat' was not declared in this scope; did you mean 'float'?
   12 | f = (froat)a/b;
      |      ^~~~~
      |      float
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'scanf'
    6 |         scanf("%d %d", &a, &b);
      |         ^~~~~
a.cc:9:9: error: 'f' was not declared in this scope
    9 |         f=aWb;
      |         ^
a.cc:9:11: error: 'aWb' was not declared in this scope
    9 |         f=aWb;
      |           ^~~
Language: C++

// This file is a "Hello, world!" in C++ language by GCC for wandbox.
#include <iostream>
#include <cstdlib>

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

// GCC reference:
//   https://gcc.gnu.org/

// C++ language references:
//   https://cppreference.com/
//   https://isocpp.org/
//   http://www.open-std.org/jtc1/sc22/wg21/

// Boost libraries references:
//   https://www.boost.org/doc/



Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     cin>>a>>b;
      |     ^~~
      |     std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout<<d<<" "<<r<<" "<<f<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout<<d<<" "<<r<<" "<<f<<endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

// This file is a "Hello, world!" in C++ language by GCC for wandbox.
#include <iostream>
#include <cstdlib>

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

// GCC reference:
//   https://gcc.gnu.org/

// C++ language references:
//   https://cppreference.com/
//   https://isocpp.org/
//   http://www.open-std.org/jtc1/sc22/wg21/

// Boost libraries references:
//   https://www.boost.org/doc/



Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << fixed << setprecision(10);
      |     ^~~~
      |     std::cout
In file included from a.cc:2:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:13: error: 'fixed' was not declared in this scope; did you mean 'std::fixed'?
    7 |     cout << fixed << setprecision(10);
      |             ^~~~~
      |             std::fixed
In file included from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/ios_base.h:1104:3: note: 'std::fixed' declared here
 1104 |   fixed(ios_base& __base)
      |   ^~~~~
a.cc:7:22: error: 'setprecision' was not declared in this scope
    7 |     cout << fixed << setprecision(10);
      |                      ^~~~~~~~~~~~
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin>>a>>b;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout<<d<<" "<<r<<" "<<f<<endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

// This file is a "Hello, world!" in C++ language by GCC for wandbox.
#include <iostream>
#include <cstdlib>

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

// GCC reference:
//   https://gcc.gnu.org/

// C++ language references:
//   https://cppreference.com/
//   https://isocpp.org/
//   http://www.open-std.org/jtc1/sc22/wg21/

// Boost libraries references:
//   https://www.boost.org/doc/



Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << fixed << setprecision(10);
      |     ^~~~
      |     std::cout
In file included from a.cc:2:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:13: error: 'fixed' was not declared in this scope; did you mean 'std::fixed'?
    7 |     cout << fixed << setprecision(10);
      |             ^~~~~
      |             std::fixed
In file included from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/ios_base.h:1104:3: note: 'std::fixed' declared here
 1104 |   fixed(ios_base& __base)
      |   ^~~~~
a.cc:7:22: error: 'setprecision' was not declared in this scope
    7 |     cout << fixed << setprecision(10);
      |                      ^~~~~~~~~~~~
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin>>a>>b;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout<<a/b<<" "<<a%b<<" "<<f<<endl;
      |                                  ^~~~
      |                                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

// This file is a "Hello, world!" in C++ language by GCC for wandbox.
#include <iostream>
#include <cstdlib>

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

// GCC reference:
//   https://gcc.gnu.org/

// C++ language references:
//   https://cppreference.com/
//   https://isocpp.org/
//   http://www.open-std.org/jtc1/sc22/wg21/

// Boost libraries references:
//   https://www.boost.org/doc/




Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << fixed << setprecision(10);
      |     ^~~~
      |     std::cout
In file included from a.cc:2:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:13: error: 'fixed' was not declared in this scope; did you mean 'std::fixed'?
    7 |     cout << fixed << setprecision(10);
      |             ^~~~~
      |             std::fixed
In file included from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/ios_base.h:1104:3: note: 'std::fixed' declared here
 1104 |   fixed(ios_base& __base)
      |   ^~~~~
a.cc:7:22: error: 'setprecision' was not declared in this scope
    7 |     cout << fixed << setprecision(10);
      |                      ^~~~~~~~~~~~
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin>>a>>b;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout<<a/b<<" "<<a%b<<" "<<f<<endl;
      |                                  ^~~~
      |                                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

// This file is a "Hello, world!" in C++ language by GCC for wandbox.
#include <iostream>
#include <cstdlib>

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

// GCC reference:
//   https://gcc.gnu.org/

// C++ language references:
//   https://cppreference.com/
//   https://isocpp.org/
//   http://www.open-std.org/jtc1/sc22/wg21/

// Boost libraries references:
//   https://www.boost.org/doc/




Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << fixed << setprecision(10);
      |     ^~~~
      |     std::cout
In file included from a.cc:2:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:13: error: 'fixed' was not declared in this scope; did you mean 'std::fixed'?
    7 |     cout << fixed << setprecision(10);
      |             ^~~~~
      |             std::fixed
In file included from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/ios_base.h:1104:3: note: 'std::fixed' declared here
 1104 |   fixed(ios_base& __base)
      |   ^~~~~
a.cc:7:22: error: 'setprecision' was not declared in this scope
    7 |     cout << fixed << setprecision(10);
      |                      ^~~~~~~~~~~~
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin>>a>>b;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:44: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout<<a/b<<" "<<a%b<<" "<<(double)a/b<<endl;
      |                                            ^~~~
      |                                            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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






Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cout' was not declared in this scope
    3 |     cout << fixed << setprecision(10);
      |     ^~~~
a.cc:3:13: error: 'fixed' was not declared in this scope
    3 |     cout << fixed << setprecision(10);
      |             ^~~~~
a.cc:3:22: error: 'setprecision' was not declared in this scope
    3 |     cout << fixed << setprecision(10);
      |                      ^~~~~~~~~~~~
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin>>a>>b;
      |     ^~~
a.cc:6:44: error: 'endl' was not declared in this scope
    6 |     cout<<a/b<<" "<<a%b<<" "<<(double)a/b<<endl;
      |                                            ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cout' was not declared in this scope
    4 |     cout << fixed << setprecision(10);
      |     ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:4:13: error: 'fixed' was not declared in this scope
    4 |     cout << fixed << setprecision(10);
      |             ^~~~~
a.cc:1:1: note: 'std::fixed' is defined in header '<ios>'; this is probably fixable by adding '#include <ios>'
  +++ |+#include <ios>
    1 | using namespace std;
a.cc:4:22: error: 'setprecision' was not declared in this scope
    4 |     cout << fixed << setprecision(10);
      |                      ^~~~~~~~~~~~
a.cc:1:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
  +++ |+#include <iomanip>
    1 | using namespace std;
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>a>>b;
      |     ^~~
a.cc:6:5: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:44: error: 'endl' was not declared in this scope
    7 |     cout<<a/b<<" "<<a%b<<" "<<(double)a/b<<endl;
      |                                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cout' was not declared in this scope
    3 |     cout << fixed << setprecision(10);
      |     ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:3:13: error: 'fixed' was not declared in this scope
    3 |     cout << fixed << setprecision(10);
      |             ^~~~~
a.cc:1:1: note: 'std::fixed' is defined in header '<ios>'; this is probably fixable by adding '#include <ios>'
  +++ |+#include <ios>
    1 | using namespace std;
a.cc:3:22: error: 'setprecision' was not declared in this scope
    3 |     cout << fixed << setprecision(10);
      |                      ^~~~~~~~~~~~
a.cc:1:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
  +++ |+#include <iomanip>
    1 | using namespace std;
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> a >> b;
      |     ^~~
a.cc:5:5: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:54: error: 'endl' was not declared in this scope
    6 |     cout << a/b << " " << a%b << " " <<(double)a/b<< endl;
      |                                                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cout' was not declared in this scope
    4 |     cout << fixed << setprecision(10);
      |     ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:4:13: error: 'fixed' was not declared in this scope
    4 |     cout << fixed << setprecision(10);
      |             ^~~~~
a.cc:1:1: note: 'std::fixed' is defined in header '<ios>'; this is probably fixable by adding '#include <ios>'
  +++ |+#include <ios>
    1 | using namespace std;
a.cc:4:22: error: 'setprecision' was not declared in this scope
    4 |     cout << fixed << setprecision(10);
      |                      ^~~~~~~~~~~~
a.cc:1:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
  +++ |+#include <iomanip>
    1 | using namespace std;
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>a>>b;
      |     ^~~
a.cc:6:5: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:46: error: 'endl' was not declared in this scope
    7 |     cout <<a/b<<" "<<a%b<<" "<<(double)a/b<< endl;
      |                                              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

// This file is a "Hello, world!" in C++ language by GCC for wandbox.
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{   int n;
    cin>>n;
    vector<int> a(n);
    for(int i=0;i<n;++i){
        cin>>a.at(i);
    }
    reverse(a.begin(),a.end());
 for(int i=0;i<n;++i){
 cout<<a(n)<<endl;
 }
}

// GCC reference:
//   https://gcc.gnu.org/

// C++ language references:
//   https://cppreference.com/
//   https://isocpp.org/
//   http://www.open-std.org/jtc1/sc22/wg21/

// Boost libraries references:
//   https://www.boost.org/doc/




Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'vector' was not declared in this scope
    8 |     vector<int> a(n);
      |     ^~~~~~
a.cc:4:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    3 | #include <cstdlib>
  +++ |+#include <vector>
    4 | using namespace std;
a.cc:8:12: error: expected primary-expression before 'int'
    8 |     vector<int> a(n);
      |            ^~~
a.cc:10:14: error: 'a' was not declared in this scope
   10 |         cin>>a.at(i);
      |              ^
a.cc:12:13: error: 'a' was not declared in this scope
   12 |     reverse(a.begin(),a.end());
      |             ^
a.cc:12:5: error: 'reverse' was not declared in this scope
   12 |     reverse(a.begin(),a.end());
      |     ^~~~~~~
Language: C++

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



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:4: 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:12:4: error: 'printf' was not declared in this scope
   12 |    printf("%d %d %f\n", d, r, f);
      |    ^~~~~~
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++

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



Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude <iostream>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:8:4: 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:12:4: error: 'printf' was not declared in this scope
   12 |    printf("%d %d %f\n", d, r, f);
      |    ^~~~~~
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>
using namespace std;
int main(){
    int a,b;
    cin >> a >> b;
    f1 = double a;
    f2 = double b;
    cout << a/b << " " << a%b << " " << f1/f2 << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'f1' was not declared in this scope
    6 |     f1 = double a;
      |     ^~
a.cc:6:10: error: expected primary-expression before 'double'
    6 |     f1 = double a;
      |          ^~~~~~
a.cc:7:5: error: 'f2' was not declared in this scope
    7 |     f2 = double b;
      |     ^~
a.cc:7:10: error: expected primary-expression before 'double'
    7 |     f2 = double b;
      |          ^~~~~~
Language: C++

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


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<cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:6:5: error: 'f1' was not declared in this scope
    6 |     f1 = double a;
      |     ^~
a.cc:6:10: error: expected primary-expression before 'double'
    6 |     f1 = double a;
      |          ^~~~~~
a.cc:7:5: error: 'f2' was not declared in this scope
    7 |     f2 = double b;
      |     ^~
a.cc:7:10: error: expected primary-expression before 'double'
    7 |     f2 = double b;
      |          ^~~~~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << a/b << " " << a%b << " " << f1/f2 << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:50: error: 'endl' was not declared in this scope
    8 |     cout << a/b << " " << a%b << " " << f1/f2 << endl;
      |                                                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<cstdio>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'f1' was not declared in this scope
    7 |     f1 = double a;
      |     ^~
a.cc:7:10: error: expected primary-expression before 'double'
    7 |     f1 = double a;
      |          ^~~~~~
a.cc:8:5: error: 'f2' was not declared in this scope
    8 |     f2 = double b;
      |     ^~
a.cc:8:10: error: expected primary-expression before 'double'
    8 |     f2 = double b;
      |          ^~~~~~
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'f1' was not declared in this scope
    7 |     f1 = double a;
      |     ^~
a.cc:7:10: error: expected primary-expression before 'double'
    7 |     f1 = double a;
      |          ^~~~~~
a.cc:8:5: error: 'f2' was not declared in this scope
    8 |     f2 = double b;
      |     ^~
a.cc:8:10: error: expected primary-expression before 'double'
    8 |     f2 = double b;
      |          ^~~~~~
a.cc:10:36: error: 'fa' was not declared in this scope; did you mean 'a'?
   10 |     printf("%d %d %f\n", a/b, a%b, fa/fb);
      |                                    ^~
      |                                    a
a.cc:10:39: error: 'fb' was not declared in this scope; did you mean 'b'?
   10 |     printf("%d %d %f\n", a/b, a%b, fa/fb);
      |                                       ^~
      |                                       b
Language: C++

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



Compiler output:
a.cc:9:12: warning: missing terminating " character
    9 |     printf("%d %d %f\n,a/b,a%b,fa/fb);
      |            ^
a.cc:9:12: error: missing terminating " character
    9 |     printf("%d %d %f\n,a/b,a%b,fa/fb);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:5: error: expected primary-expression before 'return'
   10 |     return 0;
      |     ^~~~~~
Language: C++

#include <iostream>
#include <iomanip> // 追加
using namespace std;
 
int main(){
   int a, b;
   cin >> a >> b;
   cout << a/b << " " 
   cout << a%b << " " << flush;
   // 小数点以下を6で固定
   cout << fixed << setprecision(6) 
   // double に変換してから割る
   cout << (double)a/(double)b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before 'cout'
    8 |    cout << a/b << " "
      |                      ^
      |                      ;
    9 |    cout << a%b << " " << flush;
      |    ~~~~               
a.cc:11:36: error: expected ';' before 'cout'
   11 |    cout << fixed << setprecision(6)
      |                                    ^
      |                                    ;
   12 |    // double に変換してから割る
   13 |    cout << (double)a/(double)b << endl;
      |    ~~~~
Language: C++

#include<iostream>
using namespace std;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected primary-expression before 'double'
   10 |     f = double a/b;
      |         ^~~~~~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:47: error: expected ';' before ')' token
    8 |     printf("%d %d %f\n", a/b, a%b, (float)a/b));
      |                                               ^
      |                                               ;
Language: C++

#include <cstdio>

using namespace std;

int main() {
    int a, b;
    scanf("%d,%d",&a,&b)
    printf("%d %d %.5lf\n", a / b, a % b, a / b)
}

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

#include <cstdio>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected ';' before 'printf'
    7 |     scanf("%d %d", &a, &b)
      |                           ^
      |                           ;
    8 |     printf("%d %d %.5lf", a / b, a % b, (double) a / b)
      |     ~~~~~~