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_s023086247
s023086247
s023086247
p02972
p02972
u845442981
u845442981
1,563,944,882
2019-07-24T05:08:02
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; for (int i = 0 ; i < n ; i++) { a[i] = sc.nextInt(); } int[] b = new int[n]; for (int i = n - 1 ; i >= 0...
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
u845442981|p02972|0
u845442981|p02972|0
codenet
Compile Error
967
v2_s943489338
s943489338
s943489338
p02972
p02972
u935368823
u935368823
1,565,636,923
2019-08-12T19:08:43
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a[] = new int[n + 1];//添え字で1~nまでにしているので、1つ要素を多く持たせる int b[] = new int[n + 1]; int cnt = 0; //pos以降はa[i]をb[i]にコピーすればよい(pos以降のiの倍数は1つしか存在しないため、a[i]の値と一致する) int pos ...
Main.java:7: error: cannot find symbol int a[] = new int[n + 1];//???????????????????????????? ^ symbol: variable n location: class Main Main.java:8: error: cannot find symbol int b[] = new int[n + 1]; ^ symbol: variable n location: class Main Main.java:12...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u935368823|p02972|1
u935368823|p02972|1
codenet
Compile Error
895
v2_s628676324
s628676324
s628676324
p02972
p02972
u941274418
u941274418
1,586,136,083
2020-04-06T01:21:23
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[] arr = new int[n+1]; for(int i = 1; i <= n; i++) arr[i] = sc.nextInt(); int[] res = new int[n+1]; int resCnt = 0; for(int...
Main.java:16: error: cannot find symbol if(cnt % 2 != arr[j]) { ^ symbol: variable j location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941274418|p02972|0
u941274418|p02972|0
codenet
Compile Error
691
v2_s993820888
s993820888
s993820888
p02972
p02972
u954094464
u954094464
1,565,746,067
2019-08-14T01:27:47
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int N=sc.nextInt(); int[] A=new int[N+1]; A[0]=0; for(int i=1;i<=N;i++){ A[i]=sc.nextInt(); } int[] dp=new int[N+1]; if(A[N]==0){ dp[N]=0; }else{ dp[N]=1; } for(int i=N-1;i>=1...
Main.java:47: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u954094464|p02972|0
u954094464|p02972|0
codenet
Compile Error
685
v2_s959206081
s959206081
s959206081
p02973
p02973
u316432228
u316432228
1,563,673,717
2019-07-21T01:48:37
Main.java
import java.io.BufferedReader; import java.io.Closeable; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.Map.Entry; import jav...
Main.java:30: error: incompatible types: long cannot be converted to Integer for(int i = 0; i < N; i++){ values.add(array[i]); } ^ 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
u316432228|p02973|0
u316432228|p02973|0
codenet
Compile Error
2,835
v2_s356464443
s356464443
s356464443
p02973
p02973
u504228740
u504228740
1,563,756,690
2019-07-22T00:51:30
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.ArrayList; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); a[i] =sc.nextLong(); if(i!=0){ if(a[i]<=a[i-1]){ idx=Arrays.binarySearch(list,a[i-1]); } }else{ int n =sc.nextInt(); ...
Main.java:7: error: cannot find symbol a[i] =sc.nextLong(); ^ symbol: variable a location: class Main Main.java:7: error: cannot find symbol a[i] =sc.nextLong(); ^ symbol: variable i location: class Main Main.java:8: error: cannot find symbol if(i!=0){ ^ symbol: variable i locat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u504228740|p02973|1
u504228740|p02973|1
codenet
Compile Error
474
v2_s199737554
s199737554
s199737554
p02973
p02973
u632953742
u632953742
1,572,385,160
2019-10-29T21:39:20
Main.java
import java.util.ArrayList; import java.util.Scanner; class Main{ static char[][] map; static long[][] c; public static void main(String[] args) { Scanner sc = new Scanner(System.in); //文字の入力 int n = sc.nextInt(); int[] a = new int[n]; for(int i = 0;i < n;i++){ a[i] = sc.nextInt(); } ArrayList<S...
Main.java:17: error: cannot find symbol ArrayList<Stack> list = new ArrayList<Stack>(); ^ symbol: class Stack location: class Main Main.java:17: error: cannot find symbol ArrayList<Stack> list = new ArrayList<Stack>(); ^ symbol: class Stack location: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u632953742|p02973|0
u632953742|p02973|0
codenet
Compile Error
1,701
v2_s188036073
s188036073
s188036073
p02973
p02973
u675751622
u675751622
1,563,680,120
2019-07-21T03:35:20
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int number_n, i, min_temp = Integer.MAX_VALUE, temp = -1, temp_count = 0, max_count = 0; number_n = Integer.parseInt(sc.next()); int[] number = new int[number_n]; for (i = 0; i < ...
Main.java:11: error: cannot find symbol for(j = temp; j < number_n; j++) { ^ symbol: variable j location: class Main Main.java:11: error: cannot find symbol for(j = temp; j < number_n; j++) { ^ symbol: variable j location: class Main Main.java:11: error: cannot find...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675751622|p02973|0
u675751622|p02973|0
codenet
Compile Error
811
v2_s076660779
s076660779
s076660779
p02973
p02973
u729617972
u729617972
1,563,675,825
2019-07-21T02:23:45
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 = new int[200000]; int[] t = new int[200000]; int color = 1; a[0] = sc.nextInt(); t[0] = a[0]; int stackablenum = 0; for(int i = 1 ; i < n ; i++){ ...
Main.java:20: error: cannot find symbol while(stackablsnum >= 0 && a[i] > t[stackablenum]){ ^ symbol: variable stackablsnum location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u729617972|p02973|0
u729617972|p02973|0
codenet
Compile Error
566
v2_s922851985
s922851985
s922851985
p02973
p02973
u752907799
u752907799
1,599,133,144
2020-09-03T11:39:04
Main.java
import java.io.*; import java.util.*; import static java.lang.System.out; public class Main { static MyReader in = new MyReader(); public static void main(String[] args) { int N = in.i(); IntStack stack = new IntStack(N); stack.push(in.i()); for(int i = 1; i < N; i++){ ...
Main.java:15: error: cannot find symbol stack.push(k); ^ symbol: variable k location: class Main Main.java:17: error: cannot find symbol stack.array[j] = k; ^ symbol: variable k location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u752907799|p02973|1
u752907799|p02973|1
codenet
Compile Error
3,209
v2_s830713371
s830713371
s830713371
p02973
p02973
u858173617
u858173617
1,565,649,013
2019-08-12T22:30:13
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); int N = sc.nextInt(); int cnt = 1; int[] colors = new int[N]; colors[0] = sc.next...
Main.java:11: error: ';' expected colors[0] = sc.nextInt()); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858173617|p02973|0
u858173617|p02973|0
codenet
Compile Error
2,887
v2_s794624508
s794624508
s794624508
p02973
p02973
u858173617
u858173617
1,565,842,527
2019-08-15T04:15:27
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Map; import java.util.NoSuchElementException; import java.util.TreeMap; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); int N = sc.nextInt(); ...
Main.java:10: error: cannot find symbol FastScanner sc = new FastScanner(); ^ symbol: class FastScanner location: class Main Main.java:10: error: cannot find symbol FastScanner sc = new FastScanner(); ^ symbol: class FastScanner location: class Main 2 err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858173617|p02973|1
u858173617|p02973|1
codenet
Compile Error
1,368
v2_s029915333
s029915333
s029915333
p02975
p02975
u127030911
u127030911
1,563,161,665
2019-07-15T03:34:25
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long a[] = new long[n]; for (int i = 0; i < n; i++) a[i] = sc.nextInt(); if (Arrays.asList(a).contains(0)){ // if (Array...
Main.java:49: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u127030911|p02975|0
u127030911|p02975|0
codenet
Compile Error
1,545
v2_s455747853
s455747853
s455747853
p02975
p02975
u127473726
u127473726
1,563,157,739
2019-07-15T02:28:59
Main.java
#include <cstdio> #include <cstring> #include <algorithm> #include <vector> #include <queue> #include <map> #include <iterator> #include <cmath> #include <set> #include <deque> #include <string> using namespace std; int n; int a[100010]; bool isUsed[100010]; std::map<int, int> countMap; std::map<int, int> calcMap; ...
Main.java:1: error: illegal character: '#' #include <cstdio> ^ Main.java:2: error: illegal character: '#' #include <cstring> ^ Main.java:3: error: illegal character: '#' #include <algorithm> ^ Main.java:4: error: illegal character: '#' #include <vector> ^ Main.java:5: error: illegal character: '#' #include <queue> ^ Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u127473726|p02975|0
u127473726|p02975|0
codenet
Compile Error
1,422
v2_s268633655
s268633655
s268633655
p02975
p02975
u180899411
u180899411
1,563,241,604
2019-07-16T01:46:44
PAFalse.java
public class PAFalse { public static boolean calcThisLevel(long[] a, long[] b, long mod, long ans) { // bがひとつ前の位の10として // 0がすべて一致するか, // 0がすべて1になるかしないといけない int cnt = 0; int cnt0 = 0; int mode = 0; //System.out.println("cnt=" + cnt + ":" + "cnt0=" + cnt0 + ":" + "ans=" + ans); for (int i = 0; i < a.len...
PAFalse.java:72: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class PAFalse PAFalse.java:72: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class PAFalse 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u180899411|p02975|1
u180899411|p02975|1
codenet
Compile Error
2,676
v2_s765508580
s765508580
s765508580
p02975
p02975
u222822036
u222822036
1,599,238,492
2020-09-04T16:54:52
Main.java
import java.util.*; import java.io.*; import java.math.*; public class Main{ //Don't have to see. start------------------------------------------ static class InputIterator{ ArrayList<String> inputLine = new ArrayList<String>(1024); int index = 0; int max; String read; InputIterator(){ BufferedReader br = ne...
Main.java:105: error: ')' expected if((notZeroCount == zeroCount * 2){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p02975|0
u222822036|p02975|0
codenet
Compile Error
4,087
v2_s308578650
s308578650
s308578650
p02975
p02975
u263813935
u263813935
1,563,161,923
2019-07-15T03:38:43
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); long[] a = new long[n]; for(int i = 0; i < n; i++) { a[i] = stdIn.nextLong(); } long c = a[0]; long d ...
Main.java:59: error: cannot find symbol if(x == y && y == z) { ^ symbol: variable x location: class Main Main.java:59: error: cannot find symbol if(x == y && y == z) { ^ symbol: variable y location: class Main Main.ja...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u263813935|p02975|0
u263813935|p02975|0
codenet
Compile Error
2,814
v2_s096325248
s096325248
s096325248
p02975
p02975
u367159631
u367159631
1,563,721,193
2019-07-21T14:59:53
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); TreeMap<Integer,Integer>m=new TreeMap<Integer,Integer>(); int n=sc.nextInt(); for(int i=0;i<n;i++){ int x=sc.nextInt(); m.put(x,m.containsKey(x)?m.get(x)+1:1); } boolean b=...
Main.java:19: error: cannot find symbol if(m.keySet().size()==3&&m.pollFirstEntry().key()!=m.firstKey()^m.lastKey()) ^ symbol: method key() location: interface Entry<Integer,Integer> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u367159631|p02975|0
u367159631|p02975|0
codenet
Compile Error
690
v2_s101301896
s101301896
s101301896
p02975
p02975
u367159631
u367159631
1,563,721,236
2019-07-21T15:00:36
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); TreeMap<Integer,Integer>m=new TreeMap<Integer,Integer>(); int n=sc.nextInt(); for(int i=0;i<n;i++){ int x=sc.nextInt(); m.put(x,m.containsKey(x)?m.get(x)+1:1); } boolean b=...
Main.java:19: error: bad operand types for binary operator '^' if(m.keySet().size()==3&&m.pollFirstEntry().getKey()!=m.firstKey()^m.lastKey()) ^ first type: boolean second type: Integer 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u367159631|p02975|0
u367159631|p02975|0
codenet
Compile Error
693
v2_s224329632
s224329632
s224329632
p02975
p02975
u409962311
u409962311
1,567,840,280
2019-09-07T07:11:20
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int[] a = new int[n]; for(int i=0;i<n;i++){ a[i] = Integer.parseInt(sc.next()); } String ans = "No"; Array...
Main.java:32: error: bad operand types for binary operator '^' if(n%3==0 && a[0]==a[n/3-1] && a[n/3]==a[2*n/3-1] && a[2*n/3]==a[n-1] && a[0]!=a[n/3] && a[n/3]!=a[n-1] && a[0]^a[n/3]^a[n-1]==0){ ^ firs...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u409962311|p02975|0
u409962311|p02975|0
codenet
Compile Error
903
v2_s687089620
s687089620
s687089620
p02975
p02975
u474492589
u474492589
1,568,479,044
2019-09-14T16:37:24
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 = new int[N]; Map<Integer, Integer> map = new HashMap<>(); for(int i = 0; i < N; i++){ a[i] = sc.nextInt();...
Main.java:55: error: cannot find symbol if(cnt == 3 && key == 0){ ^ symbol: variable key location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u474492589|p02975|0
u474492589|p02975|0
codenet
Compile Error
1,642
v2_s486835047
s486835047
s486835047
p02975
p02975
u568545273
u568545273
1,563,310,284
2019-07-16T20:51:24
Main.java
public class Main { long INF = Long.MAX_VALUE; public static void main(String[] args) { new Main().solve(); } void solve() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long[] a = new long[N]; boolean ans = true; for (int i = 0; i < N; i+...
Main.java:10: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:10: 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
u568545273|p02975|0
u568545273|p02975|0
codenet
Compile Error
836
v2_s359535981
s359535981
s359535981
p02975
p02975
u568545273
u568545273
1,563,310,440
2019-07-16T20:54:00
Main.java
public class Main { long INF = Long.MAX_VALUE; public static void main(String[] args) { new Main().solve(); } void solve() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long[] a = new long[N]; boolean ans = true; for (int i = 0; i < N; i+...
Main.java:10: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:10: 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
u568545273|p02975|0
u568545273|p02975|0
codenet
Compile Error
728
v2_s278309526
s278309526
s278309526
p02975
p02975
u568545273
u568545273
1,563,310,740
2019-07-16T20:59:00
Main.java
import java.util.*; public class Main { long INF = Long.MAX_VALUE; public static void main(String[] args) { new Main().solve(); } void solve() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long[] a = new long[N]; boolean ans = true; for ...
Main.java:31: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u568545273|p02975|0
u568545273|p02975|0
codenet
Compile Error
753
v2_s010566969
s010566969
s010566969
p02975
p02975
u601435631
u601435631
1,563,157,318
2019-07-15T02:21:58
Main.java
System
Main.java:1: error: reached end of file while parsing System ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u601435631|p02975|0
u601435631|p02975|0
codenet
Compile Error
6
v2_s173648581
s173648581
s173648581
p02975
p02975
u655125439
u655125439
1,563,167,459
2019-07-15T05:10:59
Main.java
import java.util.*; import java.io.*; import java.nio.charset.StandardCharsets; public class Main { public static void main(String[] args) { InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8); BufferedReader in = new BufferedReader(reader); int N = Integer.parseInt(in.readLine...
Main.java:10: error: unreported exception IOException; must be caught or declared to be thrown int N = Integer.parseInt(in.readLine()); ^ Main.java:12: error: unreported exception IOException; must be caught or declared to be thrown String[] tokens = in.readLine().split(" "); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655125439|p02975|0
u655125439|p02975|0
codenet
Compile Error
1,794
v2_s467250340
s467250340
s467250340
p02975
p02975
u675751622
u675751622
1,563,156,596
2019-07-15T02:09:56
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int number, temp, i, j; number = Integer.parseInt(sc.next()); int[] num = new int[number]; temp = num[0]; for(i = 0; i < number; i++) { num[i] = Integer.parseInt(sc.next...
Main.java:16: error: incompatible types: int cannot be converted to boolean if(i = j) continue; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675751622|p02975|0
u675751622|p02975|0
codenet
Compile Error
611
v2_s034464116
s034464116
s034464116
p02975
p02975
u686175224
u686175224
1,563,157,387
2019-07-15T02:23:07
Main.java
mport java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main{ private static long gcd(long m, long n) { if(m < n) return gcd(n, m); if(n == 0) return m; return gcd(n, m % n); } static boolean next_perm(char[] p, int n, int r) { int i, j; ...
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.List; ^ 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
u686175224|p02975|0
u686175224|p02975|0
codenet
Compile Error
2,947
v2_s686294740
s686294740
s686294740
p02975
p02975
u795990458
u795990458
1,563,155,718
2019-07-15T01:55:18
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int numN = s.nextInt(); int[]nums = new int[numN]; for(int i = 0; i < numN ; i++) { nums[i] = s.nextInt(); } String judge = "Yes"; for(int i = 1; i < numN -1; i++) { int numA...
Main.java:14: error: '.class' expected int numA = int nums[i-1]; ^ Main.java:14: error: not a statement int numA = int nums[i-1]; ^ Main.java:15: error: '.class' expected int numB = int nums[i+1]; ^ Main.java:15: error: not a statement int numB = int...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u795990458|p02975|0
u795990458|p02975|0
codenet
Compile Error
486
v2_s568546499
s568546499
s568546499
p02975
p02975
u808976884
u808976884
1,563,162,980
2019-07-15T03:56:20
Main.java
import java.util.*; import java.util.ArrayList; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); ArrayList<Integer> nums = new ArrayList<>(); int cnt1 = 0; int cnt2 = sc.nextInt(); // 値取得 while(sc.hasNext()){ nums....
Main.java:42: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u808976884|p02975|0
u808976884|p02975|0
codenet
Compile Error
1,117
v2_s068396983
s068396983
s068396983
p02975
p02975
u825262731
u825262731
1,563,155,631
2019-07-15T01:53: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[] arr = new int[n]; for(int i=0;i<n;i++){ arr[i]=sc.nextInt(); } int flag=0; for(int i=1;i<=n-2;i++){ if(arr[i]!=arr[i-1]^arr[i+1]){ ...
main.java:12: error: bad operand types for binary operator '^' if(arr[i]!=arr[i-1]^arr[i+1]){ ^ first type: boolean second type: int main.java:16: error: bad operand types for binary operator '^' if(arr[0]!=arr[1]^arr[n-1]){ ^ first type: boolean second ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825262731|p02975|0
u825262731|p02975|0
codenet
Compile Error
565
v2_s971309054
s971309054
s971309054
p02975
p02975
u902846136
u902846136
1,570,298,555
2019-10-05T18:02:35
Main.java
import java.util.List; import java.util.ArrayList; public class Main { public static void main(String[] arguments) { Test.check(arguments); Integer number = Integer.valueOf(arguments[0]); int[] anArray = new int[number]; for(Integer i = 0; i < number; i++) { anArray[i] = Integer.valueOf(arguments[i+1]); ...
Main.java:6: error: cannot find symbol Test.check(arguments); ^ symbol: variable Test location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u902846136|p02975|0
u902846136|p02975|0
codenet
Compile Error
1,222
v2_s486123950
s486123950
s486123950
p02975
p02975
u935368823
u935368823
1,563,157,149
2019-07-15T02:19:09
Main.java
class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a[] = new int[n]; for (int i = 0; i < n; i++) a[i] = sc.nextInt(); String ans = "Yse"; for (int i = 0; i < n; i++) { if (i > 0) { if ((a[(i + 1) % n] ^ a[(i - 1) % n]) != a[i]) {...
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
u935368823|p02975|0
u935368823|p02975|0
codenet
Compile Error
467
v2_s893637097
s893637097
s893637097
p02975
p02975
u982152304
u982152304
1,563,155,763
2019-07-15T01:56:03
Main.java
import java.util.*; public class Main { public static int main(String argv[]){ } }
Main.java:4: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982152304|p02975|0
u982152304|p02975|0
codenet
Compile Error
86
v2_s087970467
s087970467
s087970467
p02976
p02976
u675503966
u675503966
1,563,162,006
2019-07-15T03:40:06
Main.java
import java.io.*; import java.util.*; import java.math.*; // import java.awt.Point; public class Main { InputStream is; PrintWriter out; String INPUT = ""; static int mod = 1_000_000_007; // int mod = 998244353; // long inf = Long.MAX_VALUE/2; int inf = Integer.MAX_VALUE/2; ArrayLis...
Main.java:71: error: cannot find symbol if(map.contaisKey(res)){ ^ symbol: method contaisKey(long) location: variable map of type HashSet<Long> Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675503966|p02976|0
u675503966|p02976|0
codenet
Compile Error
5,237
v2_s721406090
s721406090
s721406090
p02976
p02976
u675503966
u675503966
1,563,162,027
2019-07-15T03:40:27
Main.java
import java.io.*; import java.util.*; import java.math.*; // import java.awt.Point; public class Main { InputStream is; PrintWriter out; String INPUT = ""; static int mod = 1_000_000_007; // int mod = 998244353; // long inf = Long.MAX_VALUE/2; int inf = Integer.MAX_VALUE/2; ArrayLis...
Main.java:71: error: cannot find symbol if(map.containsKey(res)){ ^ symbol: method containsKey(long) location: variable map of type HashSet<Long> Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675503966|p02976|0
u675503966|p02976|0
codenet
Compile Error
5,238
v2_s835251087
s835251087
s835251087
p02976
p02976
u868281230
u868281230
1,563,181,136
2019-07-15T08:58:56
Main.java
#include<bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; typedef long long ll; typedef double db; typedef vector <ll> vll; typedef pair <ll, ll> pll; #define pb push_back #define mp make_pair #define MAX 1000000 #define mod 10...
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:2: error: illegal character: '#' #include <ext/pb_ds/assoc_container.hpp> ^ Main.java:3: error: illegal character: '#' #include <ext/pb_ds/tree_...
compile_error
4
OpenJDK 21.0.12.1
unlabelled
2.1
u868281230|p02976|0
u868281230|p02976|0
codenet
Compile Error
1,531
v2_s100710873
s100710873
s100710873
p02978
p02978
u830501843
u830501843
1,563,160,341
2019-07-15T03:12:21
Main.java
public class Main { private static Map<String,Long> map = new HashMap<String,Long>(); public static void main(String[] args) { java.util.Scanner s = new java.util.Scanner(System.in); int n = s.nextInt(); long a[] = new long[n]; for (int i = 0; i < a.length; i++) { a[i] = s.nextLong(); } System.out.prin...
Main.java:2: error: cannot find symbol private static Map<String,Long> map = new HashMap<String,Long>(); ^ symbol: class Map location: class Main Main.java:2: error: cannot find symbol private static Map<String,Long> map = new HashMap<String,Long>(); ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u830501843|p02978|0
u830501843|p02978|0
codenet
Compile Error
1,369
v2_s073409234
s073409234
s073409234
p02981
p02981
u033621652
u033621652
1,562,547,968
2019-07-08T01:06:08
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner yomi = new Scanner(System.in); int hito = yomi.nextInt(); int densyatin = yomi.nextInt(); int taxiuntin = yomi.nextInt(); if (hito * densyatin > taxiuntin) System.out.println(taxiuntin);...
Main.java:10: error: reached end of file while parsing else System.out.println(hito * densyatin); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u033621652|p02981|0
u033621652|p02981|0
codenet
Compile Error
372
v2_s028133591
s028133591
s028133591
p02981
p02981
u059011748
u059011748
1,562,595,204
2019-07-08T14:13:24
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(); System.out.println(max(N*A,B)); } }
Main.java:8: error: cannot find symbol System.out.println(max(N*A,B)); ^ symbol: method max(int,int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059011748|p02981|0
u059011748|p02981|0
codenet
Compile Error
209
v2_s354224915
s354224915
s354224915
p02981
p02981
u068273566
u068273566
1,562,549,654
2019-07-08T01:34:14
Main.java
public int (int N, int A, int B){ int train = N*A; int taxi = B; if(train - taxi >0){ return taxi; } else { return train; } }
Main.java:1: error: class, interface, enum, or record expected public int (int N, int A, int B){ ^ Main.java:3: error: unnamed classes are a preview feature and are disabled by default. int taxi = B; ^ (use --enable-preview to enable unnamed classes) Main.java:5: error: class, interface, enum, or record e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068273566|p02981|0
u068273566|p02981|0
codenet
Compile Error
147
v2_s382432863
s382432863
s382432863
p02981
p02981
u068273566
u068273566
1,562,549,733
2019-07-08T01:35:33
Main.java
public int Main(int N, int A, int B){ int train = N*A; int taxi = B; if(train - taxi >0){ return taxi; } else { return train; } }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public int Main(int N, int A, int B){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068273566|p02981|0
u068273566|p02981|0
codenet
Compile Error
151
v2_s455418238
s455418238
s455418238
p02981
p02981
u068273566
u068273566
1,562,550,062
2019-07-08T01:41:02
Main.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 train = N*A; int taxi = B; if(train - taxi >0){ Sytem.out.println(taxi); } else { Syst...
Main.java:14: error: package Sytem does not exist Sytem.out.println(taxi); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068273566|p02981|0
u068273566|p02981|0
codenet
Compile Error
359
v2_s948061149
s948061149
s948061149
p02981
p02981
u079022116
u079022116
1,571,336,259
2019-10-17T18:17:39
Main.java
import java.util.Scanner; 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(); if(N*A>B){ System.out.print(N*A) } else if(N*A<B){ System.out.print(B) ...
Main.java:11: error: ';' expected System.out.print(N*A) ^ Main.java:14: error: ';' expected System.out.print(B) ^ Main.java:17: error: ';' expected System.out.print(B) ^ Main.java:23: error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u079022116|p02981|0
u079022116|p02981|0
codenet
Compile Error
392
v2_s439036126
s439036126
s439036126
p02981
p02981
u079022116
u079022116
1,571,336,327
2019-10-17T18:18:47
Main.java
import java.util.Scanner; 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(); if(N*A>B){ System.out.print(N*A); } else if(N*A<B){ System.out.print(B); ...
Main.java:23: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u079022116|p02981|0
u079022116|p02981|0
codenet
Compile Error
397
v2_s139844695
s139844695
s139844695
p02981
p02981
u164047433
u164047433
1,562,553,047
2019-07-08T02:30:47
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextLine(); int A = sc.nextLine(); int B = sc.nextLine(); int train = N * A; int taxi = B; if(train >= taxi){ System.out.println(train); }els...
Main.java:6: error: incompatible types: String cannot be converted to int int N = sc.nextLine(); ^ Main.java:7: error: incompatible types: String cannot be converted to int int A = sc.nextLine(); ^ Main.java:8: error: incompatible types: String cannot be converted t...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u164047433|p02981|0
u164047433|p02981|0
codenet
Compile Error
376
v2_s114174974
s114174974
s114174974
p02981
p02981
u164047433
u164047433
1,562,553,556
2019-07-08T02:39:16
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); try{ int N = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); int train = N * A; int taxi = B; }catch(NumberFormatException e){ System.out.prin...
Main.java:16: error: cannot find symbol if(N > 20 || N < 1 || A > 50 || A < 1 || B > 20 || B < 1 ){ ^ symbol: variable N location: class Main Main.java:16: error: cannot find symbol if(N > 20 || N < 1 || A > 50 || A < 1 || B > 20 || B < 1 ){ ^ symbol: variable N location: cla...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u164047433|p02981|0
u164047433|p02981|0
codenet
Compile Error
561
v2_s284383468
s284383468
s284383468
p02981
p02981
u234582237
u234582237
1,562,548,032
2019-07-08T01:07:12
Main.java
n=list(map(int,input().split())) if n[0] * n[1] >= n[2]: print(n[2]) else : print(n[0] * n[1])
Main.java:1: error: class, interface, enum, or record expected n=list(map(int,input().split())) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u234582237|p02981|0
u234582237|p02981|0
codenet
Compile Error
98
v2_s242039753
s242039753
s242039753
p02981
p02981
u251779460
u251779460
1,563,031,866
2019-07-13T15:31:06
Main.java
//私たちはN人で旅行しようとしており、その交通手段として電車とタクシーがあります。 //電車を使うと1人あたりA円かかります。 //タクシーを使うとN人でB円かかります。 //全員の交通費の合計は最小でいくらになるでしょうか。 import java.util.*; for(int i=0;i<sc.hasNext();i++){ public class ABC133c{ public static void main(String[]args){ int N=sc.nextInt(); //人数 int A=sc.nextInt(); //電車を使った時の値段 int B=s...
Main.java:8: error: class, interface, enum, or record expected for(int i=0;i<sc.hasNext();i++){ ^ Main.java:8: error: class, interface, enum, or record expected for(int i=0;i<sc.hasNext();i++){ ^ Main.java:8: error: class, interface, enum, or record expected for(int i=0;i<sc.hasNext();i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251779460|p02981|1
u251779460|p02981|1
codenet
Compile Error
706
v2_s903019362
s903019362
s903019362
p02981
p02981
u251779460
u251779460
1,563,031,955
2019-07-13T15:32:35
ABC133a.java
//私たちはN人で旅行しようとしており、その交通手段として電車とタクシーがあります。 //電車を使うと1人あたりA円かかります。 //タクシーを使うとN人でB円かかります。 //全員の交通費の合計は最小でいくらになるでしょうか。 import java.util.*; public class ABC133a{ public static void main(String[]args){ Scanner sc=new Scanner(); for(int i=0;i<sc.hasNext();i++){ int N=sc.nextInt(); //人数 int A=sc...
ABC133a.java:10: error: no suitable constructor found for Scanner(no arguments) Scanner sc=new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) is not applicable ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251779460|p02981|1
u251779460|p02981|1
codenet
Compile Error
744
v2_s608273687
s608273687
s608273687
p02981
p02981
u251779460
u251779460
1,563,031,997
2019-07-13T15:33:17
Main.java
//私たちはN人で旅行しようとしており、その交通手段として電車とタクシーがあります。 //電車を使うと1人あたりA円かかります。 //タクシーを使うとN人でB円かかります。 //全員の交通費の合計は最小でいくらになるでしょうか。 import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(); for(int i=0;i<sc.hasNext();i++){ int N=sc.nextInt(); //人数 int A=sc.ne...
Main.java:10: error: no suitable constructor found for Scanner(no arguments) Scanner sc=new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) is not applicable ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251779460|p02981|1
u251779460|p02981|1
codenet
Compile Error
740
v2_s119882803
s119882803
s119882803
p02981
p02981
u251779460
u251779460
1,563,032,031
2019-07-13T15:33:51
Main.java
//私たちはN人で旅行しようとしており、その交通手段として電車とタクシーがあります。 //電車を使うと1人あたりA円かかります。 //タクシーを使うとN人でB円かかります。 //全員の交通費の合計は最小でいくらになるでしょうか。 import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); for(int i=0;i<sc.hasNext();i++){ int N=sc.nextInt(); //人数 in...
Main.java:11: error: bad operand types for binary operator '<' for(int i=0;i<sc.hasNext();i++){ ^ first type: int second type: boolean 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251779460|p02981|1
u251779460|p02981|1
codenet
Compile Error
750
v2_s695808651
s695808651
s695808651
p02981
p02981
u270720757
u270720757
1,562,549,899
2019-07-08T01:38:19
Main.java
public class Main{ public static void main(String[] args){ int N = new java.util.Scanner(System.in).nextInt(); int A = new java.util.Scanner(System.in).nextInt(); int B = new java.util.Scanner(System.in).nextInt(); int x = N * A; int y = B; if (x < y){ ...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u270720757|p02981|0
u270720757|p02981|0
codenet
Compile Error
451
v2_s383487652
s383487652
s383487652
p02981
p02981
u270720757
u270720757
1,562,550,016
2019-07-08T01:40:16
Main.java
public class Main{ public static void main(String[] args){ int N = new java.util.Scanner(System.in).nextInt(); int A = new java.util.Scanner(System.in).nextInt(); int B = new java.util.Scanner(System.in).nextInt(); int x = N * A; int y = B; if (x < y){ ...
Main.java:15: error: incompatible types: int cannot be converted to boolean }else if (x = y){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u270720757|p02981|0
u270720757|p02981|0
codenet
Compile Error
457
v2_s761843094
s761843094
s761843094
p02981
p02981
u273500837
u273500837
1,563,132,016
2019-07-14T19:20:16
Main.java
public static void main(String[] args){ Scanner input = new Scanner(System.in); int N = input.nextInt(); int A = input.nextInt(); int B = input.nextInt(); int train = N*A; if(train < B){ System.out.println(train); }else{ System.out.println(B); }...
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
u273500837|p02981|0
u273500837|p02981|0
codenet
Compile Error
325
v2_s050923217
s050923217
s050923217
p02981
p02981
u273500837
u273500837
1,563,132,136
2019-07-14T19:22:16
Main.java
public class Main{ Scanner input = new Scanner(System.in); int N = input.nextInt(); int A = input.nextInt(); int B = input.nextInt(); int train = N*A; if(train < B){ System.out.println(train); }else{ System.out.println(B); } }
Main.java:7: error: illegal start of type if(train < B){ ^ Main.java:7: error: > or ',' expected if(train < B){ ^ Main.java:9: error: illegal start of type }else{ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273500837|p02981|0
u273500837|p02981|0
codenet
Compile Error
302
v2_s096922222
s096922222
s096922222
p02981
p02981
u344209291
u344209291
1,563,757,978
2019-07-22T01:12:58
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(); // 文字列の入力 // 出力 if(N*A<B){ System.out.println(N*A); }else if(N*A>B){ ...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u344209291|p02981|0
u344209291|p02981|0
codenet
Compile Error
406
v2_s778321333
s778321333
s778321333
p02981
p02981
u344209291
u344209291
1,563,758,281
2019-07-22T01:18:01
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(); if(N*A<B){ System.out.print(N*A); }else if(N*A>B){ System.out.print(B); } }
Main.java:17: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u344209291|p02981|0
u344209291|p02981|0
codenet
Compile Error
305
v2_s905415309
s905415309
s905415309
p02981
p02981
u344209291
u344209291
1,563,758,417
2019-07-22T01:20: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(); // スペース区切りの整数の入力 int A = sc.nextInt(); int B = sc.nextInt(); // 文字列の入力 // 出力 if(N*A<B){ System.out.println(N*A); }else if(N*A>B){ ...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u344209291|p02981|0
u344209291|p02981|0
codenet
Compile Error
406
v2_s434746705
s434746705
s434746705
p02981
p02981
u347452770
u347452770
1,566,861,588
2019-08-26T23:19:48
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); Long a = sc.nextLong(); Long b = sc.nextLong(); int min = 2018; sc.close(); if(b - a > 2019){ System.out.print(0); } else{ for(Lon...
Main.java:17: error: incompatible types: possible lossy conversion from long to int min = (Long)(i * j) % 2019; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p02981|0
u347452770|p02981|0
codenet
Compile Error
662
v2_s690278549
s690278549
s690278549
p02981
p02981
u347452770
u347452770
1,566,861,625
2019-08-26T23:20:25
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); Long a = sc.nextLong(); Long b = sc.nextLong(); int min = 2018; sc.close(); if(b - a > 2019){ System.out.print(0); } else{ for(Lon...
Main.java:17: error: incompatible types: possible lossy conversion from long to int min = (Long)(i * j) % 2019; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p02981|0
u347452770|p02981|0
codenet
Compile Error
662
v2_s255148258
s255148258
s255148258
p02981
p02981
u365078800
u365078800
1,563,620,337
2019-07-20T10:58:57
Main.java
import java.util.*; public class Main{ static public void main(String ... args[]){ final Scanner sc = new Scanner(System.in); final int N = sc.nextInt(); final int A = sc.nextInt(); final int B = sc.nextInt(); if(N * A < B ){ System.out.println(N*A); }else{ System.out.println(B); ...
Main.java:3: error: legacy array notation not allowed on variable-arity parameter static public void main(String ... args[]){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u365078800|p02981|0
u365078800|p02981|0
codenet
Compile Error
346
v2_s682831681
s682831681
s682831681
p02981
p02981
u369712616
u369712616
1,584,069,773
2020-03-13T03:22:53
Main.java
import java.util.Scanner; 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(); System.out.println(Math.min(n * a, b); } }
Main.java:9: error: ')' or ',' expected System.out.println(Math.min(n * a, b); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02981|0
u369712616|p02981|0
codenet
Compile Error
251
v2_s656876949
s656876949
s656876949
p02981
p02981
u385936798
u385936798
1,562,549,198
2019-07-08T01:26:38
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner teclado = new Scanner(System.in); int N=teclado.nextInt(); int A=teclado.nextDouble(); int B=teclado.nextDouble(); if(A*N>B) { System.out.println(B); }else { System.out.println(A*N); } teclado.cl...
Main.java:7: error: incompatible types: possible lossy conversion from double to int int A=teclado.nextDouble(); ^ Main.java:8: error: incompatible types: possible lossy conversion from double to int int B=teclado.nextDouble(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u385936798|p02981|0
u385936798|p02981|0
codenet
Compile Error
333
v2_s898925228
s898925228
s898925228
p02981
p02981
u400302356
u400302356
1,579,267,859
2020-01-17T13:30:59
Main.java
import java.util.*; import java.io.*; public class Main.java { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; for(int i=0;i<n;i++) { arr[i]=sc.nextInt(); } for(int i=0;i<n;i++) { int count =0; int place = i; int s...
Main.java:3: error: '{' expected public class Main.java { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u400302356|p02981|0
u400302356|p02981|0
codenet
Compile Error
487
v2_s042114212
s042114212
s042114212
p02981
p02981
u414805059
u414805059
1,563,331,130
2019-07-17T02:38:50
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int ninzuu = sc.nextInt(); int densha = sc.nextInt(); int taxi = sc.nextInt(); int ans; int ans = ninzuu * densha; if(densha_en <= taxi){ ans = taxi; } System.out.println(a...
Main.java:12: error: variable ans is already defined in method main(String[]) int ans = ninzuu * densha; ^ Main.java:13: error: cannot find symbol if(densha_en <= taxi){ ^ symbol: variable densha_en location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u414805059|p02981|0
u414805059|p02981|0
codenet
Compile Error
330
v2_s690626284
s690626284
s690626284
p02981
p02981
u430395207
u430395207
1,562,547,896
2019-07-08T01:04:56
T.java
public class T or T { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int N = sc.nextInt(); int train = A*N ; if (train <= B) { System.out.println (train); } else { System....
T.java:1: error: '{' expected public class T or T { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u430395207|p02981|0
u430395207|p02981|0
codenet
Compile Error
352
v2_s434930675
s434930675
s434930675
p02981
p02981
u430395207
u430395207
1,562,547,907
2019-07-08T01:05:07
T.java
public class T or T { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int N = sc.nextInt(); int train = A*N ; if (train <= B) { System.out.println (train); } else { System....
T.java:1: error: '{' expected public class T or T { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u430395207|p02981|0
u430395207|p02981|0
codenet
Compile Error
352
v2_s405065625
s405065625
s405065625
p02981
p02981
u430395207
u430395207
1,562,547,920
2019-07-08T01:05:20
T.java
public class T or T { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int N = sc.nextInt(); int train = A*N ; if (train <= B) { System.out.println (train); } else { System....
T.java:1: error: '{' expected public class T or T { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u430395207|p02981|0
u430395207|p02981|0
codenet
Compile Error
352
v2_s314281879
s314281879
s314281879
p02981
p02981
u430395207
u430395207
1,562,547,977
2019-07-08T01:06:17
TorT.java
public class TorT { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int N = sc.nextInt(); int train = A*N ; if (train <= B) { System.out.println (train); } else { System.ou...
TorT.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class TorT TorT.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class TorT 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u430395207|p02981|0
u430395207|p02981|0
codenet
Compile Error
350
v2_s944338901
s944338901
s944338901
p02981
p02981
u430395207
u430395207
1,562,548,326
2019-07-08T01:12:06
Main.java
class TorT { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int N = sc.nextInt(); int train = A*N ; if (train <= B) { System.out.println (train); } else System.out.printl...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class TorT Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class TorT 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u430395207|p02981|0
u430395207|p02981|0
codenet
Compile Error
332
v2_s225262750
s225262750
s225262750
p02981
p02981
u430395207
u430395207
1,562,548,430
2019-07-08T01:13:50
Main.java
import jp.tdu.util.RandomNumber; class TorT { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int N = sc.nextInt(); int train = A*N ; if (train <= B) { System.out.println (train); } ...
Main.java:1: error: package jp.tdu.util does not exist import jp.tdu.util.RandomNumber; ^ Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class TorT Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u430395207|p02981|0
u430395207|p02981|0
codenet
Compile Error
365
v2_s168227320
s168227320
s168227320
p02981
p02981
u430395207
u430395207
1,562,548,495
2019-07-08T01:14:55
Main.java
import jp.tdu.util.*; class TorT { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int N = sc.nextInt(); int train = A*N ; if (train <= B) { System.out.println (train); } else ...
Main.java:1: error: package jp.tdu.util does not exist import jp.tdu.util.*; ^ Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class TorT Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u430395207|p02981|0
u430395207|p02981|0
codenet
Compile Error
354
v2_s612936507
s612936507
s612936507
p02981
p02981
u430395207
u430395207
1,562,549,080
2019-07-08T01:24:40
Main.java
import java.util.Scanner; class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int N = sc.nextInt(); int train = A*N ; if (train < B) { System.out.println (train); }if else (...
Main.java:11: error: '(' expected }if else () { ^ Main.java:11: error: illegal start of expression }if else () { ^ Main.java:11: error: -> expected }if else () { ^ Main.java:11: error: not a statement }if else () { ^ Main.java:13...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u430395207|p02981|0
u430395207|p02981|0
codenet
Compile Error
429
v2_s950037821
s950037821
s950037821
p02981
p02981
u431125128
u431125128
1,572,357,535
2019-10-29T13:58:55
Main.java
#include <bits/stdc++.h> using namespace std; int main() { int N,A,B; cin >> N >> A >> B; if(N*A>=B){ cout << N*A ; }else{ cout << B ; } }
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:6: error: not a statement cin >> N >> A >> B; ^ Main.java:8: error: not a statement cout << N*A ; ^ Main.java:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02981|0
u431125128|p02981|0
codenet
Compile Error
158
v2_s046086251
s046086251
s046086251
p02981
p02981
u446997166
u446997166
1,562,624,710
2019-07-08T22:25:10
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int A = scan.nextInt(); int B = scan.nextInt(); if(N*A > B){ System.out.println(N*A); }else{ ...
Main.java:21: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u446997166|p02981|0
u446997166|p02981|0
codenet
Compile Error
359
v2_s455251388
s455251388
s455251388
p02981
p02981
u447146486
u447146486
1,562,547,993
2019-07-08T01:06:33
Main.java
public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int humanNum = nextInt(); int train = nextInt(); int tax = nextInt(); int trainSum = humanNum * train; int rst = 0; if(trainSum>=tax){ ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) throws Exception { ^ (use --enable-preview to enable unnamed classes) Main.java:13: error: ';' expected rst = trainSum ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u447146486|p02981|0
u447146486|p02981|0
codenet
Compile Error
430
v2_s108469311
s108469311
s108469311
p02981
p02981
u448324500
u448324500
1,564,972,243
2019-08-05T02:30:43
Main.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(); if((N*A)<B){ System.out.println(N*A); } else{ System.out.println(B); } } }
Main.java:7: error: ';' expected Scanner sc new Scanner(system.in); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u448324500|p02981|0
u448324500|p02981|0
codenet
Compile Error
284
v2_s063039864
s063039864
s063039864
p02981
p02981
u505115437
u505115437
1,562,589,574
2019-07-08T12:39:34
Main.java
import java.util.Scanner; class Main { Main main = new Main (); Scanner sc = new Scanner (System.in); int N = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); if (N*A>B){ System.out.println(B); } else { System.out.println(A); } }
Main.java:13: error: illegal start of type if (N*A>B){ ^ Main.java:13: error: <identifier> expected if (N*A>B){ ^ Main.java:13: error: <identifier> expected if (N*A>B){ ^ Main.java:13: error: <identifier> expected if (N*A>B){ ^ Main.java:15: error: illegal start of t...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505115437|p02981|0
u505115437|p02981|0
codenet
Compile Error
307
v2_s414662243
s414662243
s414662243
p02981
p02981
u518883877
u518883877
1,562,547,697
2019-07-08T01:01:37
Main.java
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; #define Abs(x)((x) < 0 ? (x) * -1 : (x)) #define rep(x, y) for ((x) = 0; (x) < (y); (x)++) #define repin(x, y) for ((x) = 0; (x) <= (y); (x)++) #define nep(x, y) for ((x) = (y) - 1; 0 <= (x); (x)--) #define nepi(x, y...
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:5: error: class, interface, enum, or record expected typedef long long ll; ^ Main.java:6: error: class, interface, enum, or record expected t...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u518883877|p02981|0
u518883877|p02981|0
codenet
Compile Error
3,326
v2_s518215688
s518215688
s518215688
p02981
p02981
u527616458
u527616458
1,562,649,670
2019-07-09T05:21: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(); if(N*A =< B){ System.out.println(N*A); }else{ System.out.println(B); } } }
Main.java:10: error: > or ',' expected if(N*A =< B){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u527616458|p02981|0
u527616458|p02981|0
codenet
Compile Error
301
v2_s213564376
s213564376
s213564376
p02981
p02981
u568545273
u568545273
1,566,012,533
2019-08-17T03:28:53
Main.java
import java.util.*; public class Main { long INF = Long.MAX_VALUE; long[][] dp; public static void main(String[] args) { new Main().solve(); } void solve() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); System.out.println(N...
Main.java:18: error: ')' or ',' expected System.out.println(N*A < B ? N*A: B; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u568545273|p02981|0
u568545273|p02981|0
codenet
Compile Error
343
v2_s449235079
s449235079
s449235079
p02981
p02981
u587721314
u587721314
1,562,547,779
2019-07-08T01:02:59
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int t1 = sc.nextInt(); int t2 = sc.nextInt(); if (n*t1 >= t2) { return t2; } else { return n*t1; } ...
Main.java:12: error: incompatible types: unexpected return value return t2; ^ Main.java:14: error: incompatible types: unexpected return value return n*t1; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587721314|p02981|0
u587721314|p02981|0
codenet
Compile Error
338
v2_s888831067
s888831067
s888831067
p02981
p02981
u589158532
u589158532
1,562,548,002
2019-07-08T01:06:42
A.java
import java.*; public class A{ public static void main(String[] args){ Scanner s=new Scanner(System.in); int n=s.nextInt(); int a=s.nextInt(); int b=s.nextInt(); int min=Integer.min(a,b); System.out.println(min*n); } }
A.java:1: error: package java does not exist import java.*; ^ A.java:5: error: cannot find symbol Scanner s=new Scanner(System.in); ^ symbol: class Scanner location: class A A.java:5: error: cannot find symbol Scanner s=new Scanner(System.in); ^ symbol: class Scanner ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u589158532|p02981|0
u589158532|p02981|0
codenet
Compile Error
263
v2_s166383163
s166383163
s166383163
p02981
p02981
u589158532
u589158532
1,562,548,033
2019-07-08T01:07:13
Main.java
import java.*; class A{ public static void main(String[] args){ Scanner s=new Scanner(System.in); int n=s.nextInt(); int a=s.nextInt(); int b=s.nextInt(); int min=Integer.min(a,b); System.out.println(min*n); } }
Main.java:1: error: package java does not exist import java.*; ^ Main.java:5: error: cannot find symbol Scanner s=new Scanner(System.in); ^ symbol: class Scanner location: class A Main.java:5: error: cannot find symbol Scanner s=new Scanner(System.in); ^ symbol: class ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u589158532|p02981|0
u589158532|p02981|0
codenet
Compile Error
256
v2_s072754342
s072754342
s072754342
p02981
p02981
u589158532
u589158532
1,562,548,076
2019-07-08T01:07:56
Main.java
import java.io.*; class A{ public static void main(String[] args){ Scanner s=new Scanner(System.in); int n=s.nextInt(); int a=s.nextInt(); int b=s.nextInt(); int min=Integer.min(a,b); System.out.println(min*n); } }
Main.java:5: error: cannot find symbol Scanner s=new Scanner(System.in); ^ symbol: class Scanner location: class A Main.java:5: error: cannot find symbol Scanner s=new Scanner(System.in); ^ symbol: class Scanner location: class A 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u589158532|p02981|0
u589158532|p02981|0
codenet
Compile Error
259
v2_s447081483
s447081483
s447081483
p02981
p02981
u601435631
u601435631
1,562,548,238
2019-07-08T01:10:38
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 4 2 9 int a = sc.nextInt(); // 8
Main.java:6: error: reached end of file while parsing int a = sc.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u601435631|p02981|0
u601435631|p02981|0
codenet
Compile Error
170
v2_s566419572
s566419572
s566419572
p02981
p02981
u663819790
u663819790
1,565,222,050
2019-08-07T23:54:10
Main.java
public class Main { int keisan(int n, int a, int b) { n * a = j; if (j > b) { System.out.println(j); } else { System.out.println(b); } } public static void main(String[] args) { keisan(); } }
Main.java:5: error: unexpected type n * a = j; ^ required: variable found: value Main.java:5: error: cannot find symbol n * a = j; ^ symbol: variable j location: class Main Main.java:7: error: cannot find symbol if (j > b) { ^ symbol: variable j locat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u663819790|p02981|0
u663819790|p02981|0
codenet
Compile Error
287
v2_s809221669
s809221669
s809221669
p02981
p02981
u663819790
u663819790
1,565,222,178
2019-08-07T23:56:18
Main.java
public class Main { int keisan(int n, int a, int b) { private int j = 0; n * a = j; if (j > b) { System.out.println(j); } else { System.out.println(b); } } public static void main(String[] args) { keisan(); } }
Main.java:5: error: illegal start of expression private int j = 0; ^ Main.java:6: error: <identifier> expected n * a = j; ^ Main.java:6: error: <identifier> expected n * a = j; ^ Main.java:8: error: illegal start of type if (j > b) { ^ Main.java:8: error: <identifie...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u663819790|p02981|0
u663819790|p02981|0
codenet
Compile Error
313
v2_s978153233
s978153233
s978153233
p02981
p02981
u663819790
u663819790
1,565,222,513
2019-08-08T00:01:53
Main.java
public class Main { int keisan(int n, int a, int b) { int j; n * a = j; if (j > b) { System.out.println(j); } else { System.out.println(b); } } public static void main(String[] args) { keisan(); } }
Main.java:6: error: unexpected type n * a = j; ^ required: variable found: value Main.java:18: error: method keisan in class Main cannot be applied to given types; keisan(); ^ required: int,int,int found: no arguments reason: actual and formal argument lists differ in length 2 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u663819790|p02981|0
u663819790|p02981|0
codenet
Compile Error
301
v2_s428485578
s428485578
s428485578
p02981
p02981
u663819790
u663819790
1,565,222,844
2019-08-08T00:07:24
Main.java
public class Main { int keisan(int n, int a, int b) { int j; j = a * b; if (j > b) { System.out.println(j); } else { System.out.println(b); } } public static void main(String[] args) { keisan(); } }
Main.java:18: error: method keisan in class Main cannot be applied to given types; keisan(); ^ required: int,int,int found: no arguments reason: actual and formal argument lists differ in length 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u663819790|p02981|0
u663819790|p02981|0
codenet
Compile Error
301
v2_s843523334
s843523334
s843523334
p02981
p02981
u663819790
u663819790
1,565,224,472
2019-08-08T00:34:32
Main.java
public class Main { private static int keisan(int n, int a, int b) { int j; j = a * b; if (j > b) { return System.out.print(j); } else { return System.out.print(b); } } public static void main(String[] args) { int kei = keisan();...
Main.java:9: error: incompatible types: void cannot be converted to int return System.out.print(j); ^ Main.java:11: error: incompatible types: void cannot be converted to int return System.out.print(b); ^ Main.java:18: error: method keisan ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u663819790|p02981|0
u663819790|p02981|0
codenet
Compile Error
343
v2_s917973144
s917973144
s917973144
p02981
p02981
u663819790
u663819790
1,565,226,370
2019-08-08T01:06:10
Main.java
public class Main { public static void main(String[] args) { int N, A, B, kei; kei = N * A; if(kei > B) { System.out.print(B); } else { System.out.print(kei); } } }
Main.java:9: error: variable N might not have been initialized kei = N * A; ^ Main.java:9: error: variable A might not have been initialized kei = N * A; ^ Main.java:11: error: variable B might not have been initialized if(kei > B) { ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u663819790|p02981|0
u663819790|p02981|0
codenet
Compile Error
243
v2_s192925734
s192925734
s192925734
p02981
p02981
u761924810
u761924810
1,563,456,444
2019-07-18T13:27:24
Main.java
public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); br.close(); int n = Integer.parseInt(st.nextToken()); int a = Integer.parseInt(st.nex...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) throws IOException { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u761924810|p02981|0
u761924810|p02981|0
codenet
Compile Error
468
v2_s263820687
s263820687
s263820687
p02981
p02981
u795990458
u795990458
1,562,548,804
2019-07-08T01:20:04
Main.java
import java.util.Scanner; public class Main { Scanner s = new Scanner(System.in); int n = s.nextInt(); int a = s.nextInt(); int b = s.nextInt(); int costTrain = n * a; int costTaxi = n * b; if(costTrain<=costTaxi){ System.out.println(costTrain); }else { System.out.println(costTaxi); } } }
Main.java:14: error: illegal start of type if(costTrain<=costTaxi){ ^ Main.java:14: error: <identifier> expected if(costTrain<=costTaxi){ ^ Main.java:14: error: <identifier> expected if(costTrain<=costTaxi){ ^ Main.java:16: error: illegal start of type }else ^ Main.java:21: er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u795990458|p02981|0
u795990458|p02981|0
codenet
Compile Error
309
v2_s057060688
s057060688
s057060688
p02981
p02981
u796481713
u796481713
1,572,292,436
2019-10-28T19:53:56
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scaner sc = new Scanner(System.in); int N = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); if(N*A<B){ System.out.println(N*A); }else{ System.out.println(B); } } }
Main.java:4: error: cannot find symbol Scaner sc = new Scanner(System.in); ^ symbol: class Scaner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u796481713|p02981|0
u796481713|p02981|0
codenet
Compile Error
304
v2_s403950360
s403950360
s403950360
p02981
p02981
u801746176
u801746176
1,562,547,913
2019-07-08T01:05:13
Main.java
class Main { public static void main(String[] args) { if (args == null || args.length != 3) return null; int N = args[0]; int A = args[1]; int B = args[2]; int result = N * A > B ? N : N * A; System.out.println(result); } }
Main.java:3: error: incompatible types: unexpected return value if (args == null || args.length != 3) return null; ^ Main.java:5: error: incompatible types: String cannot be converted to int int N = args[0]; ^ Main.java:6: error: incompatible type...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u801746176|p02981|0
u801746176|p02981|0
codenet
Compile Error
271
v2_s544903847
s544903847
s544903847
p02981
p02981
u808976884
u808976884
1,562,901,599
2019-07-12T03:19:59
Main.java
import java.util.*; import java.util.ArrayList; 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(); //System.out.println(B); 計算 if(A < B){...
Main.java:13: error: not a statement ?? ^ Main.java:13: error: ';' expected ?? ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u808976884|p02981|0
u808976884|p02981|0
codenet
Compile Error
445
v2_s623997296
s623997296
s623997296
p02981
p02981
u808976884
u808976884
1,562,901,618
2019-07-12T03:20:18
Main.java
import java.util.*; import java.util.ArrayList; 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(); //System.out.println(B); 計算 if(A < B){...
Main.java:13: error: not a statement ?? ^ Main.java:13: error: ';' expected ?? ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u808976884|p02981|0
u808976884|p02981|0
codenet
Compile Error
445
v2_s712737250
s712737250
s712737250
p02981
p02981
u808976884
u808976884
1,562,901,637
2019-07-12T03:20:37
Main.java
import java.util.*; import java.util.ArrayList; 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(); //System.out.println(B); 計算 if(A < B){...
Main.java:13: error: not a statement ?? ^ Main.java:13: error: ';' expected ?? ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u808976884|p02981|0
u808976884|p02981|0
codenet
Compile Error
445