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

#include <iostream>
#include <iomanip>
int main(){
int a,b;
std::cin>>a>>b;
std::cout<<a/b<<" "<<a%b<<" ";
std::cout<<setprecision(6)<<fixed<<a*1.0/b<<"\n";
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'setprecision' was not declared in this scope; did you mean 'std::setprecision'?
    7 | std::cout<<setprecision(6)<<fixed<<a*1.0/b<<"\n";
      |            ^~~~~~~~~~~~
      |            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)
      |   ^~~~~~~~~~~~
a.cc:7:29: error: 'fixed' was not declared in this scope; did you mean 'std::fixed'?
    7 | std::cout<<setprecision(6)<<fixed<<a*1.0/b<<"\n";
      |                             ^~~~~
      |                             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,
                 from a.cc:1:
/usr/include/c++/14/bits/ios_base.h:1104:3: note: 'std::fixed' declared here
 1104 |   fixed(ios_base& __base)
      |   ^~~~~
Language: C++

#include <iostream>
#include <iomanip>
int main(){
int a,b;
std::cin>>a>>b;
std::cout<<a/b<<" "<<a%b<<" ";
std::cout<<setprecision(6)<<a*1.0/b<<"\n";
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'setprecision' was not declared in this scope; did you mean 'std::setprecision'?
    7 | std::cout<<setprecision(6)<<a*1.0/b<<"\n";
      |            ^~~~~~~~~~~~
      |            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>
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 << ' ' << f << endl:

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:46: error: expected ';' before ':' token
   13 |     cout << d << ' ' << r << ' ' << f << endl:
      |                                              ^
      |                                              ;
Language: C++

#include <iostream>
int main(){
int a,b;
std:cin>>a>>b;
std::cout<<a/b<<" "<<a%b<<" "<<std::fixed<<float(a)/b<<end1;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | std:cin>>a>>b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:56: error: 'end1' was not declared in this scope
    5 | std::cout<<a/b<<" "<<a%b<<" "<<std::fixed<<float(a)/b<<end1;
      |                                                        ^~~~
Language: C++

#include <iostream>
int main(){
int a,b;
std:cin>>a>>b;
std::cout<<a/b<<" "<<a%b<<" "<<std::fixed<<float(a)/b<<"\n";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | std:cin>>a>>b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:69: error: expected '}' at end of input
    7 |     cout << a/b << " " << a%b << " " << (double)a/(double)b << endl;
      |                                                                     ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: C++

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

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

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

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

    return 0;
}

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

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

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

    cout << (int)a/b << (int)a%b << a/b << endl;

    return 0;
}

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

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

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

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

    return 0;
}

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

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

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

#include <stdio.h>
int main()
{
double r, l, s;
double pi = 3.141592653589;
scanf("%d", &r);
s = pi * r * r;
l = 2 * pi * r;
printf("%f %f", s, l);
return 0
}

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

#include <iostream>
using namespace	std;

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

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

a,b= map(int,raw_input().split())
d=a/b
r=a%b
f=float(a/b)
print %d,%d,%f,%(d,r,f)

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

#include <iostream>
#include <iomanip>

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

  std::cout << std::setprecision(5)

  std::cout << (int)( a / b ) << " " << a % b << " " << (double)a / (double)b << std::endl ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:36: error: expected ';' before 'std'
    9 |   std::cout << std::setprecision(5)
      |                                    ^
      |                                    ;
   10 | 
   11 |   std::cout << (int)( a / b ) << " " << a % b << " " << (double)a / (double)b << std::endl ;
      |   ~~~
Language: C++

#include <iostream>
#include <iomanip>

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

  std::cout << std::setprecision(5)

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

  return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:36: error: expected ';' before 'std'
    9 |   std::cout << std::setprecision(5)
      |                                    ^
      |                                    ;
   10 | 
   11 |   std::cout << (int)( a / b ) << " " << a % b << " " << (double)a / (double)b << std::endl ;
      |   ~~~
Language: C++

#include<iostream>
using namespace std;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:42: error: 'setprecision' is not a member of 'std'
    7 | cout << a/b << " " << a%b << " " << std::setprecision(5) << (double)a/b << endl;
      |                                          ^~~~~~~~~~~~
a.cc:2:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include<iostream>
  +++ |+#include <iomanip>
    2 | using namespace std;
Language: C++

