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

a,b = gets.split.map(&:to_i)
puts '%d %d %.10f'%[a/b, a%b, 1.0*a/b]

Compiler output:
a.cc:2:6: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
    2 | puts '%d %d %.10f'%[a/b, a%b, 1.0*a/b]
      |      ^~~~~~~~~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a,b = gets.split.map(&:to_i)
      | ^
Language: C++

#include<stdio.h>

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

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

Compiler output:
a.cc:8:2: error: stray '#' in program
    8 | }#include<stdio.h>
      |  ^
a.cc:8:3: error: 'include' does not name a type
    8 | }#include<stdio.h>
      |   ^~~~~~~
Language: C++

#include<stdio.h>

int main(){
	int a,b;
	scanf("%d%d",&a,&b);
	printf("%d %d %1f\n",a/b,a%b,(double)a/b);

	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected '}' at end of input
    8 |         return 0;
      |                  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int x,y,d,r;
	double a,b,f,p,q,z;
	floor(z);
	while(1){
	cin>>a>>b;
	x=a;
	y=b;
	p=a;
	q=b;
	z=p/q;
	f=z;
	cout<<x/y<<" "<<x%y<<" "<<f<<endl;
	}
	
	return 0;
}

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

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

return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected '}' at end of input
   13 | return 0;
      |          ^
a.cc:5:1: note: to match this '{'
    5 | {int a,b;
      | ^
Language: C++

#include<iostream>
#include<iomanip>
using namespace std;
float main()
{int a,b;
cin>>a>>b;
float f=a*1.0000/b;
int d=a/b;
int r=a%b;
	cout<<d<<" "<<r<<" ";
	cout<<fixed<<setprecision(5)<<f<<endl;

return 0;

}

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

#include<iostream>
#include<iomanip>
using namespace std;
float main()
{int a,b;
cin>>a>>b;
float f=a*1.00000/b;
int d=a/b;
int r=a%b;
	cout<<d<<" "<<r<<" "<<fixed<<setprecision(5)<<f<<endl;

return 0;

}

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

#include<iostream>
using namespace std;

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

cin >>a >>b;

d = (a / b);
r = (a % b);
f = 1.0 * (a / b);

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

return 0;
}

return 0;
}

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

#include <stdio.h>

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

    printf("%d %d %.5lf", a/b,a%b,(double)a/(double)b));

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:55: error: expected ';' before ')' token
    8 |     printf("%d %d %.5lf", a/b,a%b,(double)a/(double)b));
      |                                                       ^
      |                                                       ;
Language: C++

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

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main(void){    int a, b;    int waru, amari;    double syousuu;         scanf("%d %d", &a, &b);         waru = a / b;    amari = a % b;    syousuu = (double)a / b;         printf("%d %d %.5f", waru, amari, syousuu);         return (0);}
      |                    ^~~
/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<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:35: error: expected primary-expression before 'double'
    7 | cout << a/b << " " << a%b << " " (double)a/b << endl;
      |                                   ^~~~~~
a.cc:7:41: error: expression cannot be used as a function
    7 | cout << a/b << " " << a%b << " " (double)a/b << endl;
      |                                         ^
Language: C++

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

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

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

#include <iostream>
using namespace std;

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

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

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

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

a,b=gets.split.map &:to_i;puts [a/b,a%b,1.0*a/b]*" "

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b=gets.split.map &:to_i;puts [a/b,a%b,1.0*a/b]*" "
      | ^
a.cc:1:27: error: 'puts' does not name a type
    1 | a,b=gets.split.map &:to_i;puts [a/b,a%b,1.0*a/b]*" "
      |                           ^~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before 'if'
   10 |         f = a/b
      |                ^
      |                ;
   11 |         if(a>b)cout << d << " " << r << " " << f << 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
	cout << d << " " << r << " " << f << endl;
    
    return 0;
}

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

#include<iostream>
#include<iomanip>

using namespace std;

