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

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

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




Compiler output:
a.cc: In function 'int main()':
a.cc:11:43: error: expected ';' before 'return'
   11 |   printf("%d %d %.5f\n",(a/b),(a%b),(c/d))
      |                                           ^
      |                                           ;
   12 |   return 0;
      |   ~~~~~~
Language: C++

#include <iostream>
using namespace std;

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


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

a, b = map(int, input().split(' '))
j = int(a // b)
k = int(a % b)
l = float(a / b)
print(str(j) + (' ') + str(k) + (' ') + "{0:.8f}".format(l))


Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = map(int, input().split(' '))
      | ^
Language: C++

#include<iostream>
#include<cmath>
#include<cstdio>
#include<algorithm>

using namespace std;


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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: 'long long' specified with 'double'
   12 |   long long double a_double = (long long double) a;
      |        ^~~~
a.cc:12:37: error: 'long long' specified with 'double'
   12 |   long long double a_double = (long long double) a;
      |                                     ^~~~
a.cc:13:8: error: 'long long' specified with 'double'
   13 |   long long double b_double = (long long double) b;
      |        ^~~~
a.cc:13:37: error: 'long long' specified with 'double'
   13 |   long long double b_double = (long long double) b;
      |                                     ^~~~
Language: C++

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

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

}


Compiler output:
a.cc:9:29: error: extended character “ is not valid in an identifier
    9 |         cout << (int)a/b << “ ";
      |                             ^
a.cc:9:31: warning: missing terminating " character
    9 |         cout << (int)a/b << “ ";
      |                               ^
a.cc:9:31: error: missing terminating " character
    9 |         cout << (int)a/b << “ ";
      |                               ^~
a.cc:10:25: error: extended character “ is not valid in an identifier
   10 |         cout << a%b; << “ ";
      |                         ^
a.cc:10:27: warning: missing terminating " character
   10 |         cout << a%b; << “ ";
      |                           ^
a.cc:10:27: error: missing terminating " character
   10 |         cout << a%b; << “ ";
      |                           ^~
a.cc: In function 'int main()':
a.cc:9:29: error: '\U0000201c' was not declared in this scope
    9 |         cout << (int)a/b << “ ";
      |                             ^
a.cc:10:22: error: expected primary-expression before '<<' token
   10 |         cout << a%b; << “ ";
      |                      ^~
Language: C++

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

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

}


Compiler output:
a.cc:9:29: error: extended character “ is not valid in an identifier
    9 |         cout << (int)a/b << “ ";
      |                             ^
a.cc:9:31: warning: missing terminating " character
    9 |         cout << (int)a/b << “ ";
      |                               ^
a.cc:9:31: error: missing terminating " character
    9 |         cout << (int)a/b << “ ";
      |                               ^~
a.cc:10:24: error: extended character “ is not valid in an identifier
   10 |         cout << a%b << “ ";
      |                        ^
a.cc:10:26: warning: missing terminating " character
   10 |         cout << a%b << “ ";
      |                          ^
a.cc:10:26: error: missing terminating " character
   10 |         cout << a%b << “ ";
      |                          ^~