#include<iostream>
using namespace std;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:50: error: 'setprecision' is not a member of 'std'
    7 | cout << a/b << " " << a%b << " " <<fixed << std::setprecision(5) << (double)a/b << endl;
      |                                                  ^~~~~~~~~~~~
a.cc:2:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include<iostream>
  +++ |+#include <iomanip>
    2 | using namespace std;
Language: C++

#include<iostream>
using namespace std;

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

}

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

#include <iostream>
using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: 'setprecision' was not declared in this scope
   12 |     cout<<fixed<<setprecision(2)<<da/db<<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,d,r;
 float f;

 cin >> a >> b;
 d=a/b;
 r=a%b;
 f=(float)a/b;

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

 return 0;
}

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

#include<iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
double c=(double)a,d=(double)b;
cout<<a/b<<' '<<a%b<<' '<<setprecision(6)<<c/d<<'\n';
return 0;



}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: 'setprecision' was not declared in this scope
    7 | cout<<a/b<<' '<<a%b<<' '<<setprecision(6)<<c/d<<'\n';
      |                           ^~~~~~~~~~~~
a.cc:2:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include<iostream>
  +++ |+#include <iomanip>
    2 | using namespace std;
Language: C++

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

#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define forn(i , n) for(int i=0;i<n;i++)



int main(){
    int m;
    int n;
    
    cout << m / n << " " << m % n << " " << setprecision(5) << fixed << static_cast<double>
 << (m / n) << endl;
    return 0;   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:2: error: expected '(' before '<<' token
   17 |  << (m / n) << endl;
      |  ^~
      |  (
a.cc:17:2: error: expected primary-expression before '<<' token
   17 |  << (m / n) << endl;
      |  ^~
a.cc:17:20: error: expected ')' before ';' token
   17 |  << (m / n) << endl;
      |                    ^
      |                    )
Language: C++

#include<stdio.h>

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

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

#include<stdio.h>

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

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

#include "cstdio"

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

scanf("%f %f",&a,&b);
d=a/b;
r=a%b;
f=a/b;
printf("%d %d %f\n",d,r,f);
}

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

#include "cstdio"

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

scanf("%f %f",&a,&b);
d=a/b;
r=(int)a%b;
f=a/b;
printf("%d %d %f\n",d,r,f);
}

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

include<iostream>
using namespace std;

int main(){
  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<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<a/b<<" "<<a%b<<" "<<(double)a/b<<endl;
      |   ^~~~
a.cc:7:42: error: 'endl' was not declared in this scope
    7 |   cout<<a/b<<" "<<a%b<<" "<<(double)a/b<<endl;
      |                                          ^~~~
Language: C++

#include<stdio.h>

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

	d = a / b;
	r = a%b;
	f = (float)a / b;
	printf("%d\n%d\n%lf\n",d,r,f);
}

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

int main()
{
	int a, b, d, r;
	double f;
	std::cin >> a >> b;

	d = a / b;
	r = a%b;
	f = 1.0*a / b;
	
	
	std::cout << d << " " << r << " " ;
	printf("%.5lf/n", f);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'cin' is not a member of 'std'
    5 |         std::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 | int main()
a.cc:12:14: error: 'cout' is not a member of 'std'
   12 |         std::cout << d << " " << r << " " ;
      |              ^~~~
a.cc:12:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:9: error: 'printf' was not declared in this scope
   13 |         printf("%.5lf/n", f);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
Language: C++

int main()
{
	int a, b, d, r;
	double f;
	std::cin >> a >> b;

	d = a / b;
	r = a%b;
	f = 1.0*a / b;
	
	
	std::cout << d << " " << r << " " ;
	printf("%.5f/n", f);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'cin' is not a member of 'std'
    5 |         std::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 | int main()
a.cc:12:14: error: 'cout' is not a member of 'std'
   12 |         std::cout << d << " " << r << " " ;
      |              ^~~~
a.cc:12:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:9: error: 'printf' was not declared in this scope
   13 |         printf("%.5f/n", f);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
Language: C++

#include <iostream>

int main()
{
	int a, b;
	std::cin >> a >> b;
	std::cout.setf(std::fixed, std::floatfield);
	std::cout << a/b << ' ' << a%b << ' ' << 1.0 * a/b << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:41: error: 'floatfield' is not a member of 'std'
    7 |         std::cout.setf(std::fixed, std::floatfield);
      |                                         ^~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

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

    return 0;
}

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

#include <iostream>
using namespace std;

it main()
{
    int a, b;

    cin >> a >> b;

    cout << a / b << endl;

    cout << a % b << endl;

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

    return 0:


}

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

#include <iostream>
using namespace std;

int main()
{
    int a, b;

    cin >> a >> b;

    cout << a / b << endl;

    cout << a % b << endl;

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

    return 0:


}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: expected ';' before ':' token
   16 |     return 0:
      |             ^
      |             ;
a.cc:16:13: error: expected primary-expression before ':' token
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int a, b;

    cin >> a >> b;

    cout << a / b << endl;

    cout << a % b << endl;

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

    return 0:

}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: expected ';' before ':' token
   16 |     return 0:
      |             ^
      |             ;
a.cc:16:13: error: expected primary-expression before ':' token
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int a, b;

    cin >> a >> b;

    cout << a / b << endl;

    cout << a % b << endl;

    cout << fixed << setprecision(5) (float)a / (float)b << endl;

    return 0;

}

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