int main(void){
	int x = 0;
	int y = 0;
	cin >> x >>y;
	double dx = (double)x;
	double dy = (double)y; 
	double xDivideY = dx/dy; 
	cout << (x / y) <<" ";
	cout << (x % y) << " ";
	cout << setprecision(20);
	cout << setiosflags(ios::fixed)
	cout << (double)xDivideY << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:40: error: expected ';' before 'cout'
   16 |         cout << setiosflags(ios::fixed)
      |                                        ^
      |                                        ;
   17 |         cout << (double)xDivideY << endl;
      |         ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> a >> b;
      |         ^~~
a.cc:4:9: error: 'cout' was not declared in this scope
    4 |         cout << (int)(a / b) << " " << a % b << " " << a / (double)b << endl;
      |         ^~~~
a.cc:4:73: error: 'endl' was not declared in this scope
    4 |         cout << (int)(a / b) << " " << a % b << " " << a / (double)b << endl;
      |                                                                         ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |         cout << (int)(a / b) << " " << a % b << " " << a / (double)b << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:73: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |         cout << (int)(a / b) << " " << a % b << " " << a / (double)b << endl;
      |                                                                         ^~~~
      |                                                                         std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |         cout << (int)(a / b) << " " << a % b << " " << (double)a / (double)b << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:81: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |         cout << (int)(a / b) << " " << a % b << " " << (double)a / (double)b << endl;
      |                                                                                 ^~~~
      |                                                                                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
int main(){
	int 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:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         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:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         cout << a / b << " " << a % b << " " << f << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:54: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         cout << a / b << " " << a % b << " " << f << endl;
      |                                                      ^~~~
      |                                                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'a' was not declared in this scope
    7 |         d=a/b;
      |           ^
a.cc:7:13: error: 'b' was not declared in this scope
    7 |         d=a/b;
      |             ^
a.cc:9:54: error: expected ';' before 'cout'
    9 |         f=static_cast<float>(x)/static_cast<float>(y)
      |                                                      ^
      |                                                      ;
   10 |         cout<<d<<" "<<r<<" "<<f
      |         ~~~~
Language: C++

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:38: error: 'seprecision' was not declared in this scope
   11 |         cout<<d<<" "<<r<<" "<<fixed<<seprecision(10)<<f<<endl;
      |                                      ^~~~~~~~~~~
Language: C++

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

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

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

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

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

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

int x ;
int y ;
double f1, f2;

cin>>x>>y;
f1 = x;
f2 = y;

cout<<x/y<<" "<<x%y<<" "<<f1/f2<<"\n";

return 0;

}

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin>>x>>y;
      | ^~~
a.cc:6:1: error: 'f1' does not name a type
    6 | f1 = x;
      | ^~
a.cc:7:1: error: 'f2' does not name a type
    7 | f2 = y;
      | ^~
a.cc:9:1: error: 'cout' does not name a type
    9 | cout<<x/y<<" "<<x%y<<" "<<f1/f2<<"\n";
      | ^~~~
a.cc:11:1: error: expected unqualified-id before 'return'
   11 | return 0;
      | ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

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

int main()
{
  int a, b;
  cin >> a >> b;
  
  printf("%d %d %.8f", a / b, a % b, 1. 0 * a / b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:40: error: expected ')' before numeric constant
   11 |   printf("%d %d %.8f", a / b, a % b, 1. 0 * a / b);
      |         ~                              ^~
      |                                        )
Language: C++

#include<iostream>
using namespace std;

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

int d =a / b;

int r = a%b;

froat f =a/b;

cout<<d<<" "<<r<<" "<<f<<emdl

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: 'froat' was not declared in this scope; did you mean 'float'?
   12 | froat f =a/b;
      | ^~~~~
      | float
a.cc:14:23: error: 'f' was not declared in this scope
   14 | cout<<d<<" "<<r<<" "<<f<<emdl
      |                       ^
a.cc:14:26: error: 'emdl' was not declared in this scope
   14 | cout<<d<<" "<<r<<" "<<f<<emdl
      |                          ^~~~
Language: C++

#include<iostream>
using namespace std;

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

int d =a / b;

int r = a%b;

float f =a/b;

cout<<d<<" "<<r<<" "<<f<<emdl

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: 'emdl' was not declared in this scope
   14 | cout<<d<<" "<<r<<" "<<f<<emdl
      |                          ^~~~
Language: C++

#include<iostream>
using namespace std;

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

int d =a / b;

int r = a%b;

float f =a/b;

cout<<d<<" "<<r<<" "<<f<<emdl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: 'emdl' was not declared in this scope
   14 | cout<<d<<" "<<r<<" "<<f<<emdl;
      |                          ^~~~
Language: C++

#include<iostream>
using namespace std;

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

int d =a / b;

int r = a%b;

float f =float a/float b;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected primary-expression before 'float'
   12 | float f =float a/float b;
      |          ^~~~~
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/b;

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

}

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

#include<iostream>
using namespace std;

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

int d =a / b;

int r = a%b;

float f =1.000000a/b;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: unable to find numeric literal operator 'operator""a'
   12 | float f =1.000000a/b;
      |          ^~~~~~~~~
Language: C++

#include<iostream>
using namespace std;

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

int d =a / b;

int r = a%b;

a= float a;
b=float b;
float f =a/b;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:4: error: expected primary-expression before 'float'
   12 | a= float a;
      |    ^~~~~
a.cc:13:3: error: expected primary-expression before 'float'
   13 | b=float b;
      |   ^~~~~
Language: C++

#include<iostream>
using namespace std;

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

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

}

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

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

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

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