a.cc: In function 'int main()':
a.cc:9:29: error: '\U0000201c' was not declared in this scope
    9 |         cout << (int)a/b << “ ";
      |                             ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> a >> b;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << c<< " " << d << " " << e << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:41: error: 'endl' was not declared in this scope
    8 |     cout << c<< " " << d << " " << e << 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(){
   int ia,ib;
    cin >> ia >> ib;
    int c = ia/ib;
    int d = ia%ib ;
    double da,db;
    da = ia;
    db = ib;
    double e = da/db;
    
    cout << c<< " " << d << " " << e << endl;
    
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> ia >> ib;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << c<< " " << d << " " << e << endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:41: error: 'endl' was not declared in this scope
   12 |     cout << c<< " " << d << " " << e << 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++

sing namespace std;
int main(){
   int ia,ib;
    cin >> ia >> ib;
    double da,db;
    da = ia;
    db = ib;
   
    cout << ia/ib<< " " << ia%ib<< " " << da/db << endl;
    
    }


Compiler output:
a.cc:1:1: error: 'sing' does not name a type
    1 | sing namespace std;
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> ia >> ib;
      |     ^~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << ia/ib<< " " << ia%ib<< " " << da/db << endl;
      |     ^~~~
a.cc:9:52: error: 'endl' was not declared in this scope
    9 |     cout << ia/ib<< " " << ia%ib<< " " << da/db << endl;
      |                                                    ^~~~
Language: C++

using namespace std;
int main(){
   int ia,ib;
    cin >> ia >> ib;
    double da,db;
    da = ia;
    db = ib;
   
    cout << ia/ib<< " " << ia%ib<< " " << da/db << endl;
    
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> ia >> ib;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << ia/ib<< " " << ia%ib<< " " << da/db << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:52: error: 'endl' was not declared in this scope
    9 |     cout << ia/ib<< " " << ia%ib<< " " << da/db << 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++

#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<<' '<<' ';
cout<<fixed<<setprecision(5)<<f<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'setprecision' was not declared in this scope
    8 | 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 <bits/stdc++.h>
using namespace std;
int main(){
int a,b,d,r;cin>>a>>b;
d=a/b;
r=a%b;
cout<<d<<' '<<r<<' '<<setprecision(8)<<fixed<<double a/b<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:47: error: expected primary-expression before 'double'
    7 | cout<<d<<' '<<r<<' '<<setprecision(8)<<fixed<<double a/b<<endl;
      |                                               ^~~~~~
Language: C++

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


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

#include <bits/stdc++.h>
using namespace std;
int main(){
int d,r;double a,b;
cin>>a>>b;
d=a/b;
r=a%b;
f=a/b;
cout<<d<<' '<<r<<' '<<setprecision(8)<<fixed<<1.0*a/b<<endl;
}


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

#include <bits/stdc++.h>
using namespace std;
int main(){
int d,r,a,b;
cin>>a>>b;
d=a/b;
r=a%b;
f=a/b;
cout<<d<<' '<<r<<' '<<setprecision(8)<<fixed<<1.0*a/b<<endl;
}


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

int main(){
    double a,b;
    cin >> a >> b;
    double d,r,f;
    d = a/b;
    r = fmod(a,b);
    f = a/b;
    cout << fixed << setprecision(0) << d << “ “;
    cout << fixed << setprecision(0) << r << “ “;
    cout << fixed << setprecision(8) << f << endl;
    return 0;
}


Compiler output:
a.cc:13:46: error: extended character “ is not valid in an identifier
   13 |     cout << fixed << setprecision(0) << d << “ “;
      |                                              ^
a.cc:13:48: error: extended character “ is not valid in an identifier
   13 |     cout << fixed << setprecision(0) << d << “ “;
      |                                                ^
a.cc:14:46: error: extended character “ is not valid in an identifier
   14 |     cout << fixed << setprecision(0) << r << “ “;
      |                                              ^
a.cc:14:48: error: extended character “ is not valid in an identifier
   14 |     cout << fixed << setprecision(0) << r << “ “;
      |                                                ^
a.cc: In function 'int main()':
a.cc:13:46: error: '\U0000201c' was not declared in this scope
   13 |     cout << fixed << setprecision(0) << d << “ “;
      |                                              ^
Language: C++

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

int main(){
    double a,b;
    cin >> a >> b;
    double d,r,f;
    d = a/b;
    r = fmod(a,b);
    f = a/b;
    cout << fixed << setprecision(0) << d << ‘ ‘;
    cout << fixed << setprecision(0) << r << ‘ ‘;
    cout << fixed << setprecision(8) << f << endl;
    return 0;
}


Compiler output:
a.cc:13:46: error: extended character ‘ is not valid in an identifier
   13 |     cout << fixed << setprecision(0) << d << ‘ ‘;
      |                                              ^
a.cc:13:48: error: extended character ‘ is not valid in an identifier
   13 |     cout << fixed << setprecision(0) << d << ‘ ‘;
      |                                                ^
a.cc:14:46: error: extended character ‘ is not valid in an identifier
   14 |     cout << fixed << setprecision(0) << r << ‘ ‘;
      |                                              ^
a.cc:14:48: error: extended character ‘ is not valid in an identifier
   14 |     cout << fixed << setprecision(0) << r << ‘ ‘;
      |                                                ^
a.cc: In function 'int main()':
a.cc:13:46: error: '\U00002018' was not declared in this scope
   13 |     cout << fixed << setprecision(0) << d << ‘ ‘;
      |                                              ^
Language: C++

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

int main(){
    double a,b;
    cin >> a >> b;
    double d,r,f;
    d = a/b;
    r = fmod(a,b);
    f = a/b;
    cout << fixed << setprecision(0) << d;
    count << ‘ ‘;
    cout << fixed << setprecision(0) << r;
    count << ‘ ‘;
    cout << fixed << setprecision(8) << f << endl;
    return 0;
}


Compiler output:
a.cc:14:14: error: extended character ‘ is not valid in an identifier
   14 |     count << ‘ ‘;
      |              ^
a.cc:14:16: error: extended character ‘ is not valid in an identifier
   14 |     count << ‘ ‘;
      |                ^
a.cc:16:14: error: extended character ‘ is not valid in an identifier
   16 |     count << ‘ ‘;
      |              ^
a.cc:16:16: error: extended character ‘ is not valid in an identifier
   16 |     count << ‘ ‘;
      |                ^
a.cc: In function 'int main()':
a.cc:14:5: error: 'count' was not declared in this scope
   14 |     count << ‘ ‘;
      |     ^~~~~
a.cc:14:14: error: '\U00002018' was not declared in this scope
   14 |     count << ‘ ‘;
      |              ^
Language: C++

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

int main(){
    double a,b;
    cin >> a >> b;
    double d,r,f;
    d = a/b;
    r = fmod(a,b);
    f = a/b;
    cout << fixed << setprecision(0) << d;
    cout << ‘ ‘;
    cout << fixed << setprecision(0) << r;
    cout << ‘ ‘;
    cout << fixed << setprecision(8) << f << endl;
    return 0;
}


Compiler output:
a.cc:14:13: error: extended character ‘ is not valid in an identifier
   14 |     cout << ‘ ‘;
      |             ^
a.cc:14:15: error: extended character ‘ is not valid in an identifier
   14 |     cout << ‘ ‘;
      |               ^
a.cc:16:13: error: extended character ‘ is not valid in an identifier
   16 |     cout << ‘ ‘;
      |             ^
a.cc:16:15: error: extended character ‘ is not valid in an identifier
   16 |     cout << ‘ ‘;
      |               ^
a.cc: In function 'int main()':
a.cc:14:13: error: '\U00002018' was not declared in this scope
   14 |     cout << ‘ ‘;
      |             ^
Language: C++

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

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


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

#include<cstdio>

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

	int d, r;
	d = a / b;
	r = a % b;

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

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

	return 0;
}



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

#include <stdio.h>

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


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

#include<iostream>
using namespace std;
int main(){
    int x,y;
    cin>>x>>y;
    cout<<x/y<<" "<<x%y<<" "<<x.f/y.f<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:33: error: request for member 'f' in 'x', which is of non-class type 'int'
    6 |     cout<<x/y<<" "<<x%y<<" "<<x.f/y.f<<endl;
      |                                 ^
a.cc:6:37: error: request for member 'f' in 'y', which is of non-class type 'int'
    6 |     cout<<x/y<<" "<<x%y<<" "<<x.f/y.f<<endl;
      |                                     ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int x,y;
    float z;
    cin>>x>>y;
    z=(float)x/y
    cout<<x/y<<" "<<x%y<<" "<<z<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected ';' before 'cout'
    7 |     z=(float)x/y
      |                 ^
      |                 ;
    8 |     cout<<x/y<<" "<<x%y<<" "<<z<<endl;
      |     ~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int x,y;
    float z;
    cin>>x>>y;
    z=float(x/y)
    cout<<x/y<<" "<<x%y<<" "<<z<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected ';' before 'cout'
    7 |     z=float(x/y)
      |                 ^
      |                 ;
    8 |     cout<<x/y<<" "<<x%y<<" "<<z<<endl;
      |     ~~~~
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'cin'
    5 | cin >> a >> b;
      | ^~~
a.cc:6:13: error: 'b' was not declared in this scope
    6 | cout << a / b << " " << a % b << " " << a / b * 0.00000000001 << endl;
      |             ^
Language: C++

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

int main(){
    int a,b,c,d,e,f;
    cin>>a>>b;
    d = a/b;
    e = a%b;
    f = a/b;
    cout<<d<<endl;
    cout<<e<<endl;
    set::cout<<std::fixed;
    std::cout<<std::setprecision(6)<<f<<endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: qualified-id in declaration before '<<' token
   12 |     set::cout<<std::fixed;
      |              ^~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int a,b;
    cin >> a >> b;
   
    cout << a/b << " "<< a%b<< " ";
    printf("%8.1f\n",float(a)/float(b))
}


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

#include <iostream>
using namespace std;
int main(void){
    int a,b;
    cin >> a >> b;
    float c = float(a)/float(b);
    cout << a/b << " "<< a%b<< " ";
    printf("%8.1f\n",c)
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before '}' token
    8 |     printf("%8.1f\n",c)
      |                        ^
      |                        ;
    9 | }
      | ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ';' before '}' token
    9 |     printf("%8.1f\n",c)
      |                        ^
      |                        ;
   10 | }
      | ~
Language: C++

a, b = [int(n) for n in input().strip().split(" ")]
print("%d %d %f" % (a // b, a % b, a / b))



Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = [int(n) for n in input().strip().split(" ")]
      | ^
Language: C++

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

int main(){
  cout << fixed << cetprecisions(12)
  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;
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: 'cetprecisions' was not declared in this scope
    5 |   cout << fixed << cetprecisions(12)
      |                    ^~~~~~~~~~~~~
a.cc:8:8: error: 'a' was not declared in this scope
    8 |   cin>>a>>b;
      |        ^
a.cc:8:11: error: 'b' was not declared in this scope
    8 |   cin>>a>>b;
      |           ^
a.cc:9:3: error: 'd' was not declared in this scope
    9 |   d = a / b;
      |   ^
a.cc:10:3: error: 'r' was not declared in this scope
   10 |   r = a % b;
      |   ^
Language: C++

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

int main(){
  cout << fixed << cetprecision(12);
  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;
 return 0;
}


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

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

int main(){
 
cout << fixed << setprecision(12);

int a, b;

cout<< a \ b <<" ";
cout<< a % b <<" ";
cout<<(double)a \ b <<endl;

return 0;
}


Compiler output:
a.cc:10:10: error: stray '\' in program
   10 | cout<< a \ b <<" ";
      |          ^
a.cc:12:17: error: stray '\' in program
   12 | cout<<(double)a \ b <<endl;
      |                 ^
a.cc: In function 'int main()':
a.cc:10:9: error: expected ';' before 'b'
   10 | cout<< a \ b <<" ";
      |         ^  ~
      |         ;
a.cc:12:16: error: expected ';' before 'b'
   12 | cout<<(double)a \ b <<endl;
      |                ^  ~
      |                ;
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected unqualified-id before numeric constant
    8 |     double i = 1,0;
      |                  ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:37: error: expected primary-expression before '%' token
   16 |     cout << d << " " << r << " " << %.8lf/nf << endl;
      |                                     ^
a.cc:16:38: error: unable to find numeric literal operator 'operator""lf'
   16 |     cout << d << " " << r << " " << %.8lf/nf << endl;
      |                                      ^~~~
a.cc:16:43: error: 'nf' was not declared in this scope; did you mean 'f'?
   16 |     cout << d << " " << r << " " << %.8lf/nf << endl;
      |                                           ^~
      |                                           f
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:37: error: expected primary-expression before '%' token
   16 |     cout << d << " " << r << " " << %.8lf/n f << endl;
      |                                     ^
a.cc:16:38: error: unable to find numeric literal operator 'operator""lf'
   16 |     cout << d << " " << r << " " << %.8lf/n f << endl;
      |                                      ^~~~
a.cc:16:43: error: 'n' was not declared in this scope
   16 |     cout << d << " " << r << " " << %.8lf/n f << endl;
      |                                           ^
Language: C++

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

int main(){
    
    int a, b, d, r;
    double f;
    
    cout << fixed << setorecision(12);
    
    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:9:22: error: 'setorecision' was not declared in this scope
    9 |     cout << fixed << setorecision(12);
      |                      ^~~~~~~~~~~~
Language: C++

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

int main(){
	cout << fixed << setprecision(12);

	int a, b;
	cin>>a>>b;

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

	return 0;
}


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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: conflicting declaration 'float f'
    7 |         float f;
      |               ^
a.cc:6:24: note: previous declaration as 'int f'
    6 |         int a, b, d,r, f;
      |                        ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:62: error: expected ';' before 'f'
   13 |         cout << d << " " << r << " " <<fixed<<setprecision(5) f << endl;
      |                                                              ^~
      |                                                              ;
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:62: error: expected ';' before 'f'
   13 |         cout << d << " " << r << " " <<fixed<<setprecision(5) f << endl;
      |                                                              ^~
      |                                                              ;
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main (){
  cout << fixed << setprecision(12);

  int a, b;
  cin>>a>>b;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:13:30: error: expected '}' at end of input
   13 |   cout<< (double)a/ b <<endl;
      |                              ^
a.cc:5:12: note: to match this '{'
    5 | int main (){
      |            ^
Language: C++

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

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

 cout<<a / b<<" "<<a % b<<" "<<1.0 * a / 2;

return 0;
}


Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

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

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

return 0;
}


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

#include <iostream>
 int main() {
  int a, b;
   std::cin >> a >> b;
   int d, r;
   double f;
    d = a / b;
    r = a % b;
	f = a / b +;
	 //std::cout << d << " " << r << " " << f <<std::endl;
	printf("%.8lf\n", d, r, f);

 return 0;
 }


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

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

 return 0;
 }


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

#include <iostream>
 int main() {
  int a, b;
   std::cin >> a >> b;
   int d, r;
   double f;
    d = a / b;
    r = a % b;
	f = 1.00000 * a / b;
	 //std::cout << d << " " << r << " " << f <<std::endl;
 	printf("%d %d %.8lf\n", a/b, (double)a%b, 
a/b);

 return 0;
 }


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

#include <iostream>
 int main() {
  int a, b;
  std::cout << a/b <<std::endl;
  std::cout << a%b <<std::endl;
  double f = 1.00000 * a/b;
   std::cout << f <<std::endl;



 retune 0;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:2: error: 'retune' was not declared in this scope
   11 |  retune 0;
      |  ^~~~~~
Language: C++

#include <iostream>
 int main() {
  int a, b;
  std::cout << a/b <<std::endl;
  std::cout << a%b <<std::endl;
  double f;
  f = 1.00000 * a/b;
  std::cout << std::setprecision; << f <<std::endl;




 return 0;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'setprecision' is not a member of 'std'
    8 |   std::cout << std::setprecision; << f <<std::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 |  int main() {
a.cc:8:35: error: expected primary-expression before '<<' token
    8 |   std::cout << std::setprecision; << f <<std::endl;
      |                                   ^~
Language: C++

#include <iostream>
#include <iomanip>
 int main() {
  int a, b;
  std::cout << a/b <<std::endl;
  std::cout << a%b <<std::endl;
  double f;
  f = 1.00000 * a/b;
  std::cout << std::setprecision; << f <<std::endl;




 return 0;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:35: error: expected primary-expression before '<<' token
    9 |   std::cout << std::setprecision; << f <<std::endl;
      |                                   ^~
Language: C++

#include <iostream>
#include <iomanip>
 int main() {
  int a, b;
  std::cin >> a >> b; 
  std::cout << a/b <<std::endl;
  std::cout << a%b <<std::endl;
  double f;
  f = 1.00000 * a/b;
  std::cout << setprecision(5);
  std::cout << f <<std::endl;




 return 0;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: 'setprecision' was not declared in this scope; did you mean 'std::setprecision'?
   10 |   std::cout << setprecision(5);
      |                ^~~~~~~~~~~~
      |                std::setprecision
In file included from a.cc:2:
/usr/include/c++/14/iomanip:202:3: note: 'std::setprecision' declared here
  202 |   setprecision(int __n)
      |   ^~~~~~~~~~~~
Language: C++

#include <iostream>
#include <iomanip>

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


Compiler output:
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　return 0;
      | ^
a.cc: In function 'int main()':
a.cc:8:51: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    8 |   cout << setprecision(20) << int(a/b) << " " << a%b << " " << a /b << endl;
      |                                                  ~^~
      |                                                  | |
      |                                                  | double
      |                                                  double
a.cc:9:1: error: '\U00003000return' was not declared in this scope
    9 | 　return 0;
      | ^~~~~~~~
Language: C++

#include <iostream>
#include <iomanip>

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


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

//itp1_topic4_a

#include<bits/stdc++.h>

using namespace std;


    int main(){

	cout<<fixd<< setprisection(12);

	
	int a, b;

	cin>>a>>b;

	cout<< a / b << " " ;

	cout<< a % b << " " ;

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


	return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'fixd' was not declared in this scope
   10 |         cout<<fixd<< setprisection(12);
      |               ^~~~
a.cc:10:22: error: 'setprisection' was not declared in this scope
   10 |         cout<<fixd<< setprisection(12);
      |                      ^~~~~~~~~~~~~
Language: C++

//itp1_topic4_a

#include<bits/stdc++.h>

using namespace std;


    int main(){

	cout<<fixd<< setpresection(12);

	
	int a, b;

	cin>>a>>b;

	cout<< a / b << " " ;

	cout<< a % b << " " ;

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


	return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'fixd' was not declared in this scope
   10 |         cout<<fixd<< setpresection(12);
      |               ^~~~
a.cc:10:22: error: 'setpresection' was not declared in this scope
   10 |         cout<<fixd<< setpresection(12);
      |                      ^~~~~~~~~~~~~
Language: C++

//itp1_topic4_a

#include<bits/stdc++.h>

using namespace std;


    int main(){

	cout<<fixd<< setprecision(12);

	
	int a, b;

	cin>>a>>b;

	cout<< a / b << " " ;

	cout<< a % b << " " ;

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


	return 0;

}



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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:38: error: expected ';' before 'int'
    5 |     cout << fixed << setprecision(12)
      |                                      ^
      |                                      ;
    6 |     int a,b;
      |     ~~~                               
a.cc:7:10: error: 'a' was not declared in this scope
    7 |     cin>>a>>b;
      |          ^
a.cc:7:13: error: 'b' was not declared in this scope
    7 |     cin>>a>>b;
      |             ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:38: error: expected ';' before 'int'
    5 |     cout << fixed << setprecision(12)
      |                                      ^
      |                                      ;
    6 |     int a,b;
      |     ~~~                               
a.cc:7:10: error: 'a' was not declared in this scope
    7 |     cin>>a>>b;
      |          ^
a.cc:7:13: error: 'b' was not declared in this scope
    7 |     cin>>a>>b;
      |             ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:38: error: expected ';' before 'int'
    5 |     cout << fixed << setprecision(12)
      |                                      ^
      |                                      ;
    6 |     int a,b;
      |     ~~~                               
a.cc:7:10: error: 'a' was not declared in this scope
    7 |     cin>>a>>b;
      |          ^
a.cc:7:13: error: 'b' was not declared in this scope
    7 |     cin>>a>>b;
      |             ^
Language: C++

#include <stdio.h>
int main(void) {
	int a, b;
	scanf_s("%d %d\n", &a, &b);
	int d = a / b;
	int r = a%b;
	double f = a / b - d;

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

	return 0;
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'flout' was not declared in this scope; did you mean 'float'?
    7 |     cout<<a/b<<a%b<<(flout)a/b<<endl;
      |                      ^~~~~
      |                      float
Language: C++

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

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


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

#include<bits/stdc++.h>
using namespace std;
cout<<fixed<<setprecisioin(12);

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


Compiler output:
a.cc:3:1: error: 'cout' does not name a type
    3 | cout<<fixed<<setprecisioin(12);
      | ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
cout<<fixed<<setprecision(12);

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


Compiler output:
a.cc:3:1: error: 'cout' does not name a type
    3 | cout<<fixed<<setprecision(12);
      | ^~~~
Language: C++

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


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

// AOJ.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include<iostream>
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:4:10: fatal error: stdafx.h: No such file or directory
    4 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  cout << fixed << setprecision(12);

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

  return 0;
}



Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cout' was not declared in this scope
    5 |   cout << fixed << setprecision(12);
      |   ^~~~
a.cc:5:11: error: 'fixed' was not declared in this scope
    5 |   cout << fixed << setprecision(12);
      |           ^~~~~
a.cc:5:20: error: 'setprecision' was not declared in this scope
    5 |   cout << fixed << setprecision(12);
      |                    ^~~~~~~~~~~~
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin>>a>>b;
      |   ^~~
a.cc:9:48: error: 'endl' was not declared in this scope
    9 |   cout<<a / b<<" "<<a % b<<" "<<(double)a / b<<endl;
      |                                                ^~~~
Language: C++

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


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


Compiler output:
a.cc:8:22: error: stray '\' in program
    8 | printf(d," ",r," ",f,\n);
      |                      ^
a.cc: In function 'int main()':
a.cc:8:23: error: 'n' was not declared in this scope
    8 | printf(d," ",r," ",f,\n);
      |                       ^