#include <iostream>
using namespace std;

int main()
{
    int a, b;

    cin >> a >> b;

    cout << a / b << endl;

    cout << a % b << endl;

    cout << fixed << setprecision(5) << (float)a / (float)b << endl;

    return 0;

}

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

#include <iostream>

int main(void) {
	using namespace std;
	int a, b;
	cin >> a >> b;
	int d = int(a / b);
	int r = a % b;
	double f = (double)a / b;
	cout << d << ' ' << r << ' ' << fixed << setprecision(7) << f << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:50: error: 'setprecision' was not declared in this scope
   10 |         cout << d << ' ' << r << ' ' << fixed << setprecision(7) << 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 |
Language: C++

#include<stdio.h>
#define scanf scanf_s

int main() {
	int a, b;

	scanf("%d %d", &a, &b);
	printf("%d %d %f", a / b, a%b, (float)a / b);





	return 0;
}

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

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

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

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'A' was not declared in this scope
   10 |         f = A / B;
      |             ^
a.cc:10:17: error: 'B' was not declared in this scope
   10 |         f = A / B;
      |                 ^
Language: C++

#include <iostream>

int main(){
int a, b;
int d, r;
float f;
std::cin >> a >> b;
d = a / b;
r = a % b;
f = a / b;
std::cout << d << ' ' << r << ' ' << f << std::ednl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:48: error: 'ednl' is not a member of 'std'; did you mean 'endl'?
   11 | std::cout << d << ' ' << r << ' ' << f << std::ednl;
      |                                                ^~~~
      |                                                endl
Language: C++

#include <iostream>

int main(){
int a, b;
int d, r;
double f;
std::cin >> a >> b;
d = a / b;
r = a % b;
f = double(a) / double(b);
std::cout << d << ' ' << r << ' ' << setw(10) << f << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:38: error: 'setw' was not declared in this scope; did you mean 'getw'?
   11 | std::cout << d << ' ' << r << ' ' << setw(10) << f << std::endl;
      |                                      ^~~~
      |                                      getw
Language: C++

#include <iostream>

int main(){
int a, b;
int d, r;
double f;
std::cin >> a >> b;
d = a / b;
r = a % b;
f = double(a) / double(b);
std::cout << d << ' ' << r << ' ' << std::setw(10) << f << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:43: error: 'setw' is not a member of 'std'
   11 | std::cout << d << ' ' << r << ' ' << std::setw(10) << f << std::endl;
      |                                           ^~~~
a.cc:2:1: note: 'std::setw' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include <iostream>
  +++ |+#include <iomanip>
    2 |
Language: C++

#include <iostream>
#include <cstdlib>

int main(){
int a, b;
int d, r;
double f;
std::cin >> a >> b;
d = a / b;
r = a % b;
f = double(a) / double(b);
std::cout << d << ' ' << r << ' ' << setw(10) << f << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:38: error: 'setw' was not declared in this scope; did you mean 'getw'?
   12 | std::cout << d << ' ' << r << ' ' << setw(10) << f << std::endl;
      |                                      ^~~~
      |                                      getw
Language: C++

#include <iostream>
#include <cstdlib>

int main(){
int a, b;
int d, r;
double f;
std::cin >> a >> b;
d = a / b;
r = a % b;
f = double(a) / double(b);
std::cout << d << ' ' << r << ' ' << std::setw(10) << f << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:43: error: 'setw' is not a member of 'std'
   12 | std::cout << d << ' ' << r << ' ' << std::setw(10) << f << std::endl;
      |                                           ^~~~
a.cc:3:1: note: 'std::setw' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <cstdlib>
  +++ |+#include <iomanip>
    3 |
Language: C++

#include <iostream>
#include <cstdlib>

int main(){
int a, b;
int d, r;
float f;
std::cin >> a >> b;
d = a / b;
r = a % b;
f = float(a) / float(b);
std::cout << d << ' ' << r << ' ' << %.8lf << f << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:38: error: expected primary-expression before '%' token
   12 | std::cout << d << ' ' << r << ' ' << %.8lf << f << std::endl;
      |                                      ^
a.cc:12:39: error: unable to find numeric literal operator 'operator""lf'
   12 | std::cout << d << ' ' << r << ' ' << %.8lf << f << std::endl;
      |                                       ^~~~
Language: C++

#include <iostream>

int main(){
int a, b;
int d, r;
float f;
std::cin >> a >> b;
d = a / b;
r = a % b;
f = float(a) / float(b);
printf("%d %d %.8lf", d, r, f)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: expected ';' before '}' token
   11 | printf("%d %d %.8lf", d, r, f)
      |                               ^
      |                               ;
   12 | }
      | ~
Language: C++

#include <iostream>
#include <cstdio>

int main(){
int a, b;
int d, r;
float f;
std::cin >> a >> b;
d = a / b;
r = a % b;
f = float(a) / float(b);
printf("%d %d %.8lf", d, r, f)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:31: error: expected ';' before '}' token
   12 | printf("%d %d %.8lf", d, r, f)
      |                               ^
      |                               ;
   13 | }
      | ~
Language: C++

#include <iostream>
#include <cstdio>

int main(){
int a, b;
int d, r;
long float f;
std::cin >> a >> b;
d = a / b;
r = a % b;
f = long float(a) / long float(b);
printf("%d %d %.8lf", d, r, f);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'long' specified with 'float'
    7 | long float f;
      | ^~~~
a.cc:11:5: error: expected primary-expression before 'long'
   11 | f = long float(a) / long float(b);
      |     ^~~~
Language: C++

#include <iostream>
#include <cstdio>

int main(){
int a, b;
int d, r;
long double f;
std::cin >> a >> b;
d = a / b;
r = a % b;
f = long double(a) / long double(b);
printf("%d %d %.8lf\n", d, r, f);
}

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

#include <iostream>

using namespace std;

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

 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:8: 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() {
 float a, b, f;
 int d, r;

 cin >> a >> b;

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

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

 return 0;
}

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

#include <iostream>

using namespace std;

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

 cin >> a >> b;

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

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

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: expected ';' before 'f'
   12 |  r = (int)a % (int)b
      |                     ^
      |                     ;
   13 |  f = a / b;
      |  ~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int x,y;
	scanf_s("%d%d", &x, &y);
	printf("%d %d %.5f", x/y, x%y, (float)x/(float)y);
}

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

#include <iostream>
using namespace std;

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

  cout << (int)a/(int)b << " " << (int)a%(int)b << " " << setprecision(5) << a/b << endl;
  return 0;
}


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

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

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

  cout << (int)a/(int)b << " " << (int)a%(int)b << " " << setprecision(5) << a/b << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:59: error: 'setprecision' was not declared in this scope
    9 |   cout << (int)a/(int)b << " " << (int)a%(int)b << " " << setprecision(5) << a/b << endl;
      |                                                           ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <limits>
  +++ |+#include <iomanip>
    3 | using namespace std;
Language: C++

#include <iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;
int main()
{
  int a,b;

  cin >> a >> b>>c;

  cout << (a/b) << " "<<(a%b)<<" "<<(float)(a/b)<<endl;
  //cout << endl;
}



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

#include<iostream>
using namespace std;
int main()
{
  int a,b;

  cin >> a >> b;
  float error = 100000;
  cout << (a/b) << " "<<(a%b)<<" "<< setprecision(5) << ((float)a/(float)b)<<endl;
  //cout << endl;
}



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

#inlcude<iostream>
using namespace std;

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         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 | #inlcude<iostream>
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout<<(a/b)<<" "<<(a%b)<<" "<<f<<endl;
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:42: error: 'endl' was not declared in this scope
   10 |         cout<<(a/b)<<" "<<(a%b)<<" "<<f<<endl;
      |                                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude<iostream>
Language: C++

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     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 | #inlcude<iostream>
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<(a/b)<<" "<<(a%b)<<" "<<f<<endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:38: error: 'endl' was not declared in this scope
   10 |     cout<<(a/b)<<" "<<(a%b)<<" "<<f<<endl;
      |                                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude<iostream>
Language: C++

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


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

#include <iostream>
#include <algorithm>
         
using namespace std;
         
int main() {
long a,b;
cin >> a >> b;
long d = a/b;
long r = a%b;

cout << d << " " << r << " " << d << ".";
for(int i=0; i<5; ++i) {
int k=-1;
while(r < b){r *= 10; ++k;}
int rr = r/b;
int r%=b;
for(int j=0; j<k; ++j)
cout << 0;
cout r;
}
cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:6: error: expected initializer before '%=' token
   17 | int r%=b;
      |      ^~
a.cc:20:5: error: expected ';' before 'r'
   20 | cout r;
      |     ^~
      |     ;
Language: C++

#include <iostream>
#include <algorithm>
         
using namespace std;
         
int main() {
long a,b;
cin >> a >> b;
long d = a/b;
long r = a%b;

cout << d << " " << r << " " << d << ".";
for(int i=0; i<5; ++i) {
int k=-1;
while(r < b){r *= 10; ++k;}
long rr = r/b;
long r%=b;
for(int j=0; j<k; ++j)
cout << 0;
cout r;
}
cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: expected initializer before '%=' token
   17 | long r%=b;
      |       ^~
a.cc:20:5: error: expected ';' before 'r'
   20 | cout r;
      |     ^~
      |     ;
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*d;
    f=a/(b+0.0);
    cout<<d<<" "<<r<<" "<< setprecision (5) f<<endl;
    return 0;
}


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

#include <iostream>
using namespace std;

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

	cin >> a >> b;
	d = (int)a / (int)b;
	r = a % b;
	f = a / b;
	cout << d << r << f << endl;
	return 0;

}
int ma


Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: invalid operands of types 'float' and 'float' to binary 'operator%'
   12 |         r = a % b;
      |             ~ ^ ~
      |             |   |
      |             |   float
      |             float
a.cc: At global scope:
a.cc:18:7: error: expected initializer at end of input
   18 | int ma
      |       ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int d, r;
	float f;
	float a, b;

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

}


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

#include<stdio.h>
using namespace std;
#define N 10000

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: 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;
    double d_a, d_b;

    cin >> a >> b;
    d_a = a, d_b = b;
    cout << a/b << " " << a%b << " " <<fixed<<setprecision(6)<< d_a/d_b << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:47: error: 'setprecision' was not declared in this scope
   10 |     cout << a/b << " " << a%b << " " <<fixed<<setprecision(6)<< d_a/d_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;
    double d_a, d_b;

    cin >> a >> b;
    d_a = a, d_b = b;
    cout << a/b << " " << a%b << " ";
    cout <<fixed<<setprecision(6)<< d_a/d_b << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: 'setprecision' was not declared in this scope
   11 |     cout <<fixed<<setprecision(6)<< d_a/d_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<stdio.h>
 
int main(){
  int x, h, m, s;
doubke d;

  scanf("%d %d", &x,&h);
m=x/h;
s=x-m*h;
d=x/h
 prntf("%d %d %.8lf"m,s,d);
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'doubke' was not declared in this scope; did you mean 'double'?
    5 | doubke d;
      | ^~~~~~
      | double
a.cc:10:1: error: 'd' was not declared in this scope
   10 | d=x/h
      | ^
Language: C++

#include<stdio.h>
#include<math.h>

 
int main(){
  int x, h, m, s;
doubke d;

  scanf("%d %d", &x,&h);
m=x/h;
s=x-m*h;
d=x/h
 prntf("%d %d %.8lf"m,s,d);
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'doubke' was not declared in this scope; did you mean 'double'?
    7 | doubke d;
      | ^~~~~~
      | double
a.cc:12:1: error: 'd' was not declared in this scope
   12 | d=x/h
      | ^
Language: C++

#include<stdio.h>
#include<math.h>

 
int main(){
  int x, h, m, s;
doubke d;

  scanf("%d %d", &x,&h);
m=x/h;
s=x-m*h;
d=x/h;
 prntf("%d %d %.8lf"m,s,d);
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'doubke' was not declared in this scope; did you mean 'double'?
    7 | doubke d;
      | ^~~~~~
      | double
a.cc:12:1: error: 'd' was not declared in this scope
   12 | d=x/h;
      | ^
a.cc:13:8: error: unable to find string literal operator 'operator""m' with 'const char [12]', 'long unsigned int' arguments
   13 |  prntf("%d %d %.8lf"m,s,d);
      |        ^~~~~~~~~~~~~~
a.cc:13:2: error: 'prntf' was not declared in this scope; did you mean 'printf'?
   13 |  prntf("%d %d %.8lf"m,s,d);
      |  ^~~~~
      |  printf
Language: C++

#include<stdio.h>
#include<math.h>

 
int main(){
  int x, h, m, s;
doubke d;

  scanf("%d %d", &x,&h);
m=x/h;
s=x-m*h;
d=x/h;
 prntf("%d %d %.8lf",m,s,d);
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'doubke' was not declared in this scope; did you mean 'double'?
    7 | doubke d;
      | ^~~~~~
      | double
a.cc:12:1: error: 'd' was not declared in this scope
   12 | d=x/h;
      | ^
a.cc:13:2: error: 'prntf' was not declared in this scope; did you mean 'printf'?
   13 |  prntf("%d %d %.8lf",m,s,d);
      |  ^~~~~
      |  printf
Language: C++

#include<stdio.h>
#include<math.h>

 
int main(){
  int x, h, m, s;
double d;

  scanf("%d %d", &x,&h);
m=x/h;
s=x-m*h;
d=x/h;
 prntf("%d %d %.8lf",m,s,d);
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:2: error: 'prntf' was not declared in this scope; did you mean 'printf'?
   13 |  prntf("%d %d %.8lf",m,s,d);
      |  ^~~~~
      |  printf
Language: C++

#include<stdio.h>
#include<math.h>

 
int main(){
  int x, h, m, s;
double d;

  scanf("%d %d", &x,&h);
m=x/h;
s=x-m*h;
d=x/h;
 prntf("%d %d %.8lf\n",m,s,d);
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:2: error: 'prntf' was not declared in this scope; did you mean 'printf'?
   13 |  prntf("%d %d %.8lf\n",m,s,d);
      |  ^~~~~
      |  printf
Language: C++

#include<stdio.h>
#include<math.h>

 
int main(){
  int x, h, m, s;
double d;

  scanf("%d %d", &x,&h);
m=x/h;
s=x-m*h;
d=double(x/h);
 prntf("%d %d %.8lf\n",m,s,d);
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:2: error: 'prntf' was not declared in this scope; did you mean 'printf'?
   13 |  prntf("%d %d %.8lf\n",m,s,d);
      |  ^~~~~
      |  printf
Language: C++

#include<stdio.h>
#include<math.h>

 
int main(){
  int x, h, m, s;
double d;

  scanf("%d %d", &x,&h);
m=x/h;
s=x-m*h;
d=(double)x/h;
 prntf("%d %d %.8lf\n",m,s,d);
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:2: error: 'prntf' was not declared in this scope; did you mean 'printf'?
   13 |  prntf("%d %d %.8lf\n",m,s,d);
      |  ^~~~~
      |  printf
Language: C++

#include<stdio.h>
#include<math.h>

 
int main(){
  int x, h, m, s;
double d;

  scanf("%d %d", &x,&h);
m=x/h;
s=x-m*h;
d=static_cast<double>(x)/static_cast<double>(h);
 prntf("%d %d %.8lf\n",m,s,d);
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:2: error: 'prntf' was not declared in this scope; did you mean 'printf'?
   13 |  prntf("%d %d %.8lf\n",m,s,d);
      |  ^~~~~
      |  printf
Language: C++

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


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

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


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

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

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

cout<<a/b<<" "<<a%b<<" "<<a/b<<endl;
}


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

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

int main(){
  double a,b,c,count;
std:cin>>a>>b;
c=int(a/b);
count=a/b;
cout<<c<<" "<<a%b<<" "<<count<<endl;
}


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

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

void main(){
  double a,b,c,count;
std:cin>>a>>b;
c=int(a/b);
count=a/b;
cout<<c<<" "<<a%b<<" "<<count<<endl;
}


Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:16: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   10 | cout<<c<<" "<<a%b<<" "<<count<<endl;
      |               ~^~
      |               | |
      |               | double
      |               double
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 = (double)a%b;

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

return 0;
}


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

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

return 0;
}


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