# -*- encoding: utf-8 -*-
require 'scanf'
n = gets.scanf "%d %d"
a = n[0]/n[1]
b = n[0]%n[1]
c = n[0].to_f/n[1].to_f

print "#{a} #{b} #{c}"

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- encoding: utf-8 -*-
      |   ^
a.cc:2:9: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    2 | require 'scanf'
      |         ^~~~~~~
a.cc:2:1: error: 'require' does not name a type
    2 | require 'scanf'
      | ^~~~~~~
Language: C++

# -*- encoding: utf-8 -*-
require 'scanf'
n = gets.scanf "%d %d"
a = n[0]/n[1]
b = n[0]%n[1]
c = n[0]/n[1].to_f

print "#{a} #{b} #{c}"

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- encoding: utf-8 -*-
      |   ^
a.cc:2:9: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    2 | require 'scanf'
      |         ^~~~~~~
a.cc:2:1: error: 'require' does not name a type
    2 | require 'scanf'
      | ^~~~~~~
Language: C++

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

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

#include <iostream>
using namespace std;

int main()
{
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:8:69: error: expected '}' at end of input
    8 | cout << a *b << " " << a /b << " " << (double)a / (double)b << endl;
      |                                                                     ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include <iostream>
int main()
{
int n,m;
cout << n/m << enbl;
cout << n%m << endl;
cout << (double)(n)/(double)(m) << endl;
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 | cout << n/m << enbl;
      | ^~~~
      | std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:16: error: 'enbl' was not declared in this scope
    5 | cout << n/m << enbl;
      |                ^~~~
a.cc:6:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 | cout << n%m << endl;
      |                ^~~~
      |                std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
int n,m;
cout << n/m << enbl;
cout << n%m << endl;
cout << (double)(n)/(double)(m) << endl;
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'enbl' was not declared in this scope
    6 | cout << n/m << enbl;
      |                ^~~~
Language: C++

#include <iostream>
int main()
{
  cin >> x >> y;
  cout.self(ios::fixed);
  cout << x/y << " " << x%d << " " << (double)x/y <<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> x >> y;
      |   ^~~
      |   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:4:10: error: 'x' was not declared in this scope
    4 |   cin >> x >> y;
      |          ^
a.cc:4:15: error: 'y' was not declared in this scope
    4 |   cin >> x >> y;
      |               ^
a.cc:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout.self(ios::fixed);
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:13: error: 'ios' has not been declared
    5 |   cout.self(ios::fixed);
      |             ^~~
a.cc:6:27: error: 'd' was not declared in this scope
    6 |   cout << x/y << " " << x%d << " " << (double)x/y <<endl;
      |                           ^
a.cc:6:53: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << x/y << " " << x%d << " " << (double)x/y <<endl;
      |                                                     ^~~~
      |                                                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
  cin >> x >> y;
  cout.self(ios::fixed);
  cout << x/y << " " << x%d << " " << (double)x/y <<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'x' was not declared in this scope
    6 |   cin >> x >> y;
      |          ^
a.cc:6:15: error: 'y' was not declared in this scope
    6 |   cin >> x >> y;
      |               ^
a.cc:7:8: error: 'std::ostream' {aka 'class std::basic_ostream<char>'} has no member named 'self'; did you mean 'setf'?
    7 |   cout.self(ios::fixed);
      |        ^~~~
      |        setf
a.cc:8:27: error: 'd' was not declared in this scope
    8 |   cout << x/y << " " << x%d << " " << (double)x/y <<endl;
      |                           ^
Language: C++

#include <cstdio>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
#include <functional>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:28:19: error: invalid conversion from 'int' to 'std::ios_base::fmtflags' [-fpermissive]
   28 |         cout.setf(4);
      |                   ^
      |                   |
      |                   int
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:2:
/usr/include/c++/14/bits/ios_base.h:709:19: note:   initializing argument 1 of 'std::ios_base::fmtflags std::ios_base::setf(fmtflags)'
  709 |     setf(fmtflags __fmtfl)
      |          ~~~~~~~~~^~~~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: found ':' in nested-name-specifier, expected '::'
    6 |         double a,b:
      |                   ^
      |                   ::
a.cc:6:18: error: 'b' has not been declared
    6 |         double a,b:
      |                  ^
a.cc:7:13: error: qualified-id in declaration before '>>' token
    7 |         cin >> a >> b;
      |             ^~
a.cc:9:25: error: 'b' was not declared in this scope
    9 |         cout << floor(a/b) << " " << a%b << " " << a/b << endl;
      |                         ^
a.cc:9:17: error: 'floor' was not declared in this scope
    9 |         cout << floor(a/b) << " " << a%b << " " << a/b << endl;
      |                 ^~~~~
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

#include <iostream>
#include <cmath>
using namespace std;
int main(void){
    int x,y;
    std::cin >> x >> y;
    std::cout << setiosflags(ios::scientific) << std::setprecision(6);
    std::cout << floor(x/y)<< ' ' << x%y << ' ' << static_cast<double>(x)/y << std::endl;
    return 0;
}

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

#include<iostream>
using namespace std;

int main(void){
	int a,b,c,out1,out2;
	float out3;
	cin >>a >>b;
    out1=a/b;
	cout <<out1;
	c=a-b*out1;
	out2=c;
	cout<<out2;
	out3=a/b;
	cout <<out3<<\n;
	
	return 0;
}

Compiler output:
a.cc:14:22: error: stray '\' in program
   14 |         cout <<out3<<\n;
      |                      ^
a.cc: In function 'int main()':
a.cc:14:23: error: 'n' was not declared in this scope
   14 |         cout <<out3<<\n;
      |                       ^
Language: C++

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

int main(){

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

	cin >> a >> b ;

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

	/*cout << d << " " 
		 << r << " "
		 << f << endl;*/
	printf("%d %d %.6lf\n",d,r,f);

	return 0;
	
}

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

import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner (System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int d = a / b;
		int r = a % b;
		double f = (double)a / (double)b;
		System.out.println(d + " " + r + " " + f);

	}

}

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

#include <iostream>
using namespace std;

int main() {
	int a,b;

cin >> a >> b;

cout << a/b << a%b ;

double f1,f2;

f1=a;

f2=b;

cout<< fi/f2;



	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:8: error: 'fi' was not declared in this scope; did you mean 'f2'?
   17 | cout<< fi/f2;
      |        ^~
      |        f2
Language: C++

#include <iostream>
using namespace std;

int main() {
	int a,b;

cin >> a >> b;

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

double f1,f2;

f1=a;

f2=b;

printf(f1/f2 \n);



	return 0;
}

Compiler output:
a.cc:17:14: error: stray '\' in program
   17 | printf(f1/f2 \n);
      |              ^
a.cc: In function 'int main()':
a.cc:17:13: error: expected ')' before 'n'
   17 | printf(f1/f2 \n);
      |       ~     ^ ~
      |             )
a.cc:17:10: error: cannot convert 'double' to 'const char*'
   17 | printf(f1/f2 \n);
      |        ~~^~~
      |          |
      |          double
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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	int a,b;

cin >> a >> b;

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

double f1,f2;

f1=a;

f2=b;

printf(f1/f2);



	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: cannot convert 'double' to 'const char*'
   17 | printf(f1/f2);
      |        ~~^~~
      |          |
      |          double
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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <iostream>
using namespace std;

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

f= (double) a/b ;

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



cout<< f1/f2 << endl;



	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: expected unqualified-id before ';' token
    5 |         int a,b,;
      |                 ^
a.cc:15:8: error: 'f1' was not declared in this scope; did you mean 'f'?
   15 | cout<< f1/f2 << endl;
      |        ^~
      |        f
a.cc:15:11: error: 'f2' was not declared in this scope; did you mean 'f'?
   15 | cout<< f1/f2 << endl;
      |           ^~
      |           f
Language: C++

#include <iostream>
using namespace std;

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

f= (double) a/b ;

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







	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: expected unqualified-id before ';' token
    5 |         int a,b,;
      |                 ^
Language: C++

#include <iostream>
using namespace std;

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

f= (double) a/b ;

cout << a/b << " " << a%b<<" "<<fixed<<setprecision(5)<<f<<endl ;







	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:40: error: 'setprecision' was not declared in this scope
   11 | cout << a/b << " " << a%b<<" "<<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 <stdio.h>

int main(int argc, const char * argv[])
{
    int a, d, r;
    float f;
    
    scanf("%d %d",&a, &b);
    d = a / b;
    r = a % b;
    f = a / b;
    
    printf("%d %d %f\n",d, r, f);
    
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:8:24: error: 'b' was not declared in this scope
    8 |     scanf("%d %d",&a, &b);
      |                        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: expected primary-expression before ']' token
    7 | ]
      | ^
a.cc:7:2: error: expected '}' at end of input
    7 | ]
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
int main(){
  int a,b;
  std::cout << a/b <<" "<< a%b <<" "<< (float)a/(float)b <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:60: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    4 |   std::cout << a/b <<" "<< a%b <<" "<< (float)a/(float)b <<endl;
      |                                                            ^~~~
      |                                                            std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class SimpleCalculator{
    public static void main(String[] args) throws IOException{
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String[] calc = new String[3];
        ArrayList<Integer> ans = new ArrayList<Integer>();
        int x,y;

        while(true){
            calc = in.readLine().split(" ");
            if(calc[1].equals("?")){
                break;
            }
            else{
                x = Integer.parseInt(calc[0]);
                y = Integer.parseInt(calc[2]);

                if     (calc[1].equals("+")){
                    System.out.println(x+y);
                }
                else if(calc[1].equals("-")){
                    System.out.println(x-y);
                }
                else if(calc[1].equals("*")){
                    System.out.println(x*y);
                }
                else if(calc[1].equals("/")){
                    System.out.println(x/y);
                }
            }
        }
    }
}

Compiler output:
Main.java:6: error: class SimpleCalculator is public, should be declared in a file named SimpleCalculator.java
public class SimpleCalculator{
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		while( true ){
			String temp;
			int a = 0, b = 0;
			int ans = 0;
			String op;
			try{
				temp = scan.next();
				a = Integer.parseInt(temp);
				temp = scan.next();
				op = temp;
				temp = scan.next()
				b = Integer.parseInt(temp);
				if( op.equals("+") ){
					ans = a + b;
				}else if( op.equals("-") ){
					ans = a - b;
				}else if( op.equals("*") ){
					ans = a * b;
				}else if( op.equals("/") ){
					ans = a / b;
				}else if( op.equals("?") ){
					return;
				}else{
					continue;
				}
				System.out.println(ans);
			}catch( IllegalStateException e ){
				System.out.println(e);
			}
		}
		return;
	}
}

Compiler output:
Main.java:16: error: ';' expected
				temp = scan.next()
				                  ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		while( true ){
			String temp;
			int a = 0, b = 0;
			int ans = 0;
			String op;
			try{
				temp = scan.next();
				a = Integer.parseInt(temp);
				temp = scan.next();
				op = temp;
				temp = scan.next();
				b = Integer.parseInt(temp);
				if( op.equals("+") ){
					ans = a + b;
				}else if( op.equals("-") ){
					ans = a - b;
				}else if( op.equals("*") ){
					ans = a * b;
				}else if( op.equals("/") ){
					ans = a / b;
				}else if( op.equals("?") ){
					return;
				}else{
					continue;
				}
				System.out.println(ans);
			}catch( IllegalStateException e ){
				System.out.println(e);
			}
		}
		return;
	}
}

