row_id
large_string
sid
large_string
submission_id
large_string
pid
large_string
problem_id
large_string
uid
large_string
user_id
large_string
date
int64
date_iso
timestamp[ms]
source_name
large_string
code
large_string
compilemessage
large_string
compile_status
large_string
exit_code
int64
javac_version
large_string
category
large_string
label_status
large_string
taxonomy_version
large_string
session_id
large_string
session_6h
large_string
source
large_string
original_status
large_string
code_size
int64
v2_s983151100
s983151100
s983151100
p03013
p03013
u954094464
u954094464
1,566,170,810
2019-08-18T23:26:50
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); boolean[] a=new boolean[n+1]; for(int i=1;i<=n;i++){ i=sc.nextInt(); a[i]=false; } int r=1_000_000_007; long[] d=new long[n+1]; d[0]=1; for(int ...
Main.java:19: error: variable declaration not allowed here int p=i-1; ^ Main.java:21: error: variable declaration not allowed here int p=i-2; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u954094464|p03013|1
u954094464|p03013|0
codenet
Compile Error
547
v2_s467296194
s467296194
s467296194
p03013
p03013
u954094464
u954094464
1,566,170,838
2019-08-18T23:27:18
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); boolean[] a=new boolean[n+1]; for(int i=1;i<=n;i++){ i=sc.nextInt(); a[i]=false; } int r=1_000_000_007; long[] d=new long[n+1]; d[0]=1; for(int ...
Main.java:19: error: incompatible types: int cannot be converted to boolean if(i=1) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u954094464|p03013|1
u954094464|p03013|0
codenet
Compile Error
557
v2_s093373254
s093373254
s093373254
p03014
p03014
u068098242
u068098242
1,560,691,985
2019-06-16T13:33:05
Main.java
import java.util.*; import java.io.*; public class Main { int h, w, max = 0; int[][] x; char[][] g; Main(Scanner in, PrintWriter out) { g = new char[h = in.nextInt()][w = in.nextInt()]; for (int i = 0; i < h; i++) g[i] = in.next().toCharArray(); x = new int[h][w]; for (int i = 0...
Main.java:48: error: bad operand types for binary operator '+' x[j] += cnt; ^ first type: int[] second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p03014|0
u068098242|p03014|0
codenet
Compile Error
1,234
v2_s408360793
s408360793
s408360793
p03014
p03014
u171217191
u171217191
1,599,161,844
2020-09-03T19:37:24
Main.java
import java.util.*; import java.io.*; class Main { public static void main(String args[]) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str[] = br.readLine().split(" "); int n = Integer.parseInt(str[0]); int m = Integer.parseI...
Main.java:100: error: class, interface, enum, or record expected char c[] = br.readLine().toCharArray(); ^ Main.java:101: error: class, interface, enum, or record expected for(int j = 0; j < m; ++j) { ^ Main.java:101: error: class, interface, enum, or record expected ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u171217191|p03014|1
u171217191|p03014|1
codenet
Compile Error
4,558
v2_s328370035
s328370035
s328370035
p03014
p03014
u251779460
u251779460
1,583,560,290
2020-03-07T05:51:30
Main.java
#include <bits/stdc++.h> using namespace std; #define SORT(a) sort((a).begin(), (a).end()) #define RSORT(a) reverse((a).begin(), (a).end()) #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; const long long INF = 1LL << 60; int main() { int h, w; cin >> h >> w; vector<string> s(h); rep(i, h) c...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:3: error: illegal character: '#' #define SORT(a) sort((a).begin(), (a).end()) ^ Main.java:3: error: class, interface, enum, or record expecte...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251779460|p03014|0
u251779460|p03014|0
codenet
Compile Error
1,488
v2_s248264206
s248264206
s248264206
p03015
p03015
u068098242
u068098242
1,560,693,092
2019-06-16T13:51:32
Main.java
import java.util.*; import java.io.*; public class Main { final long mod = (long)1e9+7; String L; int len, cnt = 0; long ans = 0; long[] fac, two; Main(Scanner in, PrintWriter out) { L = in.next(); len = L.length(); for (char c : L) if (c == '1') cnt++; fac = new long[l...
Main.java:65: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p03015|0
u068098242|p03015|0
codenet
Compile Error
1,244
v2_s496385161
s496385161
s496385161
p03015
p03015
u068098242
u068098242
1,560,693,141
2019-06-16T13:52:21
Main.java
import java.util.*; import java.io.*; public class Main { final long mod = (long)1e9+7; String L; int len, cnt = 0; long ans = 0; long[] fac, two; Main(Scanner in, PrintWriter out) { L = in.next(); len = L.length(); for (char c : L) if (c == '1') cnt++; fac = new long[l...
Main.java:16: error: for-each not applicable to expression type for (char c : L) ^ required: array or java.lang.Iterable found: String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p03015|0
u068098242|p03015|0
codenet
Compile Error
1,246
v2_s737568575
s737568575
s737568575
p03015
p03015
u273816974
u273816974
1,584,318,400
2020-03-16T00:26:40
Main.java
import java.util.*; public class Main { static int MOD = 1000000007; public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); String str = sc.next(); char c[] = str.toCharArray(); int n = c.length; ...
Main.java:22: error: ';' expected dp[i+1][0] += dp[i][k] ^ Main.java:27: error: ';' expected dp[i+1][1] += dp[i][k] ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p03015|0
u273816974|p03015|0
codenet
Compile Error
1,223
v2_s818876500
s818876500
s818876500
p03015
p03015
u539616549
u539616549
1,560,135,853
2019-06-10T03:04:13
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int bi = sc.nextInt(); int n = Integer.parseInt(bi, 2); System.out.println(2*n+1); } }
Main.java:6: error: incompatible types: int cannot be converted to String int n = Integer.parseInt(bi, 2); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u539616549|p03015|0
u539616549|p03015|0
codenet
Compile Error
218
v2_s558403528
s558403528
s558403528
p03015
p03015
u676323984
u676323984
1,560,133,782
2019-06-10T02:29:42
Main.java
public class Main { public static BigInteger two=new BigInteger("2"),one=new BigInteger("1"),zero=new BigInteger("0"); public static long mod=(long) (1e9+7); public static long GetAns(BigInteger a) { if(a.equals(zero)) return 0; if(a.equals(one)) return 1; if(a.mod(new BigInteger("2")).equals(one)) { ret...
Main.java:2: error: cannot find symbol public static BigInteger two=new BigInteger("2"),one=new BigInteger("1"),zero=new BigInteger("0"); ^ symbol: class BigInteger location: class Main Main.java:4: error: cannot find symbol public static long GetAns(BigInteger a) ^ s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u676323984|p03015|0
u676323984|p03015|0
codenet
Compile Error
773
v2_s003638156
s003638156
s003638156
p03015
p03015
u676323984
u676323984
1,560,134,068
2019-06-10T02:34:28
Main.java
#include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e5+10,mod=1e9+7; char s[N]; int a[N]; ll k; ll f(ll k) { if(k==0) return 0; if(k==1) return 1; if(k%2) return (2*f(k/2)+f(k/2+1))%mod; return 3*f(k/2)%mod; } int main() { scanf("%s",s+1); int len=strlen(s+1); for...
Main.java:1: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<bits/stdc++.h> ^ Main.java:3: error: class, interface, enum, or record expected typedef long long ll; ^ Main.java:4: error: class, interface, enum, or record expected cons...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u676323984|p03015|0
u676323984|p03015|0
codenet
Compile Error
472
v2_s877259468
s877259468
s877259468
p03016
p03016
u025593152
u025593152
1,560,702,508
2019-06-16T16:28:28
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int l = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int m = sc.nextInt(); int sum = 0; int ai = 0; int nd = 0; for(int i = l - 1; i >=...
Main.java:16: error: incompatible types: possible lossy conversion from double to int sum = sum + ai * Math.pow(10,nd); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u025593152|p03016|0
u025593152|p03016|0
codenet
Compile Error
508
v2_s944443655
s944443655
s944443655
p03016
p03016
u025593152
u025593152
1,560,702,887
2019-06-16T16:34:47
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int l = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int m = sc.nextInt(); int sum = 0; int ai = 0; int nd = 0; for(int i = l - 1; i >=...
Main.java:14: error: incompatible types: possible lossy conversion from double to int nd = Math.floor(sum / 10); ^ Main.java:16: error: incompatible types: possible lossy conversion from double to int sum = sum + ai * Math.pow(10,nd); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u025593152|p03016|0
u025593152|p03016|0
codenet
Compile Error
502
v2_s006227886
s006227886
s006227886
p03016
p03016
u518883877
u518883877
1,560,133,165
2019-06-10T02:19:25
Main.java
import java.io.*; import java.util.*; import java.math.BigInteger; public class Main { FastScanner _in; PrintWriter _out; void solve() { long l = _in.nextLong(); long a = _in.nextLong(); long b = _in.nextLong(); long m = _in.nextLong(); String s = String.valueOf(a); String inc = String.valueOf(b);...
Main.java:46: error: cannot find symbol new Test().run(); ^ symbol: class Test location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u518883877|p03016|0
u518883877|p03016|0
codenet
Compile Error
1,858
v2_s843783326
s843783326
s843783326
p03017
p03017
u005491552
u005491552
1,588,959,764
2020-05-08T17:42:44
Main.java
class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int a = scanner.nextInt()-1; int b = scanner.nextInt()-1; int c = scanner.nextInt()-1; int d = scanner.nextInt()-1; String s = scanner.next...
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u005491552|p03017|0
u005491552|p03017|0
codenet
Compile Error
633
v2_s883855153
s883855153
s883855153
p03017
p03017
u127030911
u127030911
1,559,533,030
2019-06-03T03:37:10
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); int D = sc.nextInt(); String S = sc.next(); ...
Main.java:28: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u127030911|p03017|0
u127030911|p03017|0
codenet
Compile Error
714
v2_s081276394
s081276394
s081276394
p03017
p03017
u137938820
u137938820
1,571,171,873
2019-10-15T20:37:53
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); int D = sc.nextInt(); String S = sc.next(); sc.close(); String ans = ""; if(C < D) { ans = "Yes"; for(int...
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
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u137938820|p03017|1
u137938820|p03017|1
codenet
Compile Error
594
v2_s210447065
s210447065
s210447065
p03017
p03017
u273816974
u273816974
1,559,532,309
2019-06-03T03:25:09
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int startA = sc.nextInt() - 1; int startB = sc.nextInt() - 1; int goalA = sc.nextInt() - 1;...
Main.java:14: error: ')' or ',' expected String str2 = str.substring(Math.max(0, startA - 1), Math.min(n - 1, goalB + 1); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p03017|0
u273816974|p03017|0
codenet
Compile Error
907
v2_s410892988
s410892988
s410892988
p03017
p03017
u445036147
u445036147
1,559,526,633
2019-06-03T01:50:33
Try.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); int D = sc.nextInt(); String str = sc.nextLine(); Try try1 = new Try(A,C,str); Try t...
Try.java:37: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u445036147|p03017|0
u445036147|p03017|0
codenet
Compile Error
764
v2_s557534948
s557534948
s557534948
p03017
p03017
u598826970
u598826970
1,559,525,025
2019-06-03T01:23:45
Main.java
public class Main { public static void main(String[] args) { final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); final int n = in.nextInt(); final int a = in.nextInt(); final int b = in.nextInt(); final int c = in.nextInt(); final in...
Main.java:4: error: cannot find symbol final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(Sys...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u598826970|p03017|0
u598826970|p03017|0
codenet
Compile Error
1,286
v2_s071100501
s071100501
s071100501
p03017
p03017
u750120744
u750120744
1,559,718,113
2019-06-05T07:01:53
Main.java
test
Main.java:1: error: reached end of file while parsing test ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u750120744|p03017|0
u750120744|p03017|0
codenet
Compile Error
4
v2_s070890242
s070890242
s070890242
p03017
p03017
u798894056
u798894056
1,559,528,849
2019-06-03T02:27:29
Main.java
class Main{ public static void main(String[] args){ System.out.println("Yes") } }
Main.java:3: error: ';' expected System.out.println("Yes") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u798894056|p03017|0
u798894056|p03017|0
codenet
Compile Error
89
v2_s972113347
s972113347
s972113347
p03017
p03017
u920212194
u920212194
1,588,386,271
2020-05-02T02:24:31
Main.java
import java.util.Scanner; public class Main public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int a = Integer.parseInt(sc.next())-1; int b = Integer.parseInt(sc.next())-1; int c = Integer.parseInt(sc.next())-1; int d = Integer.parseInt(...
Main.java:4: error: '{' expected public class Main ^ Main.java:6: 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:57: error: class, interface, enum, or recor...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u920212194|p03017|0
u920212194|p03017|0
codenet
Compile Error
934
v2_s475096423
s475096423
s475096423
p03017
p03017
u935368823
u935368823
1,559,528,389
2019-06-03T02:19:49
Main.java
Scanner s = new Scanner(System.in); int n, a, b, c, d; n = s.nextInt(); a = s.nextInt(); b = s.nextInt(); c = s.nextInt(); d = s.nextInt(); String sk = s.next(); String si[] = new String[n]; int i, j; String ans = "No"; si = sk.split(""); for (i = b; i < si.length; i++) { if (si[i].equal...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner s = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:2: error: class, interface, enum, or record expected int n, a, b, c, d; ^ Main.java:4: error: class, interface, enum, or record ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u935368823|p03017|0
u935368823|p03017|0
codenet
Compile Error
781
v2_s432668576
s432668576
s432668576
p03018
p03018
u273816974
u273816974
1,559,574,825
2019-06-03T15:13:45
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); String str = sc.next(); int n = str.length(); char[] s = new char[n]; for (int i = 0; i < n; i++) { s...
Main.java:18: error: ';' expected boolean meetsA = s[i] == 'A' ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p03018|0
u273816974|p03018|0
codenet
Compile Error
881
v2_s715337125
s715337125
s715337125
p03018
p03018
u487641373
u487641373
1,559,781,418
2019-06-06T00:36:58
Main.java
#include "bits/stdc++.h" using namespace std; using ll = long long; int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); string s; cin >> s; int n = s.size(); int numofa = 0, ans = 0; for(int i = 0; i < n-2; i++){ if(s[i] == 'A' && s[i+1] == 'B' && s[i+2] == 'C'){ ...
Main.java:1: error: illegal character: '#' #include "bits/stdc++.h" ^ Main.java:1: error: class, interface, enum, or record expected #include "bits/stdc++.h" ^ Main.java:3: error: unnamed classes are a preview feature and are disabled by default. using ll = long long; ^ (use --enable-preview to enable unname...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487641373|p03018|0
u487641373|p03018|0
codenet
Compile Error
572
v2_s570477659
s570477659
s570477659
p03018
p03018
u789327911
u789327911
1,559,524,348
2019-06-03T01:12:28
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { int s=ABCBABCBACBABCBCABCBABC; while(s); } } }
Main.java:10: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u789327911|p03018|0
u789327911|p03018|0
codenet
Compile Error
186
v2_s910431585
s910431585
s910431585
p03018
p03018
u867534917
u867534917
1,559,531,873
2019-06-03T03:17:53
Main.java
public class Main { public static void main(String[] args) { new Main().run(); } private int count; private byte[] s; private void run() { count = 0; Scanner scanner = new Scanner(System.in); String S = scanner.next().replace("BC", "D"); s = S.getBytes(); /...
Main.java:12: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:12: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u867534917|p03018|0
u867534917|p03018|0
codenet
Compile Error
927
v2_s777429325
s777429325
s777429325
p03019
p03019
u504228740
u504228740
1,559,534,519
2019-06-03T04:01:59
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.Comparator; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n =sc.nextInt(); int x = sc.nextInt(); long goal=0; long ans=0; th[] tt=new th[n]; for(int i=0; i<n; i++){ int b= sc.nextI...
Main.java:28: error: bad operand types for binary operator '%' if(goal%tt[i]!=0){ ^ first type: long second type: th 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u504228740|p03019|0
u504228740|p03019|0
codenet
Compile Error
969
v2_s472593316
s472593316
s472593316
p03019
p03019
u669432519
u669432519
1,560,592,807
2019-06-15T10:00:07
Main.java
#include "bits/stdc++.h" using namespace std; int N, X; long long l[300010], r[300010], b[300010]; bool good(long long need) { long long extra = need % X; need /= X; if(need >= N) return true; long long sum = 0; vector <pair <long long, int>> v; for(int i = 1; i <= N; i++) { sum -= l[i] * b[i]; v.emplace_ba...
Main.java:1: error: illegal character: '#' #include "bits/stdc++.h" ^ Main.java:1: error: class, interface, enum, or record expected #include "bits/stdc++.h" ^ Main.java:3: error: class, interface, enum, or record expected int N, X; ^ Main.java:4: error: class, interface, enum, or record expected long long l[3...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u669432519|p03019|0
u669432519|p03019|0
codenet
Compile Error
1,387
v2_s281332312
s281332312
s281332312
p03019
p03019
u951672936
u951672936
1,561,821,537
2019-06-29T15:18:57
Main.java
/** * Created at 10:23 on 2019-06-29 */ import java.io.*; import java.util.*; public class Main { static FastScanner sc = new FastScanner(); static int[] dx = {0, 1, 0, -1}; static int[] dy = {-1, 0, 1, 0}; static long MOD = (long) (1e9 + 7); int N; int X; public static void main(String[] args) {...
Main.java:29: error: incompatible types: possible lossy conversion from long to int X = sc.nextLong(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951672936|p03019|1
u951672936|p03019|1
codenet
Compile Error
6,950
v2_s147464868
s147464868
s147464868
p03020
p03020
u796267171
u796267171
1,559,852,472
2019-06-06T20:21:12
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.util.Arrays; import java.io.BufferedWriter; import java.util.PriorityQueue; import java.util.AbstractQueue; import java.util.InputMismatchException; import java.io.IO...
Main.java:66: error: cannot find symbol public static void addEdge(List<DManhattanMaxMatching.Edge.MinCostFlow>[] graph, int s, int t, long cap, long cost) { ^ symbol: class Edge location: class DManhattanMaxMatching Main.java:72: error:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u796267171|p03020|0
u796267171|p03020|0
codenet
Compile Error
8,697
v2_s014259120
s014259120
s014259120
p03023
p03023
u206017850
u206017850
1,559,437,571
2019-06-02T01:06:11
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); System.out.println(180 * (num - 2)); } }
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
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u206017850|p03023|0
u206017850|p03023|0
codenet
Compile Error
174
v2_s865531735
s865531735
s865531735
p03023
p03023
u216939917
u216939917
1,559,483,899
2019-06-02T13:58:19
main.java
import java.util.Scanner; public class main.java { static void main (String[]args){ Scanner tc =new Scanner(System.in); int N,S; N=tc.nextInt(); if(N<=3){ S = (N - 2 )*180; }else{ N=tc.nextInt(); S = (N - 2)*180; } System.out.println(S); } }
main.java:2: error: '{' expected public class main.java { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u216939917|p03023|0
u216939917|p03023|0
codenet
Compile Error
268
v2_s763042955
s763042955
s763042955
p03023
p03023
u216939917
u216939917
1,559,486,017
2019-06-02T14:33:37
UMA.java
import java.util.Scanner; public class UMA.java { public static void main (String[]args){ Scanner tc =new Scanner(System.in); int N,S; N=tc.nextInt(); S= (N - 2)*180; if(N<=3 && N>=100){ N=tc.nextInt(); S = (N - 2)*180; } System.out.println(S); } }
UMA.java:2: error: '{' expected public class UMA.java { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u216939917|p03023|0
u216939917|p03023|0
codenet
Compile Error
273
v2_s220183073
s220183073
s220183073
p03023
p03023
u216939917
u216939917
1,559,486,086
2019-06-02T14:34:46
Main.java
import java.util.Scanner; public class Main.java{ public static void main (String[]args){ Scanner tc =new Scanner(System.in); int N,S; N=tc.nextInt(); S= (N - 2)*180; if(N<=3 && N>=100){ N=tc.nextInt(); S = (N - 2)*180; } System.out.println(S); } }
Main.java:2: error: '{' expected public class Main.java{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u216939917|p03023|0
u216939917|p03023|0
codenet
Compile Error
273
v2_s887131562
s887131562
s887131562
p03023
p03023
u223718904
u223718904
1,559,437,425
2019-06-02T01:03:45
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); N = 180* (N-2); System.out.println(N); } }
Main.java:13: error: illegal character: '\u3000' N?= 180* (N-2); ^ Main.java:13: error: not a statement N?= 180* (N-2); ^ Main.java:13: error: not a statement N?= 180* (N-2); ^ Main.java:13: error: ';' expected N?= 180* (N-2); ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u223718904|p03023|0
u223718904|p03023|0
codenet
Compile Error
277
v2_s863130360
s863130360
s863130360
p03023
p03023
u261225456
u261225456
1,559,437,283
2019-06-02T01:01:23
Main.java
#include "pch.h" #include <iostream> void a() { int n; std::cin >> n; std::cout << (n - 2) * 180 << std::endl; } int main() { a(); }
Main.java:1: error: illegal character: '#' #include "pch.h" ^ Main.java:1: error: class, interface, enum, or record expected #include "pch.h" ^ Main.java:2: error: illegal character: '#' #include <iostream> ^ Main.java:7: error: class, interface, enum, or record expected std::cin >> n; ^ Main.java:8: error: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u261225456|p03023|0
u261225456|p03023|0
codenet
Compile Error
140
v2_s386768575
s386768575
s386768575
p03023
p03023
u274962354
u274962354
1,588,419,029
2020-05-02T11:30:29
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.NoSuchElementException; import java.util.Random; import java.util.Scanner; class UnionFind{ int Parent[]; UnionFind(int n){//Initialize by -1 Parent=new int[n]; Ar...
Main.java:274: error: ')' expected if (nl < Integer.MIN_VALUE || nlimport java.io.IOException; ^ Main.java:274: error: not a statement if (nl < Integer.MIN_VALUE || nlimport java.io.IOException; ^ Main.java:275: error: illegal s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u274962354|p03023|0
u274962354|p03023|0
codenet
Compile Error
12,600
v2_s819242002
s819242002
s819242002
p03023
p03023
u353919145
u353919145
1,569,132,769
2019-09-22T06:12:49
Main.java
import java.util.Scanner; Class SumOfIAngles { public static void main (String [] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println((n-2)*180); } }
Main.java:2: error: class, interface, enum, or record expected Class SumOfIAngles { ^ 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:8: error: class, interfac...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p03023|0
u353919145|p03023|0
codenet
Compile Error
184
v2_s980757086
s980757086
s980757086
p03023
p03023
u401047847
u401047847
1,559,440,942
2019-06-02T02:02:22
Main.java
import java.util.*; class Main(){ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println(180*(n-2)); } }
Main.java:3: error: '{' expected class Main(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u401047847|p03023|0
u401047847|p03023|0
codenet
Compile Error
193
v2_s457914217
s457914217
s457914217
p03023
p03023
u445036147
u445036147
1,559,437,731
2019-06-02T01:08:51
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num = sc.nextInt(); System.out.println(num*30(num-1)); } }
Main.java:7: error: ')' or ',' expected System.out.println(num*30(num-1)); ^ Main.java:7: error: not a statement System.out.println(num*30(num-1)); ^ Main.java:7: error: ';' expected System.out.println(num*30(num-1)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u445036147|p03023|0
u445036147|p03023|0
codenet
Compile Error
189
v2_s152360751
s152360751
s152360751
p03023
p03023
u546051065
u546051065
1,559,437,384
2019-06-02T01:03:04
Main.java
import java.util.Scanner; public Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); System.out.println(180 * (N-2)); sc.close(); } }
Main.java:2: error: class, interface, enum, or record expected public Main { ^ Main.java:4: 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...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u546051065|p03023|0
u546051065|p03023|0
codenet
Compile Error
257
v2_s485870409
s485870409
s485870409
p03023
p03023
u546051065
u546051065
1,559,437,744
2019-06-02T01:09:04
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); String S = sc.next(); S = S.replaceAll("×", ""); if(S.length() > 8) { System.out.println("YES"); }else { System.out.println("NO"); } sc.close(); ...
Main.java:15: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u546051065|p03023|0
u546051065|p03023|0
codenet
Compile Error
353
v2_s908110097
s908110097
s908110097
p03023
p03023
u613944332
u613944332
1,559,438,048
2019-06-02T01:14:08
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if(n>2){ int ic = 180*(n-2)/2; } System.out.println(ic); } }
Main.java:10: error: cannot find symbol System.out.println(ic); ^ symbol: variable ic location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u613944332|p03023|0
u613944332|p03023|0
codenet
Compile Error
263
v2_s227773172
s227773172
s227773172
p03023
p03023
u613944332
u613944332
1,559,438,179
2019-06-02T01:16:19
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int ic; if(n>2){ ic = 180*(n-2)/2; } System.out.println(ic); } }
Main.java:11: error: variable ic might not have been initialized System.out.println(ic); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u613944332|p03023|0
u613944332|p03023|0
codenet
Compile Error
274
v2_s921539335
s921539335
s921539335
p03023
p03023
u613944332
u613944332
1,559,438,391
2019-06-02T01:19:51
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int ic; if(n>2 and n<101){ ic = 180*(n-2)/2; System.out.println(ic); } } }
Main.java:8: error: ')' expected if(n>2 and n<101){ ^ Main.java:8: error: ';' expected if(n>2 and n<101){ ^ Main.java:8: error: variable declaration not allowed here if(n>2 and n<101){ ^ Main.java:8: error: illegal start of type if(n>2...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u613944332|p03023|0
u613944332|p03023|0
codenet
Compile Error
296
v2_s816470799
s816470799
s816470799
p03023
p03023
u669731179
u669731179
1,559,439,556
2019-06-02T01:39:16
Sumo.java
package org.atcoder.mSolutions.procon; import java.util.Scanner; public class Sumo { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String results = sc.next(); int count = 0; for(char x : results.toCharArray()){ if(x == 'x'){ ...
Sumo.java:18: error: cannot find symbol if(x < 8){ ^ symbol: variable x location: class Sumo 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u669731179|p03023|0
u669731179|p03023|0
codenet
Compile Error
490
v2_s689358882
s689358882
s689358882
p03023
p03023
u795141112
u795141112
1,559,437,312
2019-06-02T01:01:52
Main.java
import sys # S = input() A = int(input()) print((A-2)*180)
Main.java:3: error: illegal character: '#' # S = input() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u795141112|p03023|0
u795141112|p03023|0
codenet
Compile Error
63
v2_s899832996
s899832996
s899832996
p03023
p03023
u863370423
u863370423
1,569,132,536
2019-09-22T06:08:56
Main.java
import java.util.Scanner; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); System.out.println((N-2)*180); }
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) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p03023|0
u863370423|p03023|0
codenet
Compile Error
172
v2_s666651130
s666651130
s666651130
p03024
p03024
u018679195
u018679195
1,569,135,459
2019-09-22T06:57:39
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String winLoss = sc.nextLine(); int wins =0; int loss=0; for(int i = 0; i<winLoss.length();i++){ if (winLoss.charAt(i) == 'o'){ wins++; } else if(winLoss.charAt(i)=='x'){ loss+...
Main.java:31: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p03024|0
u018679195|p03024|0
codenet
Compile Error
620
v2_s438453134
s438453134
s438453134
p03024
p03024
u046105273
u046105273
1,559,437,812
2019-06-02T01:10:12
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String line = sc.next(); String[] s = line.split(""); int count = 0; boolean check = false; for(int i=0; i<s.length(); i++){ if(s[i].equals("x")) coun...
Main.java:9: error: cannot find symbol for(int i=0; i<s.length(); i++){ ^ symbol: method length() location: variable s of type String[] 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u046105273|p03024|0
u046105273|p03024|0
codenet
Compile Error
507
v2_s056302598
s056302598
s056302598
p03024
p03024
u161376245
u161376245
1,560,403,874
2019-06-13T05:31:14
Main.java
package proCon_MSOLUTIONS_20190601; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub try (Scanner sc = new Scanner(System.in)) { char[] s = sc.next().toCharArray(); int countX = 0; for (int i = 0; i < s.length; i++) { if (s[i] == 'x') countX++; } ...
Main.java:7: error: cannot find symbol try (Scanner sc = new Scanner(System.in)) { ^ symbol: class Scanner location: class Main Main.java:7: error: cannot find symbol try (Scanner sc = new Scanner(System.in)) { ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u161376245|p03024|1
u161376245|p03024|1
codenet
Compile Error
464
v2_s907885754
s907885754
s907885754
p03024
p03024
u161376245
u161376245
1,560,403,891
2019-06-13T05:31:31
Main.java
public class Main { public static void main(String[] args) { // TODO Auto-generated method stub try (Scanner sc = new Scanner(System.in)) { char[] s = sc.next().toCharArray(); int countX = 0; for (int i = 0; i < s.length; i++) { if (s[i] == 'x') countX++; } if (countX > 7) System.out.println("...
Main.java:5: error: cannot find symbol try (Scanner sc = new Scanner(System.in)) { ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol try (Scanner sc = new Scanner(System.in)) { ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u161376245|p03024|1
u161376245|p03024|1
codenet
Compile Error
427
v2_s056831701
s056831701
s056831701
p03024
p03024
u261225456
u261225456
1,559,437,970
2019-06-02T01:12:50
Main.java
#include <string> #include <iostream> using namespace std; void b() { string S; cin >> S; int k = S.length(); int count = 0; for (int i = 0; i < k; i++) { if (S[i] == 'o') count++; } std::cout << (count+(15-k) >= 8 ? "YES" : "NO") << std::endl; } int main() { b(); }
Main.java:1: error: illegal character: '#' #include <string> ^ Main.java:2: error: illegal character: '#' #include <iostream> ^ Main.java:10: error: not a statement cin >> S; ^ Main.java:19: error: not a statement std::cout << (count+(15-k) >= 8 ? "YES" : "NO") << std::endl; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u261225456|p03024|0
u261225456|p03024|0
codenet
Compile Error
286
v2_s949696064
s949696064
s949696064
p03024
p03024
u445036147
u445036147
1,559,438,977
2019-06-02T01:29:37
Main.java
import java.util.*; class Main{ int numo,numx; public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str = sc.next(); String[] strArray = str.split(""); } for(int i=0; i < strArray.length ;i++){ if("o"equals(strArray[i])){ numo++; }else{ numx++; ...
Main.java:10: error: illegal start of type for(int i=0; i < strArray.length ;i++){ ^ Main.java:10: error: > or ',' expected for(int i=0; i < strArray.length ;i++){ ^ Main.java:10: error: <identifier> expected for(int i=0; i < strArray.length ;i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u445036147|p03024|0
u445036147|p03024|0
codenet
Compile Error
421
v2_s128641106
s128641106
s128641106
p03024
p03024
u445036147
u445036147
1,559,439,060
2019-06-02T01:31:00
Main.java
import java.util.*; class Main{ int numo,numx; public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str = sc.next(); String[] strArray = str.split(""); } for(int i=0; i < strArray.length ;i++){ if("o".equals(strArray[i])){ numo++; }else{ numx++; ...
Main.java:10: error: illegal start of type for(int i=0; i < strArray.length ;i++){ ^ Main.java:10: error: > or ',' expected for(int i=0; i < strArray.length ;i++){ ^ Main.java:10: error: <identifier> expected for(int i=0; i < strArray.length ;i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u445036147|p03024|0
u445036147|p03024|0
codenet
Compile Error
422
v2_s208305338
s208305338
s208305338
p03024
p03024
u445036147
u445036147
1,559,439,142
2019-06-02T01:32:22
Main.java
import java.util.*; class Main{ int numo,numx; public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str = sc.next(); String[] strArray = str.split(""); } for(int i=0; i < strArray.length(); i++){ if("o".equals(strArray[i])){ numo++; }else{ numx++; ...
Main.java:10: error: illegal start of type for(int i=0; i < strArray.length(); i++){ ^ Main.java:10: error: > or ',' expected for(int i=0; i < strArray.length(); i++){ ^ Main.java:10: error: <identifier> expected for(int i=0; i < strArray.length(); i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u445036147|p03024|0
u445036147|p03024|0
codenet
Compile Error
424
v2_s360489775
s360489775
s360489775
p03024
p03024
u445036147
u445036147
1,559,439,820
2019-06-02T01:43:40
Main.java
import java.util.*; class Main{ public static void main(String[] args){ int numo=0; int numx=0; Scanner sc = new Scanner(System.in); String str = sc.next(); String[] strArray = str.split(""); for(int i=0; i < strArray.length(); i++){ if("o".equals(strArray[i])){ numo++; }else{ ...
Main.java:10: error: cannot find symbol for(int i=0; i < strArray.length(); i++){ ^ symbol: method length() location: variable strArray of type String[] 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u445036147|p03024|0
u445036147|p03024|0
codenet
Compile Error
443
v2_s341793364
s341793364
s341793364
p03024
p03024
u445036147
u445036147
1,559,520,984
2019-06-03T00:16:24
Main.java
import java.util.*; class Main{ public static void main(String[] args){ int numo=0; // int numx=0; Scanner sc = new Scanner(System.in); String str = sc.nextLine(); //String[] strArray = str.split(""); for(int i=0; i < str.length(); i++){ if((str.charAt(i)).equals("o"){ numo++; } ...
Main.java:11: error: ')' expected if((str.charAt(i)).equals("o"){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u445036147|p03024|1
u445036147|p03024|1
codenet
Compile Error
446
v2_s728403746
s728403746
s728403746
p03024
p03024
u546051065
u546051065
1,559,437,702
2019-06-02T01:08:22
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); String S = sc.next(); S = S.replaceAll("×", ""); if(S.length() > 8) { System.out.println("YES"); }else { System.out.println("NO"); } sc.close();
Main.java:14: error: reached end of file while parsing sc.close(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u546051065|p03024|0
u546051065|p03024|0
codenet
Compile Error
347
v2_s143721213
s143721213
s143721213
p03024
p03024
u650081733
u650081733
1,559,437,875
2019-06-02T01:11:15
Main.java
public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { String s = sc.next(); int k = s.length(); int win = 0; for (int i = 0; i < k; i++) { if (s.substring(i, i + 1).equals("o")) { win++; } } if ((15 - k + win >= 8)) { System.o...
Main.java:5: error: cannot find symbol try (Scanner sc = new Scanner(System.in)) { ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol try (Scanner sc = new Scanner(System.in)) { ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u650081733|p03024|0
u650081733|p03024|0
codenet
Compile Error
397
v2_s475985316
s475985316
s475985316
p03024
p03024
u660444966
u660444966
1,559,492,216
2019-06-02T16:16:56
Main.java
mport java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int win = 0; for (int i = 0; i < s.length(); i++) { if(s.charAt(i) == 'o') win++; } System.out.println(8 - win <= 1...
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u660444966|p03024|0
u660444966|p03024|0
codenet
Compile Error
382
v2_s779756660
s779756660
s779756660
p03024
p03024
u669731179
u669731179
1,559,439,533
2019-06-02T01:38:53
Main.java
package org.atcoder.mSolutions.procon; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String results = sc.next(); int count = 0; for(char x : results.toCharArray()){ if(x === 'x'){ ...
Main.java:13: error: illegal start of expression if(x === 'x'){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u669731179|p03024|0
u669731179|p03024|0
codenet
Compile Error
491
v2_s692663300
s692663300
s692663300
p03024
p03024
u669731179
u669731179
1,559,439,576
2019-06-02T01:39:36
Main.java
package org.atcoder.mSolutions.procon; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String results = sc.next(); int count = 0; for(char x : results.toCharArray()){ if(x == 'x'){ ...
Main.java:18: error: cannot find symbol if(x < 8){ ^ symbol: variable x location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u669731179|p03024|0
u669731179|p03024|0
codenet
Compile Error
490
v2_s316198698
s316198698
s316198698
p03025
p03025
u305384049
u305384049
1,560,028,104
2019-06-08T21:08:24
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Scanner; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in...
Main.java:29: error: incompatible types: long[] cannot be converted to long static long xs = new long[MAX + 1]; ^ Main.java:30: error: incompatible types: long[] cannot be converted to long static long ys = new long[MAX + 1]; ^ Main.java:53: error: array...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u305384049|p03025|0
u305384049|p03025|0
codenet
Compile Error
2,396
v2_s153358022
s153358022
s153358022
p03026
p03026
u046105273
u046105273
1,559,440,464
2019-06-02T01:54:24
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] value = new int[num]; for(int i=0; i<num; i++){ value[i] = sc.nextInt(); } /*for(int i=0; i<value.length-1; i++) { for(i...
Main.java:23: error: cannot find symbol System.out.println((a+b+c) + " " + s); ^ symbol: variable a location: class Main Main.java:23: error: cannot find symbol System.out.println((a+b+c) + " " + s); ^ symbol: variable b location: class Main Main.java:23: er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u046105273|p03026|0
u046105273|p03026|0
codenet
Compile Error
714
v2_s044723158
s044723158
s044723158
p03026
p03026
u301743570
u301743570
1,559,440,616
2019-06-02T01:56:56
Main.java
import java.io.*; import java.math.*; import java.security.KeyStore.Entry; import java.util.*; public class Main { private static boolean[] vis; private static long[] dist; public static void merge(int arr[], int l, int m, int r) { // Find sizes of two subarrays to be merged int n1 = m - l + ...
Main.java:93: error: method dfs in class Main cannot be applied to given types; dfs(gr,arr.get(i)); ^ required: ArrayList<Integer>[],int,int[],HashMap<Integer,HashMap<Integer,Integer>> found: ArrayList<Integer>[],Integer reason: actual and formal argument lists differ in length No...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u301743570|p03026|0
u301743570|p03026|0
codenet
Compile Error
5,207
v2_s717680203
s717680203
s717680203
p03026
p03026
u507706381
u507706381
1,582,120,937
2020-02-19T14:02:17
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); List<List<Integer>> from = new ArrayList<>(); for (int i = 0; i < N; i++) { from.add(new ArrayList<>()); } for (int i = 0; i < N-1; i++) { ...
Main.java:30: error: cannot find symbol q.offer(new Pair(0, d[0])); ^ symbol: class Pair location: class Main Main.java:34: error: int cannot be dereferenced for (int next : from.get(now.a)) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507706381|p03026|2
u507706381|p03026|2
codenet
Compile Error
1,326
v2_s040687985
s040687985
s040687985
p03026
p03026
u507706381
u507706381
1,582,120,971
2020-02-19T14:02:51
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); List<List<Integer>> from = new ArrayList<>(); for (int i = 0; i < N; i++) { from.add(new ArrayList<>()); } for (int i = 0; i < N-1; i++) { ...
Main.java:34: error: int cannot be dereferenced for (int next : from.get(now.a)) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507706381|p03026|2
u507706381|p03026|2
codenet
Compile Error
1,310
v2_s806416394
s806416394
s806416394
p03027
p03027
u334656323
u334656323
1,559,443,815
2019-06-02T02:50:15
Main.java
import java.math.*; import static java.math.BigInteger.*; import java.util; static class Split { static long N; static BigInteger factorial(long n) { if (n < 2) { return ONE; } BigInteger p = ONE, r = ONE; N = 1; long log2n = 31 - Integer.numberOfLeadingZeros(n); long h = 0, shift = 0, high = 1; wh...
Main.java:38: error: unnamed classes are a preview feature and are disabled by default. static final long modPow(long x, long n, final long mod) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334656323|p03027|0
u334656323|p03027|0
codenet
Compile Error
1,571
v2_s317885147
s317885147
s317885147
p03027
p03027
u552502395
u552502395
1,559,450,984
2019-06-02T04:49:44
Main.java
import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.LinkedList; import java.util.Scanner; public class Main { public static void main(String args[]) { try (Scanner in = new Scanner(System.in)) { long mod = 1000003L; ...
Main.java:31: error: cannot find symbol long res = AntBook.modPow(x[i], n[i], mod); ^ symbol: variable AntBook location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u552502395|p03027|0
u552502395|p03027|0
codenet
Compile Error
2,030
v2_s463143252
s463143252
s463143252
p03027
p03027
u653981267
u653981267
1,559,505,347
2019-06-02T19:55:47
Main.java
import java.util.*; public class Main { public static long MOD = (long)Math.pow(10, 6) + 3; public static void main(String[] args) { Scanner sc = new Scanner(System.in); long[] kai = new long[MOD]; long[] inkai = new long[MOD]; long[] in = new long[MOD]; kai[0] = 1; kai[1] = 1; inkai[1]...
Main.java:7: error: incompatible types: possible lossy conversion from long to int long[] kai = new long[MOD]; ^ Main.java:8: error: incompatible types: possible lossy conversion from long to int long[] inkai = new long[MOD]; ^ Main.java:9: error: incompatib...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03027|0
u653981267|p03027|0
codenet
Compile Error
1,281
v2_s897571147
s897571147
s897571147
p03027
p03027
u653981267
u653981267
1,559,505,439
2019-06-02T19:57:19
Main.java
import java.util.*; public class Main { public static long MOD = (long)Math.pow(10, 6) + 3; public static void main(String[] args) { Scanner sc = new Scanner(System.in); long[] kai = new long[(int)MOD]; long[] inkai = new long[(int)MOD]; long[] in = new long[(int)MOD]; kai[0] = 1; kai[1] = ...
Main.java:25: error: incompatible types: unexpected return value return func(x, n); ^ Main.java:27: error: incompatible types: possible lossy conversion from long to int x = (x * in[d]) % MOD; ^ Main.java:29: error: incompatible types: unexpected return value ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03027|0
u653981267|p03027|0
codenet
Compile Error
1,316
v2_s286836671
s286836671
s286836671
p03027
p03027
u653981267
u653981267
1,559,533,273
2019-06-03T03:41:13
Main.java
import java.util.*; public class Main { public static long MOD = (long)Math.pow(10, 6) + 3; public static void main(String[] args) { Scanner sc = new Scanner(System.in); long[] kai = new long[(int)MOD]; long[] inkai = new long[(int)MOD]; long[] in = new long[(int)MOD]; kai[0] = 1; kai[1] = ...
Main.java:48: error: <identifier> expected System.out.println(0); ^ Main.java:48: error: illegal start of type System.out.println(0); ^ Main.java:51: error: unnamed classes are a preview feature and are disabled by default. public static long func(long a, long x) {...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03027|1
u653981267|p03027|0
codenet
Compile Error
1,534
v2_s543830163
s543830163
s543830163
p03027
p03027
u653981267
u653981267
1,559,604,883
2019-06-03T23:34:43
Main.java
import java.util.*; public class Main { public static long MOD = (long)Math.pow(10, 6) + 3; public static void main(String[] args) { Scanner sc = new Scanner(System.in); long[] kai = new long[(int)MOD]; long[] inkai = new long[(int)MOD]; long[] in = new long[(int)MOD]; kai[0] = 1; kai[1] = ...
Main.java:20: error: cannot find symbol long[] ans = new long[q]; ^ symbol: variable q location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03027|2
u653981267|p03027|1
codenet
Compile Error
1,537
v2_s661055831
s661055831
s661055831
p03029
p03029
u005792248
u005792248
1,558,984,880
2019-05-27T19:21:20
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.util.Collections; class Shop implements Comparable<Shop>{ String s; int p; int n; public Shop(String s, int p, int n){ this.s = s; this.p = p; this.n = n; } @Override public int compareTo(Shop m){ int...
Main.java:40: error: class, interface, enum, or record expected import java.util.Scanner; ^ Main.java:41: error: class, interface, enum, or record expected import java.util.ArrayList; ^ Main.java:42: error: class, interface, enum, or record expected import java.util.Collections; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u005792248|p03029|0
u005792248|p03029|0
codenet
Compile Error
1,939
v2_s483475427
s483475427
s483475427
p03029
p03029
u005792248
u005792248
1,558,984,932
2019-05-27T19:22:12
Main.java
mport java.util.Arrays; import java.util.Comparator; import java.util.Scanner; class Triplet<T1, T2, T3> { public T1 x; public T2 y; public T3 z; public Triplet(T1 x, T2 y, T3 z) { this.x = x; this.y = y; this.z = z; } public String toString() { return "("...
Main.java:1: error: class, interface, enum, or record expected mport java.util.Arrays; ^ Main.java:2: error: class, interface, enum, or record expected import java.util.Comparator; ^ Main.java:3: error: class, interface, enum, or record expected import java.util.Scanner; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u005792248|p03029|0
u005792248|p03029|0
codenet
Compile Error
1,028
v2_s335873552
s335873552
s335873552
p03029
p03029
u011054699
u011054699
1,569,765,688
2019-09-29T14:01:28
Main.java
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int p = sc.nextInt(); int result; result = (a*3+p)/2; System.out.println(result); }
Main.java:12: error: <identifier> expected result = (a*3+p)/2; ^ Main.java:14: error: <identifier> expected System.out.println(result); ^ Main.java:14: error: <identifier> expected System.out.println(result); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011054699|p03029|0
u011054699|p03029|0
codenet
Compile Error
214
v2_s035310895
s035310895
s035310895
p03029
p03029
u059011748
u059011748
1,559,160,751
2019-05-29T20:12:31
Main.java
import java.uti.*; public class Main{ public static void main(String args[]){ Scanner sc= new Scanner(System.in); int A=sc.nextInt(); int P=sc.nextInt(); int N; N=(3*A+P)/2; System.out.println(N); } }
Main.java:1: error: package java.uti does not exist import java.uti.*; ^ 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); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059011748|p03029|0
u059011748|p03029|0
codenet
Compile Error
236
v2_s438963533
s438963533
s438963533
p03029
p03029
u082512804
u082512804
1,559,041,927
2019-05-28T11:12:07
Main.java
import java.util.*; import java.util.Scanner; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ public class Main { public static void main (String[] args) throws java.lang.Exception { Scanner scanner = new Scanner(System.in); int A = scanner....
Main.java:19: error: ')' or ',' expected System.out.println(String.valueOf(numPie); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u082512804|p03029|0
u082512804|p03029|0
codenet
Compile Error
482
v2_s376023538
s376023538
s376023538
p03029
p03029
u108980211
u108980211
1,560,304,956
2019-06-12T02:02:36
Main.java
import java.util.Scanner; import java.util.TreeMap; import java.util.Iterator; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); TreeMap<String, TreeMap<Integer, Integer>> restaurants = new TreeMap<>(); int N = sc.nextInt(); for (int i = 0...
Main.java:15: error: cannot find symbol restaurantsInCity = new TreeMap<>(new Comparator<Integer>() { ^ symbol: class Comparator location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u108980211|p03029|0
u108980211|p03029|0
codenet
Compile Error
1,196
v2_s248118489
s248118489
s248118489
p03029
p03029
u117311742
u117311742
1,558,919,386
2019-05-27T01:09:46
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String line = sc.nextLine(); String[] split = line.split(" "); System.out.println(calculate(Integer.parseInt(split[0]), Integer.parseInt(split[1]))); } public static int calcu...
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
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u117311742|p03029|0
u117311742|p03029|0
codenet
Compile Error
394
v2_s061398932
s061398932
s061398932
p03029
p03029
u146972960
u146972960
1,558,920,068
2019-05-27T01:21:08
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int apple = sc.nextInt()); int kakera = sc.nextInt()); System.out.print((apple * 2 + kakera) / 2); } }
Main.java:8: error: ';' expected int apple = sc.nextInt()); ^ Main.java:9: error: ';' expected int kakera = sc.nextInt()); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u146972960|p03029|0
u146972960|p03029|0
codenet
Compile Error
263
v2_s062951995
s062951995
s062951995
p03029
p03029
u146972960
u146972960
1,558,920,143
2019-05-27T01:22:23
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int apple = sc.nextInt()); int kakera = sc.nextInt()); System.out.print((apple * 3 + kakera) / 2); } }
Main.java:8: error: ';' expected int apple = sc.nextInt()); ^ Main.java:9: error: ';' expected int kakera = sc.nextInt()); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u146972960|p03029|0
u146972960|p03029|0
codenet
Compile Error
263
v2_s238120886
s238120886
s238120886
p03029
p03029
u208733542
u208733542
1,559,872,240
2019-06-07T01:50:40
Task.java
import sun.management.Agent; import sun.reflect.generics.tree.Tree; import java.io.*; import java.util.*; public class Task { public static void main(String[] args) throws IOException { new Task().go(); } PrintWriter out; Reader in; BufferedReader br; Task() throws IOException { ...
Task.java:1: error: package sun.management does not exist import sun.management.Agent; ^ Task.java:2: error: package sun.reflect.generics.tree is not visible import sun.reflect.generics.tree.Tree; ^ (package sun.reflect.generics.tree is declared in module java.base, whi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u208733542|p03029|0
u208733542|p03029|0
codenet
Compile Error
3,449
v2_s334125200
s334125200
s334125200
p03029
p03029
u209193252
u209193252
1,559,957,133
2019-06-08T01:25:33
Main.java
int apple = 0; int piece_apple = 0; InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); try { String str = ""; str = br.readLine(); br.close(); String strs[] = str.split(" ", 2); apple = Integer.parseInt(strs[0]); piece_apple = Integer.parseInt(strs[0]); ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int apple = 0; ^ (use --enable-preview to enable unnamed classes) Main.java:7: error: class, interface, enum, or record expected try { ^ Main.java:9: error: class, interface, enum, or record expected str = br.readLine(); ^ Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u209193252|p03029|0
u209193252|p03029|0
codenet
Compile Error
421
v2_s084745007
s084745007
s084745007
p03029
p03029
u251243659
u251243659
1,558,980,551
2019-05-27T18:09:11
Main.java
public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ int apple = new java.util.Scanner( System.in).nextInt(); int kakera = new java.util.Scanner(System.in).nextInt(); int hoge = (kakera + apple * 3)/2; System.out.println(hoge); }
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
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251243659|p03029|0
u251243659|p03029|0
codenet
Compile Error
282
v2_s881659404
s881659404
s881659404
p03029
p03029
u251243659
u251243659
1,558,980,625
2019-05-27T18:10:25
Main.java
public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ int apple = new java.util.Scanner( System.in).nextInt(); int kakera = new java.util.Scanner(System.in).nextInt(); int hoge = (kakera + apple * 3)/2; System.out.println(hoge); }
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
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251243659|p03029|0
u251243659|p03029|0
codenet
Compile Error
282
v2_s103520687
s103520687
s103520687
p03029
p03029
u251779460
u251779460
1,559,776,301
2019-06-05T23:11:41
Main.java
import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner sc= new Scanner; int A=sc.nextInt(); int P=sc.nextInt(); int x; x=(3*A+P)%2; System.out.println(x); } }
Main.java:4: error: '(' or '[' expected Scanner sc= new Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251779460|p03029|0
u251779460|p03029|0
codenet
Compile Error
214
v2_s314858751
s314858751
s314858751
p03029
p03029
u337220612
u337220612
1,558,919,602
2019-05-27T01:13:22
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.readInt(); int p = scan.readInt(); int ans = (a*3+p)/2; System.out.println(ans); } }
Main.java:7: error: cannot find symbol int a = scan.readInt(); ^ symbol: method readInt() location: variable scan of type Scanner Main.java:8: error: cannot find symbol int p = scan.readInt(); ^ symbol: method readInt() location: variable scan of type Scanner 2 errors...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u337220612|p03029|0
u337220612|p03029|0
codenet
Compile Error
257
v2_s517129624
s517129624
s517129624
p03029
p03029
u465669072
u465669072
1,558,918,976
2019-05-27T01:02:56
Main.java
#include<iostream> #include<string> #include<cmath> #include<algorithm> #include<vector> using namespace std; int main(){ int a, n; cin >> a >> n; cout << (a*3+n) / 2 << endl; }
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:2: error: illegal character: '#' #include<string> ^ Main.java:3: error: illegal character: '#' #include<cmath> ^ Main.java:4: error: illegal character: '#' #include<algorithm> ^ Main.java:5: error: illegal character: '#' #include<vector> ^ Main.j...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u465669072|p03029|0
u465669072|p03029|0
codenet
Compile Error
196
v2_s128432439
s128432439
s128432439
p03029
p03029
u487433273
u487433273
1,558,920,846
2019-05-27T01:34:06
Main.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 P = sc.nextInt(); int pieces = 3A+P; int pie = pieces/3; System.out.println(pie); } }
Main.java:8: error: ';' expected int pieces = 3A+P; ^ Main.java:8: error: not a statement int pieces = 3A+P; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p03029|0
u487433273|p03029|0
codenet
Compile Error
271
v2_s518831675
s518831675
s518831675
p03029
p03029
u501986863
u501986863
1,558,929,462
2019-05-27T03:57:42
Main.java
import java.io.IOException; import java.io.*; import java.util.*; class Main { static class Res implements { String name; int score; int index; Res(int i,String x, int g) { index = i; name = x; score = g; } } public static void main(String[] args) { // TODO Auto-generated method stub ...
Main.java:9: error: illegal start of type { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u501986863|p03029|1
u501986863|p03029|0
codenet
Compile Error
2,706
v2_s044526972
s044526972
s044526972
p03029
p03029
u515338581
u515338581
1,558,921,144
2019-05-27T01:39:04
Main.java
class apple pie { public static void main(string[]args) { int numA = 3; int numB = 2; if 3P = A System.out.println(""P"このかけらかてきる"); if 2A = 3p System.out.println(""P"このかけらかてきる"); } }
Main.java:1: error: '{' expected class apple pie ^ Main.java:7: error: '(' expected if 3P = A ^ Main.java:7: error: ')' expected if 3P = A ^ Main.java:7: error: ';' expected if 3P = A ^ Main.java:8: error: ')' or ',' expected System.out.println(""P"?????????"); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u515338581|p03029|0
u515338581|p03029|0
codenet
Compile Error
252
v2_s751591262
s751591262
s751591262
p03029
p03029
u662852612
u662852612
1,558,919,216
2019-05-27T01:06:56
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int result; // 整数の入力 int a = sc.nextInt(); int p = sc.nextInt(); result = (a*3+p)/2 // 出力 System.out.println(result); } }
Main.java:9: error: ';' expected result = (a*3+p)/2 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u662852612|p03029|0
u662852612|p03029|0
codenet
Compile Error
279
v2_s185964266
s185964266
s185964266
p03029
p03029
u729064485
u729064485
1,584,330,159
2020-03-16T03:42:39
Main.java
public class Main { public static void main(String[] args) { int a,b; Scanner in = new Scanner(System.in); a = in.nextInt(); b = in.nextInt(); System.out.println((a*3+b)/2); } }
Main.java:4: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u729064485|p03029|0
u729064485|p03029|0
codenet
Compile Error
225
v2_s472320372
s472320372
s472320372
p03029
p03029
u750120744
u750120744
1,560,131,471
2019-06-10T01:51:11
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { System.out.print("林檎の数:"); Scanner apple = Scanner.nextInt(); int kakera = apple*3; int applepie = kakera/2; System.out.println("作れるアップルパイの数:" + applepie); } }
Main.java:6: error: non-static method nextInt() cannot be referenced from a static context Scanner apple = Scanner.nextInt(); ^ Main.java:6: error: incompatible types: int cannot be converted to Scanner Scanner apple = Scanner.nextInt(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u750120744|p03029|0
u750120744|p03029|0
codenet
Compile Error
327
v2_s709895147
s709895147
s709895147
p03029
p03029
u750120744
u750120744
1,560,131,786
2019-06-10T01:56:26
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner ap = Scanner.nextInt(System.int); //整数入力 int A = ap.nextInt(); int P = ap.nextInt(); int pie = (A*3 + P / 2); System.out.println(pie); } }
Main.java:5: error: <identifier> expected Scanner ap = Scanner.nextInt(System.int); ^ Main.java:5: error: ';' expected Scanner ap = Scanner.nextInt(System.int); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u750120744|p03029|0
u750120744|p03029|0
codenet
Compile Error
292
v2_s175751030
s175751030
s175751030
p03029
p03029
u750120744
u750120744
1,560,131,813
2019-06-10T01:56:53
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner ap = Scanner.nextInt(System.in); //整数入力 int A = ap.nextInt(); int P = ap.nextInt(); int pie = (A*3 + P / 2); System.out.println(pie); } }
Main.java:5: error: incompatible types: InputStream cannot be converted to int Scanner ap = Scanner.nextInt(System.in); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u750120744|p03029|0
u750120744|p03029|0
codenet
Compile Error
292