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

#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
int r,p=3.14159265358979;
printf("%f %f",r*r*p,*r*p);
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: invalid type argument of unary '*' (have 'int')
    6 | printf("%f %f",r*r*p,*r*p);
      |                      ^~
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
int r,p=3.141592653589;
printf("%f %f",r*r*p,*r*p);
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: invalid type argument of unary '*' (have 'int')
    6 | printf("%f %f",r*r*p,*r*p);
      |                      ^~
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
double r,p=3.141592653589;
cin >> r;
printf("%f %f",r*r*p,*r*p);
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: invalid type argument of unary '*' (have 'double')
    7 | printf("%f %f",r*r*p,*r*p);
      |                      ^~
Language: C++

using System;
using System.Collections.Generic;
class Program
{
	static void Main(string[] args)
	{
		double r = double.Parse(Console.ReadLine());
		double a = r * r * 3.141592653589;
		double b = r * 2 * 3.141592653589;
		Console.WriteLine(a.ToString("F8") + " " + b.ToString("F8"));
	}
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:5:26: error: 'string' has not been declared
    5 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:5:35: error: expected ',' or '...' before 'args'
    5 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:12:2: error: expected ';' after class definition
   12 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:7:28: error: expected primary-expression before 'double'
    7 |                 double r = double.Parse(Console.ReadLine());
      |                            ^~~~~~
a.cc:10:17: error: 'Console' was not declared in this scope
   10 |                 Console.WriteLine(a.ToString("F8") + " " + b.ToString("F8"));
      |                 ^~~~~~~
a.cc:10:37: error: request for member 'ToString' in 'a', which is of non-class type 'double'
   10 |                 Console.WriteLine(a.ToString("F8") + " " + b.ToString("F8"));
      |                                     ^~~~~~~~
a.cc:10:62: error: request for member 'ToString' in 'b', which is of non-class type 'double'
   10 |                 Console.WriteLine(a.ToString("F8") + " " + b.ToString("F8"));
      |                                                              ^~~~~~~~
Language: C++

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

int main(void){
 double x, y, z;
 scnaf("%f", x);
 y=2*x*M_PI;
 z=x*x*M_PI;
 printf("%f %f", z, y);
 return 0;
}


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

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

int main(void){
 double x, y, z;
 scnaf("%f", x);
 y=2*x*M_PI;
 z=x*x*M_PI;
 printf("%f %f", y, z);
 return 0;
}


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

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

int main(void){
 double x, y, z;
 scnaf("%lf", x);
 y=2*x*M_PI;
 z=x*x*M_PI;
 printf("%f %f", y, z);
 return 0;
}


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

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

int main(void){
 double x, y, z;
 scnaf("%lf", &x);
 y=2*x*M_PI;
 z=x*x*M_PI;
 printf("%f %f", y, z);
 return 0;
}


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

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

int main(void){
 double x, y, z;
 scnaf("%lf", &x);
 y=2*x*M_PI;
 z=x*x*M_PI;
 printf("%f %f", z, y);
 return 0;
}


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

#include <stdio.h>

int main(void){
 double x, y, z;
 scnaf("%lf", &x);
 y=2*x*3.141592653589;
 z=x*x*3.141592653589;
 printf("%f %f", z, y);
 return 0;
}


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

#include <stdio.h>

int main(void){
 double x;
 scnaf("%lf", &x);
 printf("%f %f", x*x*3.141592653589, 2*x*3.141592653589);
 return 0;
}


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

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

int main(void){
 double x;
 scnaf("%lf", &x);
 printf("%f %f", x*x*3.141592653589, 2*x*3.141592653589);
 return 0;
}


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

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

int main(void){
 double x;
 scnaf("%lf", &x);
 printf("%f %f\n", x*x*3.141592653589, 2*x*3.141592653589);
 return 0;
}


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

#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
 double r;
  cin>>r;
printf("%8f",(r+r)*3.141592653589);
cout<<"　";
printf("%8f",r*r*3.141592653589);
        cout<<endl;
         return 0;
｝


Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: '\U0000ff5d' was not declared in this scope
   12 | ｝
      | ^~
a.cc:12:3: error: expected '}' at end of input
   12 | ｝
      |   ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

from math import pi

r = int(input())

# 面積
circle_area = r**r * pi

# 円周
circumference = 2.0 * r * pi

print("{0:.6f}, {0:.6f}".format(circle_area, circumference))


Compiler output:
a.cc:5:3: error: invalid preprocessing directive #\U00009762\U00007a4d
    5 | # 面積
      |   ^~~~
a.cc:8:3: error: invalid preprocessing directive #\U00005186\U00005468
    8 | # 円周
      |   ^~~~
a.cc:1:1: error: 'from' does not name a type
    1 | from math import pi
      | ^~~~
Language: C++

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex>
#include<functional>
#include <sstream>
#include <math.h>

using namespace std;

int main(){
    double r
    cin >> r ;
    double nagasa;
    double area;
    nagasa = M_PI * r  * 2 ;
    area = M_PI * r * r;
    printf("%f %f\n", nagasa, area);
    return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:5: error: expected initializer before 'cin'
   26 |     cin >> r ;
      |     ^~~
a.cc:29:21: error: 'r' was not declared in this scope
   29 |     nagasa = M_PI * r  * 2 ;
      |                     ^
Language: C++

#include <iostream>
#include <stdio>
using namespace std;
int main() {
    double p = 3.14159265;
    double a;
    cin >> a;
    double b = a*a*p;
    double c = 2*a*p;
    printf("%lf % lf \n", b, c);
    return 0;
}


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

#include <stdio.h> 
int main(){
    int a;
    double const PI=3.14159265;
    scanf("%d",&a);
    printf("%.7f %.7f",pi*double(r)*double(r),pi*2*double(r));
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: 'pi' was not declared in this scope; did you mean 'PI'?
    6 |     printf("%.7f %.7f",pi*double(r)*double(r),pi*2*double(r));
      |                        ^~
      |                        PI
a.cc:6:34: error: 'r' was not declared in this scope
    6 |     printf("%.7f %.7f",pi*double(r)*double(r),pi*2*double(r));
      |                                  ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:34: error: 'r' was not declared in this scope
    6 |     printf("%.7f %.7f",pi*double(r)*double(r),pi*2*double(r));
      |                                  ^
Language: C++

#include <iostream> #include <vector> using namespace std;
 int main(){ double r,s,l; cin >> r;
 s = r*r*3.141592653589; 
l = r*2*3.141592653589; 
cout << fixed << s << " " << fixed << l << endl;
 return 0; } 





Compiler output:
a.cc:1:21: warning: extra tokens at end of #include directive
    1 | #include <iostream> #include <vector> using namespace std;
      |                     ^
a.cc: In function 'int main()':
a.cc:2:28: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    2 |  int main(){ double r,s,l; cin >> r;
      |                            ^~~
      |                            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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 | cout << fixed << s << " " << fixed << l << 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:9: error: 'fixed' was not declared in this scope; did you mean 'std::fixed'?
    5 | cout << fixed << s << " " << fixed << l << endl;
      |         ^~~~~
      |         std::fixed
In file included from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/ios_base.h:1104:3: note: 'std::fixed' declared here
 1104 |   fixed(ios_base& __base)
      |   ^~~~~
a.cc:5:44: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 | cout << fixed << s << " " << fixed << l << endl;
      |                                            ^~~~
      |                                            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <vector> using namespace std;
 int main(){ double r,s,l; cin >> r;
 s = r*r*3.141592653589; 
l = r*2*3.141592653589; 
cout << fixed << s << " " << fixed << l << endl;
 return 0; } 





Compiler output:
a.cc:2:19: warning: extra tokens at end of #include directive
    2 | #include <vector> using namespace std;
      |                   ^~~~~
a.cc: In function 'int main()':
a.cc:3:28: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |  int main(){ double r,s,l; cin >> r;
      |                            ^~~
      |                            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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | cout << fixed << s << " " << fixed << l << 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:9: error: 'fixed' was not declared in this scope; did you mean 'std::fixed'?
    6 | cout << fixed << s << " " << fixed << l << endl;
      |         ^~~~~
      |         std::fixed
In file included from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/ios_base.h:1104:3: note: 'std::fixed' declared here
 1104 |   fixed(ios_base& __base)
      |   ^~~~~
a.cc:6:44: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 | cout << fixed << s << " " << fixed << l << endl;
      |                                            ^~~~
      |                                            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<math.h>
int main(){
int r;
cin >> r;
cout << r * r * M_PI << " " << 2 * r * M_PI << endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin >> r;
      | ^~~
      | 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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | cout << r * r * M_PI << " " << 2 * r * M_PI << 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:48: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 | cout << r * r * M_PI << " " << 2 * r * M_PI << 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>
#include<stdio.h>
int main(){
int r,p=3.141592653589;
cin >> r;
printf("%lf %lf\n",r*r*p,2*r*p);
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin >> r;
      | ^~~
      | 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>
#include<stdio.h>
int main(){
double r,p=3.141592653589;
cin >> r;
printf("%lf %lf\n",r*r*p,2*r*p);
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin >> r;
      | ^~~
      | 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>
#include<stdio.h>
int main(){
double r,p=3.141592653589;
cin >> r;
printf("%f %f\n",r*r*p,2*r*p);
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin >> r;
      | ^~~
      | 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>
#include<cstdio>
int main(){
double r,p=3.141592653589;
cin >> r;
printf("%f %f\n",r*r*p,2*r*p);
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin >> r;
      | ^~~
      | 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>
#include<cstdio>
int main(){
double r,p=3.141592653589;
cin >> r;
printf("%lf %lf\n",r*r*p,2*r*p);
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin >> r;
      | ^~~
      | 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>
#include<cstdio>
uisng namespace std;
int main(){
double r,p=3.141592653589;
cin >> r;
printf("%lf %lf\n",r*r*p,2*r*p);
return 0;
}


Compiler output:
a.cc:3:1: error: 'uisng' does not name a type
    3 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> r;
      | ^~~
      | 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>
#define _USE_MATH_DEFINES
#include <math.h>


using namespace std;

int main() {

	double r;
	cin >> r;
	printf("%f %f", M_PI*r + r, 2 * M_I* r);
	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:41: error: 'M_I' was not declared in this scope; did you mean 'M_E'?
   12 |         printf("%f %f", M_PI*r + r, 2 * M_I* r);
      |                                         ^~~
      |                                         M_E
Language: C++

#include <iostream>
#include <iomanip>
using namespace std;
int main() {
	double a;
	cin >> a ;
	cout << fixed << setprecision(6) << 3.141592653589793*r*r << ' ' << 2*r*3.141592653589793 << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:63: error: 'r' was not declared in this scope
    7 |         cout << fixed << setprecision(6) << 3.141592653589793*r*r << ' ' << 2*r*3.141592653589793 << endl;
      |                                                               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
    double r;
    cin >> r;
    cout << setprecision(15) << r * r * PI << ' ' << 2 * r * PI << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:41: error: 'PI' was not declared in this scope
    8 |     cout << setprecision(15) << r * r * PI << ' ' << 2 * r * PI << endl;
      |                                         ^~
Language: C++

#include <iostream>
 
using namespace std;
 
int main()
{
    double r;
 
    cin >> r;
 
    cout << setprecision(15) << r * r * PI << ' ' << 2 * r * PI << endl;
 
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'setprecision' was not declared in this scope
   11 |     cout << setprecision(15) << r * r * PI << ' ' << 2 * r * PI << 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 | 
a.cc:11:41: error: 'PI' was not declared in this scope
   11 |     cout << setprecision(15) << r * r * PI << ' ' << 2 * r * PI << endl;
      |                                         ^~
Language: C++

#include<iostream>
#define PI 3.141592653589
using namespace std;

int main(){
	double x;
	cin >> x;
	
	double z = x*PI
	printf("%.6f %.6f\n",z*x,z*2.0);
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ',' or ';' before 'printf'
   10 |         printf("%.6f %.6f\n",z*x,z*2.0);
      |         ^~~~~~
Language: C++

#include<iostream>
#include<math>
using namespace std;
int main(){
int r;
cin >> r;
cout << r*r*6*asin(0.5) << " " << 2*r*6*asin(0.5) << endl;
}

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

#include <iostream>
#include <cstdio>
#include <math.h>
using namespace std;

int main(){
    double r;
    cin >> r;
    printf("%f %f\n", M_PI*r*, 2*M_PI*r);
    //cout << M_PI * r * r << ' ' << 2 * M_PI * r << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: expected primary-expression before ',' token
    9 |     printf("%f %f\n", M_PI*r*, 2*M_PI*r);
      |                              ^
Language: C++

#include <iostream>
#include <cstdio>
#include <math.h>
using namespace std;

int main(){
    double r;
    cin >> r;
    printf("%f %f\n", M_PI*r*, 2.0*M_PI*r);
    //cout << M_PI * r * r << ' ' << 2 * M_PI * r << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: expected primary-expression before ',' token
    9 |     printf("%f %f\n", M_PI*r*, 2.0*M_PI*r);
      |                              ^
Language: C++

#include<iostream>
#include<iomanip>
#define PI 3.141592653589
int main(){
double r;
std::cin>>r;
std::cout<<setprecision(10)<<r*r*PI<<" "<<2.0f*r*PI<<std::endl;
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(10)<<r*r*PI<<" "<<2.0f*r*PI<<std::endl;
      |            ^~~~~~~~~~~~
      |            std::setprecision
In file included from a.cc:2:
/usr/include/c++/14/iomanip:202:3: note: 'std::setprecision' declared here
  202 |   setprecision(int __n)
      |   ^~~~~~~~~~~~
Language: C++

#include<iostream>
#include<iomanip>
#define PI 3.141592653589f
int main(){
double r;
std::cin>>r;
std::cout<<setprecision(10)<<r*r*PI<<" "<<2.0*r*PI<<std::endl;



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(10)<<r*r*PI<<" "<<2.0*r*PI<<std::endl;
      |            ^~~~~~~~~~~~
      |            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 <cstdio>

const double PI = 3.141592653589;
int main(){
	double r, S, L;
	scanf("%lf", &r);
	S = PI * r * r;
	L = 2 * PI * r;
	pringf("%.6lf %.6lf\n", S, L);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'pringf' was not declared in this scope; did you mean 'printf'?
    9 |         pringf("%.6lf %.6lf\n", S, L);
      |         ^~~~~~
      |         printf
Language: C++

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

const double PI = 3.141592653589;
int main(){
	double r, S, L;
	scanf("%.6lf", &r);
	S = (PI) * r * r;
	L = 2 * (PI) * r;
	pringf("%.6lf %.6lf\n", S, L);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'pringf' was not declared in this scope; did you mean 'printf'?
   11 |         pringf("%.6lf %.6lf\n", S, L);
      |         ^~~~~~
      |         printf
Language: C++

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

const double PI = 3.141592653589;
int main(){
	double r, S, L;
	scanf("%.6f", &r);
	S = PI * r * r;
	L = 2 * PI * r;
	pringf("%.6f %.6f\n", S, L);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'pringf' was not declared in this scope; did you mean 'printf'?
   11 |         pringf("%.6f %.6f\n", S, L);
      |         ^~~~~~
      |         printf
Language: C++

#include<iostream>
#include<math.h>

int main(){
double r,s,l ;
cin >> r ;

if(r>=0){
s = M_PI*r*r ;
l = 2*M_PI*r ;

cout << s << " " << l << "\n" ;

return 0 ;

}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> r ;
      | ^~~
      | 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:12:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 | cout << s << " " << l << "\n" ;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

double r,are,circ;
int main() {
cin >> r;
are = pi * r * r;
circ = 2 * pi * r;
cout << ficed << setprecision(6) << are << " " << circ << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'pi' was not declared in this scope
    9 | are = pi * r * r;
      |       ^~
a.cc:11:9: error: 'ficed' was not declared in this scope
   11 | cout << ficed << setprecision(6) << are << " " << circ << endl;
      |         ^~~~~
Language: C++

#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
 
double r,are,circ;
int main() {
cin >> r;
are = M_PI * r * r;
circ = 2 * pi * r;
cout << fixed << setprecision(6) << are << " " << circ << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'pi' was not declared in this scope
   10 | circ = 2 * pi * r;
      |            ^~
Language: C++

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

int main(void){
  double r,menseki,enshu;
  cin >> r;
  enshu=3.141592653589*2*r;
  menseki=3.141592653589*r*r;
  printf("%.6f %.6f\n",enshu,menseki);
  return 0;

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

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

int main(){
  double r,menseki,enshu;
  cin >> r;
  enshu=3.141592653589*2*r;
  menseki=3.141592653589*r*r;
  printf("%f %f\n",enshu,menseki);
  return 0;

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

#include<stdio.h>

int main(void)
{
    double r;
    scanf(" %lf", &r);
    s = r * r * 3.141592653589;
    a = 2 * a * 3.141592653589;
    pritntf("%f %f\n", s, a);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 's' was not declared in this scope
    7 |     s = r * r * 3.141592653589;
      |     ^
a.cc:8:5: error: 'a' was not declared in this scope
    8 |     a = 2 * a * 3.141592653589;
      |     ^
a.cc:9:5: error: 'pritntf' was not declared in this scope; did you mean 'printf'?
    9 |     pritntf("%f %f\n", s, a);
      |     ^~~~~~~
      |     printf
Language: C++

#include<stdio.h>

int main(void)
{
    double r, s, a;
    scanf(" %lf", &r);
    s = r * r * 3.141592653589;
    a = 2 * a * 3.141592653589;
    pritntf("%f %f\n", s, a);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'pritntf' was not declared in this scope; did you mean 'printf'?
    9 |     pritntf("%f %f\n", s, a);
      |     ^~~~~~~
      |     printf
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
public class Simple_Calculator {
	public static void main(String[] args) throws IOException {
		BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
		Scanner sc=new Scanner(System.in);
		String op;
		int a;
		int b;
		do {
		a=sc.nextInt();
		op=br.readLine();
		b=sc.nextInt();
		if(op.equals("+")) {
			System.out.println(a+b);
		}else if(op.equals("-")) {
			System.out.println(a-b);
		}else if(op.equals("*")) {
			System.out.println(a*b);
		}else if(op.equals("/")){
			System.out.println(a/b);
		}
		}while(!(op.equals("?"))||(a==0)&&(b==0));
	}
}


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

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(true){
            int a=sc.nextInt();
            String op=sc.next();
            int b=sc.nextInt();
            if(op.equals("?"))break;
            System.out.println(Calc(a,op,b));
        }
    }

    public static int Calc(int a,String op,int b){
        if(op.equals("+"))return a+b;
        if(op.equals("-"))return a-b;
        if(op.equals("*"))return a*b;
        if(op.equals("/"))return a/b;
        else return -1;
    }
}



Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

class Main
  while true
    str = gets.split(" ")
    a = str[0].to_i
    op = str[1]
    b = str[2].to_i
    case op
    when "+"
      puts a + b
      break
    when "-"
      puts a - b
      break
    when "*"
      puts a * b
      break
    when "/"
      puts a / b
      break
    else
      break
    end
  end
end


Compiler output:
Main.java:1: error: '{' expected
class Main
          ^
1 error
Language: Java

class Main
  while true
    str = gets.split(" ")
    a = str[0].to_i
    op = str[1]
    b = str[2].to_i
    case op
    when "+"
      puts a + b
    when "-"
      puts a - b
    when "*"
      puts a * b
    when "/"
      puts a / b
    else
      break
    end
  end
end


Compiler output:
Main.java:1: error: '{' expected
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);
		try {
			int a = sc.nextInt();
			String op = sc.next();
			int b = sc.nextInt();
			if (op.equals("+")) {
				System.out.println(a + b);
			} else if (op.equals("-")) {
				System.out.println(a - b);
			} else if (op.equals("*")) {
				System.out.println(a * b);
			} else if (op.equals("/")) {
				System.out.println(a / b);
			} else if (op.equals("?")) {
			} else {
			}
		} catch (InputMismatchException e) {
		}
	}
}



Compiler output:
Main.java:21: error: cannot find symbol
		} catch (InputMismatchException e) {
		         ^
  symbol:   class InputMismatchException
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
String op =sc.nextLine();

Switch(op){
case "+":
System.out.println(a+b);
break;
case "-":
System.out.println(a-b);
break;
case "*":
System.out.println(a*b);
break;
case "/":
System.out.println(a/b);
break;
case "?":
break;
}
}
}


Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: ';' expected
Switch(op){
          ^
Main.java:9: error: orphaned case
case "+":
^
Main.java:25: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

import java.util.Scanner;

public static void Main(String[] args) {
        Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
String op =sc.nextLine();

if(op.equals("+")){
System.out.println(a+b);
}else if(op.equals("-")){
	System.out.println(a-b);
}else if(op.equals("*")){
	System.out.println(a*b);
}else if(op.equals("/")){
	System.out.println(a/b);
}else{
break;
}

}
}


Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void Main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:22: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.Scanner;

public static void Main(String[] args) {
        Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
String op = sc.nextLine();

if(op.equals("+")){
System.out.println(a+b);
}else if(op.equals("-")){
	System.out.println(a-b);
}else if(op.equals("*")){
	System.out.println(a*b);
}else if(op.equals("/")){
	System.out.println(a/b);
}else{
break;
}

}
}


Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void Main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:22: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.Scanner;

public static void Main(String[] args) {
        Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();




}
}


Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void Main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:12: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.Scanner;
public class Main {
public static void Main(String[] args) {
        Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
String op = sc.nextLine();

if(op.equals("+")){
System.out.println(a+b);
}else if(op.equals("-")){
	System.out.println(a-b);
}else if(op.equals("*")){
	System.out.println(a*b);
}else if(op.equals("/")){
	System.out.println(a/b);
}else{
break;
}

}
}


Compiler output:
Main.java:18: error: break outside switch or loop
break;
^
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String op = sc.nextLine();

		if (op.equals("+")) {
			System.out.println(a + b);
		} else if (op.equals("-")) {
			System.out.println(a - b);
		} else if (op.equals("*")) {
			System.out.println(a * b);
		} else if (op.equals("/")) {
			System.out.println(a / b);
		} else {
			break;
		}

	}
}


Compiler output:
Main.java:19: error: break outside switch or loop
			break;
			^
1 error
Language: Java

import java.util.Scanner;

public class main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String op = sc.nextLine();
while(true){
		if (op.equals("+")) {
			System.out.println(a + b);
		} else if (op.equals("-")) {
			System.out.println(a - b);
		} else if (op.equals("*")) {
			System.out.println(a * b);
		} else if (op.equals("/")) {
			System.out.println(a / b);
		} else {
		break;
		}
}
	}
}


Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public 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);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String op = sc.nextLine();
while(true){
		if (op.equals("+")) {
			System.out.println(a + b);
		} else if (op.equals("-")) {
			System.out.println(a - b);
		} else if (op.equals("*")) {
			System.out.println(a * b);
		} else if (op.equals("/")) {
			System.out.println(a / b);
		} else {
		break;
		}
}
	}
}


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

import java.util.Scanner;

public class main {
	public static void Main1(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String op = sc.nextLine();
while(true){
		if (op.equals("+")) {
			System.out.println(a + b);
		} else if (op.equals("-")) {
			System.out.println(a - b);
		} else if (op.equals("*")) {
			System.out.println(a * b);
		} else if (op.equals("/")) {
			System.out.println(a / b);
		} else {
		break;
		}
}
	}
}


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

public class Main {
	public static void main(String[] args) {
		// Scanner sc = new Scanner(System.in);
		int a =  sc.nextInt();
		int b = sc.nextInt();
		String op = sc.nextLine();
		while (true) {
			if (op.equals("+")) {
				System.out.println(a + b);
			} else if (op.equals("-")) {
				System.out.println(a - b);
			} else if (op.equals("*")) {
				System.out.println(a * b);
			} else if (op.equals("/")) {
				System.out.println(a / b);
			} else if (op.equals("?")) {
				return;
			}

		}
	}
}


Compiler output:
Main.java:4: error: cannot find symbol
		int a =  sc.nextInt();
		         ^
  symbol:   variable sc
  location: class Main
Main.java:5: error: cannot find symbol
		int b = sc.nextInt();
		        ^
  symbol:   variable sc
  location: class Main
Main.java:6: error: cannot find symbol
		String op = sc.nextLine();
		            ^
  symbol:   variable sc
  location: class Main
3 errors
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);


		int a =  sc.nextInt();
		int b = sc.nextInt();
		String op = sc.nextLine();


			if(op.equals("+")){
				System.out.println(a+b);
			}else if(op.equals("-")){
				System.out.println(a-b);
			}else if(op.equals("*")){
				System.out.println(a*b);
			}else if(op.equals("/")){
				System.out.println(a/b);
			}else if(op.equals("?")){
				break;
			}
		
	}
}


Compiler output:
Main.java:21: error: break outside switch or loop
				break;
				^
1 error
Language: Java

import java.util.*;
    public class Main{
        public static void main(String[] arg){
            int a, b, c;
            c = 0;
            Scanner sc = new Scanner(System.in);
            for(;;){
                a = sc.nextInt();
                char op = sc.next();
                b = sc.nextInt();
                if(op.equals('?')) break;
                if(op.equals('+')){
                    c = a + b;
                }else if(op.equals('-')){
                    c = a - b;
                }else if(op.equals('*')){
                    c = a * b;
                }else if(op.equals('/')){
                    c = a / b;
                }
                System.out.printf("%d\n", c);
            }
            scan.close();
        }
    }


Compiler output:
Main.java:9: error: incompatible types: String cannot be converted to char
                char op = sc.next();
                                 ^
Main.java:11: error: char cannot be dereferenced
                if(op.equals('?')) break;
                     ^
Main.java:12: error: char cannot be dereferenced
                if(op.equals('+')){
                     ^
Main.java:14: error: char cannot be dereferenced
                }else if(op.equals('-')){
                           ^
Main.java:16: error: char cannot be dereferenced
                }else if(op.equals('*')){
                           ^
Main.java:18: error: char cannot be dereferenced
                }else if(op.equals('/')){
                           ^
Main.java:23: error: cannot find symbol
            scan.close();
            ^
  symbol:   variable scan
  location: class Main
7 errors
Language: Java

import java.util.Scanner; 
 public class Main {
   public static void main(String[] args) {
          Scanner sc = new Scanner(System.in);
       
            int a ;
            String op ;
            int b ;
       
            int sum=0;
       
            String tasu = "+" ;
            String hiku = "-" ;
            String kake = "*" ;
            String waru = "/" ;
            String end = "?" ;
       
       While(true){
           a = sc.nextInt();
           op = sc.next();
           b = sc.nextInt();
           if(op==tasu){
               sum=a+b;
           }
           if(op==hiku){
               sum=a-b;
           }
           if(op==kake){
               sum=a*b;
           }
           if(op==waru){
               sum=a/b;
           }
           if(op==end){
               break;
           }
       }
   }
 }


Compiler output:
Main.java:18: error: ';' expected
       While(true){
                  ^
1 error
Language: Java

import java.util.Scanner;


public class Simplecalculatpr {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		String m = sc.next();
		int b = sc.nextInt();
		sc.close();
		boolean eter = true;
		while(eter == true){
			if(m == "+"){
				System.out.println(a + b);
			}else if(m == "-"){
				System.out.println(a-b);
			}else if(m == "*"){
				System.out.println(a*b);
			}else if(m == "/"){
				System.out.println(a/b);
			}else if(m == "&" && a-b == 0){
				break;
			}
		}
	}
}

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

import java.util.Scanner;


public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		boolean eter = true;
		while(eter == true){
			int a = sc.nextInt();
			String op = sc.next();
			int b = sc.nextInt();
			if(m == "+"){
				System.out.println(a + b);
			}else if(m == "-"){
				System.out.println(a-b);
			}else if(m == "*"){
				System.out.println(a*b);
			}else if(m == "/"){
				System.out.println(a/b);
			}else if(m == "&" && a-b == 0){
				eter = false;
			}
		}
sc.close();
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
			if(m == "+"){
			   ^
  symbol:   variable m
  location: class Main
Main.java:14: error: cannot find symbol
			}else if(m == "-"){
			         ^
  symbol:   variable m
  location: class Main
Main.java:16: error: cannot find symbol
			}else if(m == "*"){
			         ^
  symbol:   variable m
  location: class Main
Main.java:18: error: cannot find symbol
			}else if(m == "/"){
			         ^
  symbol:   variable m
  location: class Main
Main.java:20: error: cannot find symbol
			}else if(m == "&" && a-b == 0){
			         ^
  symbol:   variable m
  location: class Main
5 errors
Language: Java

import java.io.*;
public class Main{
	public static void main(String [] args) throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str;
		char ope;
		int a,b;
		String[] st=new String[3];
		while(true)){
		str=br.readLine();
                st=str.split(" ");
                
		a=Integer.parseInt(st[0]);
		b=Integer.parseInt(st[2]);
		ope=st[1].charAt(0);
                if(ope==?)break;
		System.out.println(keisan(a,b,ope));
}
		}

		static int keisan(int a,int b,char operator){
		int result=0;
		switch(operator){
		case '+':result=a+b;break;
		case '-':result=a-b;break;
		case '*':result=a*b;break;
		case '/':result=a/b;break;
                
		}
		return result;
		}
		}

Compiler output:
Main.java:9: error: illegal start of expression
		while(true)){
		           ^
Main.java:16: error: illegal start of expression
                if(ope==?)break;
                        ^
Main.java:16: error: illegal start of expression
                if(ope==?)break;
                         ^
3 errors
Language: Java

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

class Main {

	private int ans;
	public SimpleCalculator(){
		ans = 0;
	}
	public void plus(int x, int y){

		ans = x + y;
		System.out.println(ans);
	}
	public void minus(int x, int y){

		ans = x - y;
		System.out.println(ans);
	}
	public void times(int x, int y){

		ans = x * y;
		System.out.println(ans);
	}
	public void divide(int x, int y){

		ans = x / y;
		System.out.println(ans);
	}
	public static void main(String[] args) throws IOException{

		Main n = new Main();

		for(;;){

			Scanner scan = new Scanner(System.in);
			int x = scan.nextInt();
			char ch = scan.next().charAt(0);
			int y = scan.nextInt();

			switch(ch){
			case '+':
				n.plus(x, y);
				break;
			case '-':
				n.minus(x, y);
				break;
			case '*':
				n.times(x, y);
				break;
			case '/':
				n.divide(x, y);
				break;
			default:
				scan.close();
				System.exit(0);
			}
		}
	}
}

Compiler output:
Main.java:7: error: invalid method declaration; return type required
	public SimpleCalculator(){
	       ^
1 error
Language: Java

import java.util.Scanner;

class Main {

	private int ans;
	public SimpleCalculator(){
		ans = 0;
	}
	public void plus(int x, int y){

		ans = x + y;
		System.out.println(ans);
	}
	public void minus(int x, int y){

		ans = x - y;
		System.out.println(ans);
	}
	public void times(int x, int y){

		ans = x * y;
		System.out.println(ans);
	}
	public void divide(int x, int y){

		ans = x / y;
		System.out.println(ans);
	}
	public static void main(String[] args){

		Main n = new Main();

		for(;;){

			Scanner scan = new Scanner(System.in);
			int x = scan.nextInt();
			char ch = scan.next().charAt(0);
			int y = scan.nextInt();

			switch(ch){
			case '+':
				n.plus(x, y);
				break;
			case '-':
				n.minus(x, y);
				break;
			case '*':
				n.times(x, y);
				break;
			case '/':
				n.divide(x, y);
				break;
			default:
				scan.close();
				System.exit(0);
			}
		}
	}
}

Compiler output:
Main.java:6: error: invalid method declaration; return type required
	public SimpleCalculator(){
	       ^
1 error
Language: Java

package simpcal;

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



public class simpCal {

	public static void main(String[] args) {
		try {
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		while(true) {
			String[] str = buf.readLine().split(" ");
			int a = Integer.parseInt(str[0]);
			int b = Integer.parseInt(str[2]);
			String operator = str[1];
			if(operator.equals("+")) { 
			  System.out.println(a + b);}
			 else if(operator.equals("-")) { 
					  System.out.println(a - b);
			 }else if(operator.equals("*")) { 
				  System.out.println(a * b);
			 }else 	if(operator.equals("/")) { 
				  System.out.println(a / b);
			 }else if(operator == "?") {
				break;			
				}
			}
		}catch(IOException e) {
			e.printStackTrace();
		}
	}
}

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

import java.util.Scanner;

public class Test{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);		
		String str = in.nextLine();
		String[] ary = str.split(" ");
		char c = ary[1].charAt(0);
		
		while(c != '?'){
			int a = Integer.parseInt(ary[0]);
			int b = Integer.parseInt(ary[2]);
			
			switch(c){
			case '+':
				System.out.println(a+b);
				break;
			case '-':
				System.out.println(a-b);
				break;
			case '*':
				System.out.println(a*b);
				break;
			case '/':
				System.out.println(a/b);
				break;
				default:
					break;
			}
			
			str = in.nextLine();
			String[] ary2 = str.split(" ");
			for(int i=0; i<3; i++){
				ary[i] = ary2[i];
			}
			c = ary[1].charAt(1);
		}
	}
}

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

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

class Main {
   public static void main(String[] args) {
       Scanner in = new Scanner(System.in);
       int    a = in.nextInt();
       String op = in.next(); 
       int    b = in.nextInt();
       int    x;
       
      
       while(!op.equals("?")){
          x = a op b;

          a = in.nextInt();
          op = in.next();
          b = in.nextInt();
       }


        System.out.println(x);

      

}
}

Compiler output:
Main.java:14: error: ';' expected
          x = a op b;
               ^
1 error