Compiler output:
Main.java:36: error: unreachable statement
		return;
		^
1 error
Language: Java

import java.io.*;

public class lesson11 {
    public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
	
	
	for (int i = 0 ;; i++) {
	    String[] s = br.readLine().split(" ");
	    int a = Integer.parseInt(s[0]);
	    char[] op = s[1].toCharArray();
	    int b = Integer.parseInt(s[2]);
	
	    if (op[0] == '?') {
	        break;
	    } else if (op[0] == '+') {
	        System.out.println(a+b);
	    } else if (op[0] == '-') {
	        System.out.println(a-b);
	    } else if (op[0] == '*') {
	        System.out.println(a*b);
	    } else {
	        System.out.println(a/b);
	    }
	}
    }
}

Compiler output:
Main.java:3: error: class lesson11 is public, should be declared in a file named lesson11.java
public class lesson11 {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		
		while(sc.hasNext()){
			int a = sc.nextInt();
			String op = sc.next();
			int b = sc.nextInt();
			int ans = 0;
			if(op.equals("+")) {
				ans = a + b;
			} else if(op.equals("-")) {
				ans = a - b;
			} else if(op.equals("*")) {
				ans = a * b;
			} else if(op.equals("/")) {
				ans = a / b;
			} else if(op.equals("?")) {
				break;
			}
			System.out.println(ans);
		}
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
1 error
Language: Java

import java.util.Scanner;



public class Main{

  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(1){

      int a = sc.nextInt();
      char op = sc.nextchar();

      int b = sc.nextInt();

      if(op=='+'){
         int answer = a+b;
         System.out.println(answer);
      }else if(op=='-'){
         int answer = a-b;
         System.out.println(answer);
      }else if(op=='/'){
         int answer = a/b;
         System.out.println(answer);
      }else if(op=='*'){
         int answer = a*b;
         System.out.println(answer);
      }else{
        break;
      }

    } 

  }

}

