submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s990548050
p00010
C++
#include <iostream> #include <iomanip> #include <stdlib> using namespace std; double get_num(double x){ x = x * 1000; if(x >= 0){ x = (int)(x + 0.5); return ((double)x / 1000); } else { x = (int)(x - 0.5); return ((double)x / 1000); } } int main() { int n; cin >> n; for(int i = 0; i < n; i++){ double...
a.cc:3:10: fatal error: stdlib: No such file or directory 3 | #include <stdlib> | ^~~~~~~~ compilation terminated.
s891051649
p00010
C++
#include <iostream> #include <iomanip> using namespace std; double get_num(double x){ x = x * 1000; if(x >= 0){ x = (int)(x + 0.5); return ((double)x / 1000); } else { x = (int)(x - 0.5); return ((double)x / 1000); } } int main() { int n; cin >> n; for(int i = 0; i < n; i++){ double x1, y1; double ...
a.cc: In function 'int main()': a.cc:49:21: error: 'sqrt' was not declared in this scope 49 | r = sqrt((xp - x1) * (xp - x1) + ((yp - y1) * (yp - y1))); | ^~~~
s777198687
p00010
C++
#include <iostream> #include <cstdlib> #include <numeric> #include <iomanip> using namespace std; double get_num(double x){ x = x * 1000; if(x >= 0){ x = (int)(x + 0.5); return ((double)x / 1000); } else { x = (int)(x - 0.5); return ((double)x / 1000); } }; int main() { int n; cin >> n; for(int i = 0; ...
a.cc: In function 'int main()': a.cc:51:21: error: 'sqrt' was not declared in this scope 51 | r = sqrt((xp - x1) * (xp - x1) + ((yp - y1) * (yp - y1))); | ^~~~
s232000456
p00010
C++
#define EPS 1e-10 using namespace std; typedef complex<double> P; double cross(P a, P b){ return (a.real()*b.imag() - a.imag()*b.real()); } int main() { int i,j; int n; P point[3],ans; cin >> n; for(i=0;i<n;i++){ for(j=0;j<3;j++){ cin >> point[j].real() >> point[j].imag(); } P p0...
a.cc:4:9: error: 'complex' does not name a type 4 | typedef complex<double> P; | ^~~~~~~ a.cc:6:14: error: 'P' was not declared in this scope 6 | double cross(P a, P b){ | ^ a.cc:6:19: error: 'P' was not declared in this scope 6 | double cross(P a, P b){ | ...
s833341701
p00010
C++
#include <iostream> #include <cstdio> #include <complex> #include <vector> #include <algorithm> using namespace std; #define EPS 1.0e-6 const double EPS = 1e-7; typedef complex<double> P; /* “_ */ struct L { /* ü•ª */ P p, q; L(P p, P q) : p(p), q(q) {} }; double cross(P a, P b) { return imag(conj...
a.cc:8:13: error: expected unqualified-id before numeric constant 8 | #define EPS 1.0e-6 | ^~~~~~ a.cc:10:14: note: in expansion of macro 'EPS' 10 | const double EPS = 1e-7; | ^~~
s344408154
p00010
C++
#include <iostream> #include <cstdio> #include <complex> #include <vector> #include <algorithm> using namespace std; typedef complex<double> P; /* ツ点 */ int main(){ int n; cin>>n; double x1, y1, x2, y2, x3, y3; while(cin>>x1>>y1>>x2>>y2>>x3>>y3){ double a1 = 2*(x2-x1); double b1 = 2*(y2-y1); double c1 = x1*...
a.cc: In function 'int main()': a.cc:24:33: error: 'p1' was not declared in this scope; did you mean 'c1'? 24 | double r2 = abs(p1-cen2); | ^~ | c1
s996806005
p00010
C++
#include <stdio.h> int main(void){ int n , i; float x1,x2,x3,y1,y2,y3,a1,a2,b1,b2,c1,c2,xp,yp,r; scanf("%d" , &n); for(i=1;i<=n;i++){ scanf("%f %f %f %f %f %f" , &x1 , &y1 , &x2 , &y2 , &x3 , &y3); a1 = 2 * (x2 - x1); b1 = 2 * (y2 - y1); c1 = x1 * x1 - x2 * x2 + y1 * y1 - y2 * y2; a2 = 2 * (x3 - y1); b...
a.cc: In function 'int main()': a.cc:17:21: error: 'sqrt' was not declared in this scope 17 | r = sqrt((xp - x1) * (xp - x1) + (yp - y1) * (yp - y1)); | ^~~~
s644300015
p00010
C++
/* Write a program which prints the central coordinate (px, py) and the radius r of a circumscribed circle of a triangle which is constructed by three points (x1, y1)(x2, y2)(x3, y3) on the plane surface. */ void solve(double a, double b, double c, double d, double e, double f) { double px,py,r; // ‚’¼“ñ“™•ªü“ñ‚...
a.cc: In function 'void solve(double, double, double, double, double, double)': a.cc:17:13: error: 'sqr' was not declared in this scope 17 | r = sqr(px,py,a,b); | ^~~ a.cc:18:9: error: 'printf' was not declared in this scope 18 | printf("%4.3f %4.3f %4.3f",px,py,r); | ...
s759626902
p00010
C++
/* Write a program which prints the central coordinate (px, py) and the radius r of a circumscribed circle of a triangle which is constructed by three points (x1, y1)(x2, y2)(x3, y3) on the plane surface. */ #include <iostream> #include <iomanip> #include <cmath> #include <vector> using namespace std; /* http://z...
a.cc: In function 'int main()': a.cc:47:113: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<' 47 | cout << setprecision(3) << fixed << px << " " << py << " " << sqrt(abs(pow(px-x[0], 2)+pow(py-y[0], 2)) << endl; | ...
s520688385
p00010
C++
/* Write a program which prints the central coordinate (px, py) and the radius r of a circumscribed circle of a triangle which is constructed by three points (x1, y1)(x2, y2)(x3, y3) on the plane surface. */ #include <iostream> #include <iomanip> #include <cmath> #include <vector> using namespace std; /* http://z...
a.cc: In function 'int main()': a.cc:47:121: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<' 47 | cout << setprecision(3) << fixed << px << " " << py << " " << sqrt(abs((px-x[0])*(px-x[0])+(py-y[0])*(py-y[0])) << endl; | ...
s430037822
p00010
C++
/* Write a program which prints the central coordinate (px, py) and the radius r of a circumscribed circle of a triangle which is constructed by three points (x1, y1)(x2, y2)(x3, y3) on the plane surface. */ #include <iostream> #include <iomanip> #include <cmath> #include <vector> using namespace std; /* http://z...
a.cc: In function 'int main()': a.cc:47:121: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<' 47 | cout << setprecision(3) << fixed << px << " " << py << " " << sqrt(abs((px-x[0])*(px-x[0])+(py-y[0])*(py-y[0])) << endl; | ...
s008383391
p00010
C++
#include <stdio.h> #include <math.h> int main() { int setcount; float x1, y1, x2, y2, x3, y3; float nx1, ny1, nx2, ny2; float nr1, nr2; float xp, yp, r; int tx, ty, tr, rem; int i; scanf("%d", &setcount); for(i=0; i<setcount; i++){ scanf("%f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3); nx...
a.cc: In function 'int main()': a.cc:19:12: error: invalid operands of types 'float' and 'float' to binary 'operator^' 19 | nr1=nx1^2+ny1^2; nr2=nx2^2+ny2^2; | ~~~^~~~~~ | | | | | float | float a.cc:19:29: error: invalid operands of types 'float' and ...
s809087809
p00010
C++
#include <stdio.h> #include <math.h> int main() { int setcount; float x1, y1, x2, y2, x3, y3; float nx1, ny1, nx2, ny2; float nr1, nr2; float xp, yp, r; int tx, ty, tr, rem; int i; scanf("%d", &setcount); for(i=0; i<setcount; i++){ xp=nr1+x1; yp=nr2+y1; r=(float)sqrt((double)(nr1^2+nr2^2));...
a.cc: In function 'int main()': a.cc:18:31: error: invalid operands of types 'float' and 'float' to binary 'operator^' 18 | r=(float)sqrt((double)(nr1^2+nr2^2)); | ~~~^~~~~~ | | | | | float | ...
s705283983
p00010
C++
#include <iostream> using namespace std; int main() { int n;cin>>n; for ( int i=0; i<n; i++ ) { double x1,y1,x2,y2,x3,y3; cin>>x1>>y1>>x2>>y2>>x3>>y3; double a1=2*(x2-x1); double b1=2*(y2-y1); double c1=x1*x1-x2*x2+y1*y1-y2*y2; double a2=2*(x3-x1); double b2=2*(y3-y1); double c2=x1*x1-x3*x3+y1*y1...
a.cc: In function 'int main()': a.cc:22:28: error: 'sqrt' was not declared in this scope 22 | double r = sqrt((x1-x)*(x1-x)+(y1-y)*(y1-y)); | ^~~~
s704081952
p00010
C++
#include <iostream> #include <cmath> using namespace std; #define reep(i, a, n) for(int i = a;i < n; i++) #define rep(i, n) reep(i, 0, n) double pow2(double in){ return in * in; } double distance(double x1, double y1, double x2, double y2){ return sqrt(pow2(y2 - y1) + pow2(x2 - x1)); } int main(){ ...
a.cc:31:1: error: extended character   is not valid in an identifier 31 | ツ ツ ツ ツ ツ ツ ツ ツ ツ ツ ツ + pow2(distance(x[1], y[1], x[2], y[2])) | ^ a.cc:31:1: error: extended character   is not valid in an identifier a.cc:31:1: error: extended character   is not valid in an identifier a.cc:31:1: error: extended chara...
s145838021
p00010
C++
#include <stdio.h> #include <math.h> #define SQ(x) ((x) * (x)) int main(void) { int n; double x1, x2, x3, y1, y2, y3; double a, b, c, d, e, f; double l, m, n; cin >> n; for (int i = 0; i < n; i++){ scanf("%lf%lf%lf%lf%lf%lf", &x1, &y1, &x2, &y2, &x3, &y3); a = (x1...
a.cc: In function 'int main()': a.cc:11:18: error: conflicting declaration 'double n' 11 | double l, m, n; | ^ a.cc:8:9: note: previous declaration as 'int n' 8 | int n; | ^ a.cc:13:5: error: 'cin' was not declared in this scope; did you mean 'sin'? 13 | cin >>...
s972078737
p00010
C++
#include <iostream> using namespace std; //0010 int main(){ int n; while(cin >> n){ double x1,y1,x2,y2,x3,y3,x,y,r; while(n--){ cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; if(x1!=x2){ x=(x1+x2)/2; }else if(x2!=x3){ x=(x2+x3)/2; }else if(x3!=x1){ x=(x3+x1)/2; } if(y1!=y2){ y=(y1+y...
a.cc: In function 'int main()': a.cc:28:32: error: 'pow' was not declared in this scope 28 | r=sqrt(pow(x-x1,2)+pow(y-y1,2)); | ^~~ a.cc:28:27: error: 'sqrt' was not declared in this scope 28 | r=sqrt(pow(x-x1,2)+pow(y-y1,2)); ...
s677660614
p00010
C++
#include<iostream> #include<cmath> #include<cstdip> #define S second #define F first using namespace std; typedef pair<double,double> P; double Length(P p,P q){ return sqrt(pow(p.first - q.first,2)+pow(p.second-q.second,2)); } int main(){ P p[3]; double a,b,c,A,B,C,R,x,y; int n; cin >> n; while(n-- > 0){ ...
a.cc:3:9: fatal error: cstdip: No such file or directory 3 | #include<cstdip> | ^~~~~~~~ compilation terminated.
s548928736
p00010
C++
//ツ三ツ角ツ形ツづ個外ツ静堋円ツづ個陳?心ツづ? ツ三ツ角ツ形ツづ個静シツ閉ェツづ個青つ陳シツ禿アツ督卍閉ェツ静シツつェツ古ーツづュツづゥツ湘ェツ渉環づ可づ按づゥ. //ツつアツづ個づヲツつ、ツづ按甘エツ可スツ学ツ的ツづ按姪「ツ妥ィツづーツ嘉ーツつュツづ?つォツづ? ツ暗按可コツづ個ペ-ツジツづ個δ可イツブツδ可δ環づーツ参ツ考ツづ可つキツづゥツづ?嘉ーツつォツづ「ツつキツつ「. // - http://www.deqnotes.net/acmicpc/2d_geometry/ // - http://www.prefield.com/algorithm/index.html #include <iostream> #inclu...
a.cc: In function 'int main()': a.cc:62:11: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'double') 62 | cin >> p[j].real() >> p[j].imag(); | ~~~ ^~ ~~~~~~~~~~~ | | | | | double | ...
s711358113
p00010
C++
#include <iostream> #include <cmath> #include <iomanip> using namespace std; // 半径取得の処理 double getR(double x1, double y1, double x2, double y2, double x3, double y3) { double marginX1, marginX2, marginX3; double marginY1, marginY2, marginY3; double a, b, c; double r, s; // それぞれのx...
a.cc: In function 'int main()': a.cc:110:6: error: expected '}' at end of input 110 | } | ^ a.cc:90:16: note: to match this '{' 90 | int main(void) { | ^
s112856537
p00010
C++
#include <iostream> #include <algorithm> #include <complex> #include <vector> #include <cmath> using namespace std; typedef complex<double> P; const double eps = 1e-5; vector<P> ps(3); double R; double eval(P p) { double sum = 0; for(int i = 0; i < ps.size(); ++i) sum += abs(R-abs(p-ps[i])); return sum; } ...
a.cc: In function 'int main()': a.cc:44:44: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'double') 44 | for(int i = 0; i < ps.size(); ++i) cin >> ps[i].real() >> ps[i].imag(); | ~~~ ^~ ~~~~~~~~~~~~ | ...
s674762142
p00010
C++
#include <stdio.h> #include <math.h> &#160; int main(){ &#160;&#160;&#160;&#160;int n; &#160;&#160;&#160;&#160;scanf("%d", &n); &#160;&#160;&#160;&#160;for(int i=0;i<n;i++){ &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;double x1,y1,x2,y2,x3,y3; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;scanf("%lf%lf%lf%lf%lf%l...
a.cc:3:2: error: stray '#' in program 3 | &#160; | ^ a.cc:5:2: error: stray '#' in program 5 | &#160;&#160;&#160;&#160;int n; | ^ a.cc:5:8: error: stray '#' in program 5 | &#160;&#160;&#160;&#160;int n; | ^ a.cc:5:14: error: stray '#' in program 5 | &#160;&#160;&#160;&#160;int...
s829246601
p00010
C++
#include <stdio.h> #include <math.h> &#160; int main(){ &#160;&#160;&#160;&#160;int n; &#160;&#160;&#160;&#160;scanf("%d", &n); &#160;&#160;&#160;&#160;for(int i=0;i<n;i++){ &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;double x1,y1,x2,y2,x3,y3; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;scanf("%lf%lf%lf%lf%lf%l...
a.cc:3:2: error: stray '#' in program 3 | &#160; | ^ a.cc:5:2: error: stray '#' in program 5 | &#160;&#160;&#160;&#160;int n; | ^ a.cc:5:8: error: stray '#' in program 5 | &#160;&#160;&#160;&#160;int n; | ^ a.cc:5:14: error: stray '#' in program 5 | &#160;&#160;&#160;&#160;int...
s773419136
p00010
C++
#include <iostream> using namespace std; double dist(double x1, double y1, double x2, double y2){ return sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)); } int main(){ double x[3], y[3]; int n; cin >> n; while(n-- > 0){ for(int i = 0; i < 3; i++){ cin >> x[i] >> y[i]; } double a = x[1] - x[0]; double b = y[...
a.cc: In function 'double dist(double, double, double, double)': a.cc:6:16: error: 'sqrt' was not declared in this scope 6 | return sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)); | ^~~~
s599891333
p00010
C++
#include <iostream> #include <cstdio> #include <algorithm> struct Vector2D { double x, y; Vector2D() : x(0.0), y(0.0) {} Vector2D(double vx, double vy) : x(vx), y(vy) {} Vector2D& operator+=(const Vector2D& rhs) { x += rhs.x; y += rhs.y; return *this; } Vector2D& operator-=(const Vector2D& rhs) { x -=...
a.cc: In function 'void solve(Vector2D, Vector2D, Vector2D, Vector2D&, double&)': a.cc:59:18: error: 'sqrt' was not declared in this scope 59 | radius = sqrt(r.x * r.x + r.y * r.y); | ^~~~
s751376270
p00010
C++
#include <iostream> #include <cstdio> #include <algorithm> struct Vector2D { double x, y; Vector2D() : x(0.0), y(0.0) {} Vector2D(double vx, double vy) : x(vx), y(vy) {} Vector2D& operator+=(const Vector2D& rhs) { x += rhs.x; y += rhs.y; return *this; } Vector2D& operator-=(const Vector2D& rhs) { x -=...
a.cc: In function 'void solve(Vector2D, Vector2D, Vector2D, Vector2D&, double&)': a.cc:59:23: error: 'sqrt' is not a member of 'std'; did you mean 'sort'? 59 | radius = std::sqrt(r.x * r.x + r.y * r.y); | ^~~~ | sort
s732933948
p00010
C++
#include <iostream> #include <vector> #include <math.h> using namespace std; int main(){ double x1,y1,x2,y2,x3,y3; vector<double> x1l,y1l,x2l,y2l,x3l,y3l; int n; cin >> n; for(int i=0; i<n; i++){ cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; x1l.push_back(x1); y1l.push_back(y1); x2l.push_back(x...
a.cc: In function 'int main()': a.cc:46:4: error: expected ';' at end of input 46 | r | ^ | ; a.cc:46:4: error: expected '}' at end of input a.cc:7:11: note: to match this '{' 7 | int main(){ | ^
s918522713
p00010
C++
#include <iostream> #include <vector> #include <math.h> using namespace std; int main(){ double x1,y1,x2,y2,x3,y3; vector<double> x1l,y1l,x2l,y2l,x3l,y3l; int n; cin >> n; for(int i=0; i<n; i++){ cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; x1l.push_back(x1); y1l.push_back(y1); x2l.push_back(x...
a.cc: In function 'int main()': a.cc:46:4: error: expected ';' at end of input 46 | r | ^ | ; a.cc:46:4: error: expected '}' at end of input a.cc:7:11: note: to match this '{' 7 | int main(){ | ^
s723519999
p00010
C++
#include<iostream> #include<cstdio> #include<math.h> using namespace std; int main() { int i,n; double x1,x2,x3,y1,y2,y3; double m1,m2,xm1,xm2,ym1,ym2,xo,yo,r; //m1,m2…辺の法線 xm1,ym1…辺の中点の座標 cin>>n; for(i=0;i<n;i++){ flg=0; cin>>x1>>y1>>x2>>y2>>x3>>y3; xm1=(x1+x2)/2; xm2=(x2+x3)/2; ym1=(y1+y2)/2; ym2...
a.cc: In function 'int main()': a.cc:15:17: error: 'flg' was not declared in this scope 15 | flg=0; | ^~~
s613675337
p00010
C++
#include <iostream> #include <cmath> #include <iomanip> using namespace std; int main(){ int n; double x1, y1, x2, y2, x3, y3, m1, m2, m3, b1, b2, b3, px, py, r; double d[2], e[2], f[2]; cin >> n; for(int i = 0; i < n; i++){ cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; d[0] = (x2 + x3) / 2; d[1] = (y2 + y3) / 2...
a.cc: In function 'int main()': a.cc:18:16: error: 'num' was not declared in this scope; did you mean 'enum'? 18 | if(num[i]){ | ^~~ | enum a.cc: At global scope: a.cc:41:9: error: expected unqualified-id before 'return' 41 | return 0; | ...
s768338079
p00010
C++
using System; class main { static void Main(string[] args) { string s = string.Empty; var n = int.Parse(Console.ReadLine()); while (n-- != 0) { s = Console.ReadLine(); string[] s1 = s.Split(' '); double x1 = double.Parse(s1[0]); ...
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:5:22: error: 'string' has not been declared 5 | static void Main(string[] args) | ^~~~~~ a.cc:5:31: error: expected ',' or '...' before 'args' 5 | static void Main(s...
s641870423
p00010
C++
#include <iostream> #include <iomanip> #include <vector> #include <cmath> using namespace std; typedef vector <double> vd; typedef vector <vd> vvd; vvd inverse(vvd &x){ vvd tmp(2, vd(2)); if (x.size()!=2) return tmp; double a, b, c, d, e; a = x[0][0]; b = x[0][1]; c = x[1][0]; d = x[1][1]; e = 1.0 / (a*d...
a.cc: In function 'int main()': a.cc:58:34: error: cannot bind non-const lvalue reference of type 'vvd&' {aka 'std::vector<std::vector<double> >&'} to an rvalue of type 'vvd' {aka 'std::vector<std::vector<double> >'} 58 | B = Mmult(inverse(A), B); | ~~~~~~~^~~ a.cc:25:...
s187984389
p00010
C++
#include <iostream> #include <iomanip> #include <vector> #include <cmath> using namespace std; typedef vector <double> vd; typedef vector < vd > vvd; vvd inverse(vvd &x){ vvd tmp(2, vd(2)); if (x.size()!=2) return tmp; double a, b, c, d, e; a = x[0][0]; b = x[0][1]; c = x[1][0]; d = x[1][1]; e = 1.0 / (a...
a.cc:7:17: error: extended character   is not valid in an identifier 7 | typedef vector < vd > vvd; | ^ a.cc:7:17: error: extended character   is not valid in an identifier a.cc:7:17: error: '\U00003000vd\U00003000' was not declared in this scope 7 | typedef vector < vd > vvd; | ...
s860236333
p00010
C++
#include <iostream> #include <iomanip> #include <vector> #include <cmath> using namespace std; typedef vector <double> vd; typedef vector < vd > vvd; vvd inverse(vvd &x){ vvd tmp(2, vd(2)); if (x.size()!=2) return tmp; double a, b, c, d, e; a = x[0][0]; b = x[0][1]; c = x[1][0]; d = x[1][1]; e = 1.0 / (a...
a.cc: In function 'int main()': a.cc:58:34: error: cannot bind non-const lvalue reference of type 'vvd&' {aka 'std::vector<std::vector<double> >&'} to an rvalue of type 'vvd' {aka 'std::vector<std::vector<double> >'} 58 | B = Mmult(inverse(A), B); | ~~~~~~~^~~ a.cc:25:...
s464691401
p00010
C++
for(int i=0; i<3; i++) { for(int j=0; j<3; j++) { cout << A[i][j] << " "; } cout << endl; }
a.cc:2:5: error: expected unqualified-id before 'for' 2 | for(int i=0; i<3; i++) { | ^~~ a.cc:2:18: error: 'i' does not name a type 2 | for(int i=0; i<3; i++) { | ^ a.cc:2:23: error: 'i' does not name a type 2 | for(int i=0; i<3; i++) { | ...
s111111515
p00010
C++
#define INF 100000000 using namespace std; #define pw(a) (a)*(a) int main(){ double x1,x2,x3,y1,y2,y3; int n; cin >> n; while(n--){ cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; double a,b,l,m,n; a = -1*(pw(x1) - pw(x2) + pw(y1) - pw(y2)); b = -1*(pw(x1) - pw(x3) + pw(y1) - pw(y3)); l = (a*(y1-y...
a.cc: In function 'int main()': a.cc:8:3: error: 'cin' was not declared in this scope 8 | cin >> n; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | #define INF 100000000 a.cc:17:62: error: 'sqr...
s877652171
p00010
C++
#include<iostream> #include<cmath> #include<cstdio> using namespace std; int main(){ long double x1,x2,x3,y1,y2,y3; long double p,q,r; int tmp; int n; cin >> n; while(n--){ cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; p = ((y1-y3)*(y1*y1 -y2*y2 +x1*x1 -x2*x2) -(y1-y2)*(y1*y1 -y3*y3 +x1*x1 -x3*x3)) ...
a.cc: In function 'int main()': a.cc:22:5: error: 'r2' was not declared in this scope; did you mean 'r'? 22 | r2 = sqrt((x1-p)*(x1-p) + (y1-q)*(y1-q)); | ^~ | r
s653310247
p00010
C++
#include <iostream> #include <iomanip> #include <cmath> using namespace std; inline sqr(double x){return x*x;} inline double Roundoff(double x){ if( x<0 ){ x*=-1; x=(x-(x-int(x*1000)/1000))+(((x*1000)-int(x*1000))*10)>=4?0.001:0; x*=-1; }else{ x=(x-(x-int(x*1000)/1000))+(((x*1000)-int(x*1000))*10)>=4?0.001:0...
a.cc:6:8: error: ISO C++ forbids declaration of 'sqr' with no type [-fpermissive] 6 | inline sqr(double x){return x*x;} | ^~~
s187980062
p00010
C++
#include <iostream> #include <iomanip> #include <cmath> using namespace std; inline double square(double x){return x*x;} inline double Roundoff(double x){ if( x<0 ){ x*=-1; x=(x-(x-int(x*1000)/1000))+(((x*1000)-int(x*1000))*10)>=4?0.001:0; x*=-1; }else{ x=(x-(x-int(x*1000)/1000))+(((x*1000)-int(x*1000))*10)>...
a.cc: In function 'int main()': a.cc:38:19: error: 'squaret' was not declared in this scope; did you mean 'square'? 38 | r=squaret(square(x1[i]-px)+square(y1[i]-py)); | ^~~~~~~ | square
s735668791
p00010
C++
#include <stdio.h> #include<string> #include<string.h> #include <math.h> #include<iostream> #include <algorithm> #include <map> #include <vector> #include <queue> using namespace std; /* //my header #include "define.h" #include "geometry.h"*/ #define MyAbs(a) ((a)>0?(a):-(a)) #define MyEqualDoule(a,b) (MyAbs(a-b)<1...
a.cc:50:1: error: expected unqualified-id before '{' token 50 | { | ^ a.cc: In function 'void func()': a.cc:100:17: error: 'CMathEquation' has not been declared 100 | CMathEquation::CalcuCircleByPoint3(ox, oy, r, x1, y1, x2, y2, x3, y3); | ^~~~~~~~~~~~~
s222652938
p00010
C++
#include <iomanip> #include <iostream> using namespace std; /** Problem0010 : CIrcumscribed Circle of a Triangle **/ int main() { int n; double X1, Y1, X2, Y2, X3, Y3; double a, b, c, d, e, f, l, m; cin >> n; for (int i=0; i<n; i++) { cin >> X1 >> Y1 >> X2 >> Y2 >> X3 >> Y3; a = X1-X2; b = Y1-Y2; c = -(X1*X1+...
a.cc: In function 'int main()': a.cc:18:55: error: 'sqrt' was not declared in this scope 18 | cout << -l/2 << " " << -m/2 << " " << sqrt(l*l+m*m-4*n)/2 << endl; | ^~~~
s849581610
p00010
C++
#include "stdio.h" #include <iostream> using namespace std; /** Problem0010 : CIrcumscribed Circle of a Triangle **/ int main() { int N; double X1, Y1, X2, Y2, X3, Y3; double a, b, c, d, e, f, l, m, n; cin >> N; for (int i=0; i<N; i++) { cin >> X1 >> Y1 >> X2 >> Y2 >> X3 >> Y3; a = X1-X2; b = Y1-Y2; c = -(X1*...
a.cc: In function 'int main()': a.cc:18:57: error: 'sqrt' was not declared in this scope 18 | printf("%.3f %.3f %.3f\n",l*-0.5,m*-0.5,sqrt(l*l+m*m-n*4.0)/2.0); | ^~~~
s511405426
p00010
C++
#include<iostream> using namespace std; int main() { int n; double x1,y1,x2,y2,x3,y3; cin >> n; for(int i=0;i<n;i++) { cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; double a1 = 2*(x2 - x1); double b1 = 2*(y2 - y1); double c1 = x1*x1 - x2*x2 + y1*y1 - y2*y2; double a2 = 2*(x3 -x1); double b2 = 2*(y3 - y1...
a.cc: In function 'int main()': a.cc:26:28: error: 'sqrt' was not declared in this scope 26 | double r = sqrt(r_2); | ^~~~
s851787784
p00010
C++
#include <iostream> #include <cmath> #include <cstdio> using namespace std; int main() { int n; double x1,y1,x2,y2,x3,y3,x,y,r,d,dx1,dx2,dx3; cin>>n; while(n--) { cin>>x1>>y1>>x2>>y2>>x3>>y3; d=2*(x1*(y2-y3)+x2*(y3-y1)+x3*(y1-y2)); dx=x1*x1+y1*y1; dx2=x2*x2+y2*y2; ...
a.cc: In function 'int main()': a.cc:15:9: error: 'dx' was not declared in this scope; did you mean 'dx3'? 15 | dx=x1*x1+y1*y1; | ^~ | dx3
s476700652
p00010
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace contest10 { class Program { static void Main(string[] args) { var read_line_origin = Console.ReadLine(); if (string.IsNullOrEmpty(read_line_origin)) { ...
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:3:7: error: expected nested-name-specifier before 'System' 3 | using System.L...
s989400016
p00010
C++
import java.util.Scanner; import java.lang.Math; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); for(int i = 0; i < n; i++) { double x1,y1,x2,y2,x3,y3; x1 = scan.nextDouble(); y1 = scan.nextDouble(); x2 = scan.nextDouble(); ...
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: 'import' does not name a type 2 | import java.lang.Math; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'...
s379892313
p00011
Java
import java.util.Scanner; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int w = sc.nextInt(); int n = sc.nextInt(); int[] c = new int[2]; int f=0; int s=0; in...
Main.java:18: error: incompatible types: String[] cannot be converted to int[] c=br.readLine().split(","); ^ Main.java:19: error: incompatible types: int cannot be converted to String f=Integer.parseInt(c[0]); ^ Main.java:20: error: incompatible types: int cannot be ...
s252144112
p00011
Java
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int a[] = new int[w]; int b[] = new int[w]; int c[] = new int[w]; int temp; int i = 0; for(i=0;i<w;i++){ a[i] = i + 1; ...
Main.java:27: error: reached end of file while parsing } ^ 1 error
s144187170
p00011
Java
import java.io.*; import java.util.*; public class Amidakuji{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int a[] = new int[w]; int b[] = new int[w]; int c[] = new int[w]; int temp; int i = 0; for(i=0;i<w;i++){ a[i] = i ...
Main.java:4: error: class Amidakuji is public, should be declared in a file named Amidakuji.java public class Amidakuji{ ^ 1 error
s349378489
p00011
Java
import java.io.*; import java.util.*; public class Amidakuji{ public static void main(String[] args){ Scanner sc = new Scanner(System.in).useDelimiter("\\D");; int w = sc.nextInt(); int n = sc.nextInt(); int a[] = new int[w]; int b[] = new int[n]; int c[] = new int[n]; int temp = 0; int i = 0; for(i...
Main.java:4: error: class Amidakuji is public, should be declared in a file named Amidakuji.java public class Amidakuji{ ^ 1 error
s132817371
p00011
Java
import java.util.Scanner; public class Main2 { public static void main(String[] args) { int n,w; Scanner sc=new Scanner(System.in); w=sc.nextInt(); n=sc.nextInt(); int[] values = new int[w]; for(int i=0;i<w;i++){ values[i] = i+ 1; } for(int i= 0; i< n; i++) { String str= sc.next(); String[...
Main.java:4: error: class Main2 is public, should be declared in a file named Main2.java public class Main2 { ^ 1 error
s328502769
p00011
Java
public class Main { public static void Main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int[] a = new int[w+1]; for(int i=1;i<=w;i++)a[i]=i; int m = sc.nextInt(); while(m--!=0){ String[] s = sc.next().split(","); int l = Integer.parseInt(s[0]); int r = Integer.pars...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s341235631
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int c = sc.nextInt(); int a, b; int[] wide = new int[w]; for (int i = 0; i < w; i++) { wide[i] = i + 1; } for (int i = 0; i < c; i++) { String line = ...
Main.java:15: error: incompatible types: char cannot be converted to String a = Integer.parseInt(line.charAt(0)); ^ Main.java:16: error: incompatible types: char cannot be converted to String b = Integer.parseInt(line.charAt(2)); ^ Note: Some m...
s939810406
p00011
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); int w = sc.nextInt(); int n =sc.nextInt(); int[] values =new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } for(int i=0;i<n;i++){ String str =sc.next(); String[] ab=str.split(",...
Main.java:15: error: cannot find symbol int b =Interger.parseInt(ab[1])-1; ^ symbol: variable Interger location: class Main 1 error
s215320503
p00011
Java
import java.util.Scanner; public class Main { static int[]z; public static int a,b,n,w,t; public static void main(String[] args) { Scanner sc=new Scanner(System.in); w=sc.nextInt(); n=sc.nextInt(); z = new int[w]; mmm(); for(int i=0;i<w;i++) System....
Main.java:20: error: cannot find symbol String mm= sc.next(); ^ symbol: variable sc location: class Main 1 error
s483554930
p00011
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int n=sc.nextInt(); int[] k=new int[w]; int p,q,r,s; for(int i=0;i<w;i++){ k[i]=i+1; } for(int j=0;j<n;j++){ p=sc.nextInt(); q=sc.nextInt(); r=k[p-1]; s=k[q-1]; k[p-1]=s; k[q-1]=r; } for(int k...
Main.java:21: error: variable k is already defined in method main(String[]) for(int k=0;k<w;k++){ ^ Main.java:22: error: array required, but int found System.out.println(k[k]); ^ 2 errors
s481863614
p00011
Java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int n=sc.nextInt(); int[] k=new int[w]; int p,q,r; for(int i=0;i<w;i++){ k[i]=i+1; } for(int j=0;j<n;j++){ String[] line=sc.nextLine.split(","); p=Integer.perseInt(line[0]); q=Integer.pe...
Main.java:14: error: cannot find symbol String[] line=sc.nextLine.split(","); ^ symbol: variable nextLine location: variable sc of type Scanner Main.java:15: error: cannot find symbol p=Integer.perseInt(line[0]); ^ symbol: method perseInt(String) location: class Integer Main.java:16...
s287707463
p00011
Java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int n=sc.nextInt(); int[] k=new int[w]; for(int i=0;i<w;i++){ k[i]=i+1; } for(int j=0;j<n;j++){ String[] line=sc.nextLine().split(","); int p=Integer.perseInt(line[0]); int q=Integer.per...
Main.java:14: error: cannot find symbol int p=Integer.perseInt(line[0]); ^ symbol: method perseInt(String) location: class Integer Main.java:15: error: cannot find symbol int q=Integer.perseInt(line[1]); ^ symbol: method perseInt(String) location: class Integer 2 errors
s036480271
p00011
Java
import java.util.Scanner; public class AOJ { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int T[] = new int[w]; for(int i=0;i<w;i++){ T[i]=i+1; //System.out.println(T[i]); } int n = sc.nextInt(); for(int i = 0;i<n;i++ ){ int temp = 0; ...
Main.java:2: error: class AOJ is public, should be declared in a file named AOJ.java public class AOJ { ^ 1 error
s979581830
p00011
Java
public class Main { public static void main(String[] args) { Scanner sc = null; try { sc = new Scanner(System.in); // 縦線の数 int w = sc.nextInt(); // あみだのスタートライン int[] nums = new int[w]; for (int i = 0; i < w; i++) { nums[i] = i + 1; } // 横線の数 int n = sc.nextInt(); // 横線を引く fo...
Main.java:4: error: cannot find symbol Scanner sc = null; ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s118370862
p00011
Java
public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int num[]=new int[w+1]; for(int i=1;i<=w;i++){ num[i]=i; } int n=sc.nextInt(); for(int i=0;i<n;i++){ String[] str=sc.next().split(","); int a=Integer.parseInt(str[0]); int b=Integer.parseInt(str[1])...
Main.java:1: 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) 1 error
s156532106
p00011
Java
public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int num[]=new int[w+1]; for(int i=1;i<=w;i++){ num[i]=i; } int n=sc.nextInt(); for(int i=0;i<n;i++){ String[] str=sc.next().split(","); int a=Integer.parseInt(str[0]); int b=Integer.parseInt(str[1])...
Main.java:1: 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) 1 error
s251047542
p00011
Java
public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int num[]=new int[w+1]; for(int i=1;i<=w;i++){ num[i]=i; } int n=sc.nextInt(); for(int i=0;i<n;i++){ String[] str=sc.next().split(","); int a=Integer.parseInt(str[0]); int b=Integer.parseInt(str[1])...
Main.java:1: 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) 1 error
s175960846
p00011
Java
public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int num[]=new int[w+1]; for(int i=1;i<=w;i++){ num[i]=i; } int n=sc.nextInt(); for(int i=0;i<n;i++){ String[] str=sc.next().split(","); int a=Integer.parseInt(str[0]); int b=Integer.parseInt(str[1])...
Main.java:1: 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) 1 error
s686494255
p00011
Java
import java.util.Scanner; public class pro4_3 { public static void main(String[] args) { // 標準入力からデータを読み込む準備 Scanner sc= new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for(int i= 0; i< values.length; i++) { values[i] = i+ 1; } for(int i= 0; i< n; i++) { String str= sc.nex...
Main.java:2: error: class pro4_3 is public, should be declared in a file named pro4_3.java public class pro4_3 { ^ 1 error
s079749601
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int kari; int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] =...
Main.java:26: error: ';' expected i++ ^ 1 error
s324480325
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int kari; int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] =...
Main.java:24: error: cannot find symbol for(i = 0;i<values;i++){ ^ symbol: variable i location: class Main Main.java:24: error: cannot find symbol for(i = 0;i<values;i++){ ^ symbol: variable i location: class Main Main.java:24: error: cannot find symbol for(i = 0;i<values;i++){ ...
s833172639
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int kari; int i: int[] values = new int[w]; for (i = 0; i < values.length; i++) { value...
Main.java:9: error: ';' expected int i: ^ 1 error
s323955648
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; } for (int i...
Main.java:23: error: cannot find symbol for(i=0;i<w;i++){ ^ symbol: variable i location: class Main Main.java:23: error: cannot find symbol for(i=0;i<w;i++){ ^ symbol: variable i location: class Main Main.java:23: error: cannot find symbol for(i=0;i<w;i++){ ^ symbol: variable i ...
s054720459
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int kari; int i; int[] values = new int[w]; for (i = 0; i < values.length; i++) { values[...
Main.java:25: error: bad operand types for binary operator '<' for(i = 0;i<values;i++){ ^ first type: int second type: int[] 1 error
s352920628
p00011
Java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; } for (int i = 0; i < n; i++) { String str = sc.next(); String[] a...
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
s154610182
p00011
Java
import java.util.Scanner; public class AOJ3_3{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i] = i + 1; } for(int i = 0;i<n;i++){ String str = sc.next(); ...
Main.java:3: error: class AOJ3_3 is public, should be declared in a file named AOJ3_3.java public class AOJ3_3{ ^ 1 error
s645592939
p00011
Java
import java.util,Scanner; public class Main{ public statiac void main(String[] args){ Scanner sc = new Scanner(System.in); int w =sc.nextInt(); int n =sc.nextInt(); int[] values =new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } for(int i=0;i<n;i++){ string str= sc.next(); String[]ab= str.split("...
Main.java:1: error: ';' expected import java.util,Scanner; ^ Main.java:4: error: <identifier> expected public statiac void main(String[] args){ ^ 2 errors
s941602285
p00011
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w =sc.nextInt(); int n =sc.nextInt(); int[] values =new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } for(int i=0;i<n;i++){ string str= sc.next(); String[]ab= str.split(",...
Main.java:13: error: cannot find symbol string str= sc.next(); ^ symbol: class string location: class Main Main.java:21: error: cannot find symbol printf("%d\n",values[i]); ^ symbol: method printf(String,int) location: class Main 2 errors
s183093343
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; } ...
Main.java:20: error: '.class' expected values[b] = int c; ^ 1 error
s384659299
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; } ...
Main.java:20: error: '.class' expected values[b] = int c; ^ 1 error
s730290106
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; } ...
Main.java:20: error: '.class' expected values[b] = int c; ^ 1 error
s741028918
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; } ...
Main.java:23: error: cannot find symbol for(i = 0;i<w;i++){ ^ symbol: variable i location: class Main Main.java:23: error: cannot find symbol for(i = 0;i<w;i++){ ^ symbol: variable i location: class Main Main.java:23: error: cannot find symbol for(i = 0;i<w;i++){ ^ symbol...
s081979974
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int i; int c = 0; int[] values = new int[w]; for (int i = 0; i < values.length; i++) { va...
Main.java:11: error: variable i is already defined in method main(String[]) for (int i = 0; i < values.length; i++) { ^ Main.java:14: error: variable i is already defined in method main(String[]) for (int i = 0; i < n; i++) { ^ Main.java:26: error: no suitable method found for printf(int) System...
s360792645
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int i; int c = 0; int[] values = new int[w]; for (i = 0; i < values.length; i++) { values...
Main.java:26: error: no suitable method found for printf(int) System.out.printf(values[i]); ^ method PrintStream.printf(String,Object...) is not applicable (argument mismatch; int cannot be converted to String) method PrintStream.printf(Locale,String,Object...) is not applicable (arg...
s665890018
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int i; int c = 0; int[] values = new int[w]; for (i = 0; i < values.length; i++) { values...
Main.java:26: error: no suitable method found for printf(int) System.out.printf(values[i]); ^ method PrintStream.printf(String,Object...) is not applicable (argument mismatch; int cannot be converted to String) method PrintStream.printf(Locale,String,Object...) is not applicable (arg...
s693808027
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int i; int c = 0; int[] values = new int[w]; for (i = 0; i < values.length; i++) { values...
Main.java:26: error: no suitable method found for printf(int) System.out.printf(values[i]); ^ method PrintStream.printf(String,Object...) is not applicable (argument mismatch; int cannot be converted to String) method PrintStream.printf(Locale,String,Object...) is not applicable (arg...
s247356826
p00011
Java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int w, n, a, b, i, swap; w = scan.nextInt(); int[] amidakuji = new int[w]; for (i = 0; i < n; i ++) amidakuji[i] = i; n = scan.nextInt(); for (i = 0; i < n; i ++) { a = scan.nextInt()...
Main.java:8: error: variable n might not have been initialized for (i = 0; i < n; i ++) amidakuji[i] = i; ^ 1 error
s759878155
p00011
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w =sc.nextInt(); int n =sc.nextInt(); int[] values =new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } for(int i=0;i<n;i++){ String str= sc.next(); String[]ab= str.split(",...
Main.java:17: error: cannot find symbol int t=swap[a]; ^ symbol: variable swap location: class Main Main.java:18: error: cannot find symbol swap[a]=swap[b]; ^ symbol: variable swap location: class Main Main.java:18: error: cannot find symbol swap[a]=swap[b]; ^ symbol: variable swap locat...
s000621396
p00011
Java
import java.util.Scanner; public class AOJ3_3{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i] = i + 1; } for(int i = 0;i<n;i++){ String str = sc.next(); ...
Main.java:3: error: class AOJ3_3 is public, should be declared in a file named AOJ3_3.java public class AOJ3_3{ ^ 1 error
s347829013
p00011
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } for(int i=0;i<n;i++){ String str = sc.next(); String[] ab = str.split(","); ...
Main.java:23: error: reached end of file while parsing } ^ 1 error
s503806537
p00011
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } for(int i=0;i<n;i++){ String str = sc.next(); String[] ab = str.split(","); ...
Main.java:6: error: cannot find symbol int[] values = new int[w]; ^ symbol: variable w location: class Main Main.java:10: error: cannot find symbol for(int i=0;i<n;i++){ ^ symbol: variable n location: class Main 2 errors
s154177906
p00011
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc,nextInt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } for(int i=0;i<n;i++){ String str ...
Main.java:7: error: ';' expected int n = sc,nextInt(); ^ 1 error
s185388791
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // 標準入力からデータを読み込む準備 Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; } for (int i = 0; i < n; i+...
Main.java:24: error: cannot find symbol for (i=0;i<n;i++){ ^ symbol: variable i location: class Main Main.java:24: error: cannot find symbol for (i=0;i<n;i++){ ^ symbol: variable i location: class Main Main.java:24: error: cannot find symbol for (i=0;i<n;i++){ ^ symbol: ...
s531146088
p00011
Java
import java.util.Scanner; public class Draw{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int n=sc.nextInt(); int[] values=new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } for(int i=0;i<n;i++){ String str=sc.next(); String[] ab=str.split(","); ...
Main.java:3: error: class Draw is public, should be declared in a file named Draw.java public class Draw{ ^ 1 error
s449293777
p00011
Java
mport java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1...
Main.java:1: error: class, interface, enum, or record expected mport java.util.Scanner; ^ 1 error
s933976145
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int blank; int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; }...
Main.java:25: error: reached end of file while parsing } ^ 1 error
s629556643
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int blank; int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; }...
Main.java:23: error: cannot find symbol println(values[i]);// values?????????????????? ^ symbol: method println(int) location: class Main 1 error
s821174974
p00011
Java
import java.io.*; public class DrawLot{ public static void main(String[] args){ BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); String s,t,u; int a,b,hako; hako=0; String[] abc=new String[2]; int[] xyz=new int[2]; try{ ...
Main.java:3: error: class DrawLot is public, should be declared in a file named DrawLot.java public class DrawLot{ ^ 1 error
s092491288
p00011
Java
import java.io.*; public class main{ public static void main(String[] args){ BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); String s,t,u; int a,b,hako; hako=0; String[] abc=new String[2]; int[] xyz=new int[2]; try{ ...
Main.java:3: error: class main is public, should be declared in a file named main.java public class main{ ^ 1 error
s674901869
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\?????????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int j = 0, k = 0; int[] a = new int[w + 1]; for (int i = 0; i <= w; i++) { a[i] = i; } for (in...
Main.java:25: error: reached end of file while parsing sc.close(); ^ 1 error
s170785646
p00011
Java
import java.util.Scanner; public class DrawingLots { public static void main(String[] args) { // ?¨??????\?????????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int j = 0, k = 0; int[] a = new int[w + 1]; for (int i = 0; i <= w; i++) { a[i] = i; } ...
Main.java:25: error: reached end of file while parsing sc.close(); ^ 1 error
s210708382
p00011
Java
import java.util.Scanner; public class DrawingLots { public static void main(String[] args) { // ?¨??????\?????????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int j = 0, k = 0; int[] a = new int[w + 1]; for (int i = 1; i <= w; i++) { a[i] = i; } ...
Main.java:2: error: class DrawingLots is public, should be declared in a file named DrawingLots.java public class DrawingLots { ^ Main.java:22: error: cannot find symbol for( i = 1; i <= w; i++){ ^ symbol: variable i location: class DrawingLots Main.java:22: error: cannot find symbol for( i = 1; i <= ...
s493749281
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\?????????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int j = 0, k = 0; int[] a = new int[w + 1]; for (int i = 1; i <= w; i++) { a[i] = i; } for (in...
Main.java:22: error: cannot find symbol for( i = 1; i <= w; i++){ ^ symbol: variable i location: class Main Main.java:22: error: cannot find symbol for( i = 1; i <= w; i++){ ^ symbol: variable i location: class Main Main.java:22: error: cannot find symbol for( i = 1; i <= w; i++){ ...
s754161160
p00011
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\?????????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]...
Main.java:23: error: not a statement -uuu:**-F1 Main.java Top L1 (Java/l Abbrev)--------------------------- ^ Main.java:23: error: ';' expected -uuu:**-F1 Main.java Top L1 (Java/l Abbrev)--------------------------- ^ Main.java:23: error: ';' expected -uuu:**-F1 Main.java Top L1 (Java/l...