Compiler output:
Main.java:9: error: incompatible types: int cannot be converted to boolean
    while(1){
          ^
Main.java:12: error: cannot find symbol
      char op = sc.nextchar();
                  ^
  symbol:   method nextchar()
  location: variable sc of type Scanner
2 errors
Language: Java

import java.io.IOException;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		
		while(1){
			int a = sc.nextInt();
			String op = sc.next();
			int b = sc.nextInt();
			int x = 0;
			if(op.equals("+")) {
				x = a + b;
			} else if(op.equals("-")) {
				x = a - b;
			} else if(op.equals("*")) {
				x = a * b;
			} else if(op.equals("/")) {
				x = a / b;
			} else if(op.equals("?")) {
				break;
			}
			System.out.println(x);
		}
	}
}

Compiler output:
Main.java:8: error: incompatible types: int cannot be converted to boolean
		while(1){
		      ^
1 error
Language: Java

import java.util.Scanner

public class Main {
	public static void main(String [] args){
		Scanner sc = new Scanner(System.in);
		while(true){
			int a = sc.nextInt();
			char op = sc.next();
			int b = sc.nextInt();
			if ('?' == op)
				break;
			switch(op){
				
				case '+':
				System.out.println(a + b);
				break;
				case '-':
				System.out.ptintln(a - b);
				break;
				case '*':
				System.out.println(a * b);
				break;
				case '/':
				System.out.println(a / b);
				break;
			}
		}
	}
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String [] args){
		Scanner sc = new Scanner(System.in);
		while(true){
			int a = sc.nextInt();
			char op = sc.next();
			int b = sc.nextInt();
			if ('?' == op)
				break;
			switch(op){
				
				case '+':
				System.out.println(a + b);
				break;
				case '-':
				System.out.ptintln(a - b);
				break;
				case '*':
				System.out.println(a * b);
				break;
				case '/':
				System.out.println(a / b);
				break;
			}
		}
	}
}

Compiler output:
Main.java:8: error: incompatible types: String cannot be converted to char
			char op = sc.next();
			                 ^
Main.java:18: error: cannot find symbol
				System.out.ptintln(a - b);
				          ^
  symbol:   method ptintln(int)
  location: variable out of type PrintStream
2 errors
Language: Java

import java.util.Scanner;
import java.io.*;
 
public class Main{
    public static void main(String args[]){
        Scanner sc=new Scanner(System.in);
       
        while(true)){
            int a=sc.nextInt();
            b=sc.next();
            if(b.equals("?"))break;
            int c=sc.nextInt();
            if(b.equals("+"))System.out.println(a+c);
            if(b.equals("-"))System.out.println(a-c);
            if(b.equals("*"))System.out.println(,a*c);
            if(b.equals("/"))System.out.println(a/c);
        }
    }
}

Compiler output:
Main.java:8: error: illegal start of expression
        while(true)){
                   ^
Main.java:15: error: illegal start of expression
            if(b.equals("*"))System.out.println(,a*c);
                                                ^
2 errors