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_s109882195
s109882195
s109882195
p02754
p02754
u165829448
u165829448
1,583,636,289
2020-03-08T02:58:09
Main.java
import java.util.*; import java.util.Scanner; class Main{ public static void main(String[] args) { long n, a, b; int result = 0; int flag; Scanner scanner = new Scanner(System.in); n = scanner.nextLong(); a = scanner.nextLong(); b = scanner.nextLong(); ...
Main.java:13: error: incompatible types: possible lossy conversion from long to int flag = n / (a + b); ^ Main.java:14: error: incompatible types: possible lossy conversion from long to int result = a * flag; ^ Main.java:15: error: incompatible types: possible lossy c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u165829448|p02754|0
u165829448|p02754|0
codenet
Compile Error
467
v2_s499500090
s499500090
s499500090
p02754
p02754
u177138269
u177138269
1,584,065,006
2020-03-13T02:03:26
Count_Balls.java
public class Count_Balls { 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 = A+B; // Nを指定した場合のあまり int L = N%C; // 計算用 int ta...
Count_Balls.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Count_Balls Count_Balls.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class C...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u177138269|p02754|0
u177138269|p02754|0
codenet
Compile Error
454
v2_s246626910
s246626910
s246626910
p02754
p02754
u185295687
u185295687
1,583,637,144
2020-03-08T03:12:24
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long A = sc.nextLong(); long B = sc.nextLong(); int time = N / (A+B); if(A+B == 0) { System.out.println(0); return; } long tim...
Main.java:8: error: incompatible types: possible lossy conversion from long to int int time = N / (A+B); ^ Main.java:13: error: variable time is already defined in method main(String[]) long time = N / (A + B); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u185295687|p02754|0
u185295687|p02754|0
codenet
Compile Error
398
v2_s621932686
s621932686
s621932686
p02754
p02754
u185476296
u185476296
1,583,635,671
2020-03-08T02:47:51
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double N = sc.nextDouble(); double A = sc.nextDouble(); double B = sc.nextDouble(); double ballCount = 0; double blueBallCount = 0; for (double i = 0;ballCount < N;i++) { if (i % 2 != 0) { ballCo...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:30: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u185476296|p02754|0
u185476296|p02754|0
codenet
Compile Error
623
v2_s419221488
s419221488
s419221488
p02754
p02754
u185476296
u185476296
1,583,637,464
2020-03-08T03:17:44
Main.java
import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BigInteger N = new BigInteger(sc.next()); BigInteger A = new BigInteger(sc.next()); BigInteger B = new BigInteger(sc.next()); BigInteger sum = A.add(B)...
Main.java:28: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u185476296|p02754|0
u185476296|p02754|0
codenet
Compile Error
602
v2_s175751887
s175751887
s175751887
p02754
p02754
u193866675
u193866675
1,584,779,399
2020-03-21T08:29:59
Main.java
mport java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BigInteger N = BigInteger.valueOf(sc.nextLong()); BigInteger A = BigInteger.valueOf(sc.nextLong()); BigInteger B = BigInteger.valueOf(sc.nextLong()); BigInt...
Main.java:1: error: class, interface, enum, or record expected mport java.math.BigInteger; ^ Main.java:2: error: class, interface, enum, or record expected import java.util.Scanner; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u193866675|p02754|0
u193866675|p02754|0
codenet
Compile Error
681
v2_s254963042
s254963042
s254963042
p02754
p02754
u241090452
u241090452
1,588,343,041
2020-05-01T14:24:01
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long a = sc.nextlong(); long b = sc.nextLong(); if(a+b<n){ System.out.println(a); }else{ System.out.println(...
Main.java:6: error: cannot find symbol long a = sc.nextlong(); ^ symbol: method nextlong() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u241090452|p02754|0
u241090452|p02754|0
codenet
Compile Error
353
v2_s127216419
s127216419
s127216419
p02754
p02754
u241090452
u241090452
1,588,343,080
2020-05-01T14:24:40
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long a = sc.nextong(); long b = sc.nextLong(); if(a+b<n){ System.out.println(a); }else{ System.out.println(n...
Main.java:6: error: cannot find symbol long a = sc.nextong(); ^ symbol: method nextong() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u241090452|p02754|0
u241090452|p02754|0
codenet
Compile Error
352
v2_s081206943
s081206943
s081206943
p02754
p02754
u270058164
u270058164
1,594,720,709
2020-07-14T09:58:29
Main.java
#include<bits/stdc++.h> using namespace std; int main() { int n,a,b; cin>>n>>a>>b; if(n>(a+b)){ int x = n%(a+b); if(x>a){ x=a; } cout<<x + (n/(a+b))*a; } else{ cout<<a; } }
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:7: error: not a statement cin>>n>>a>>b; ^ Main.java:13: error: not a statement cout<<x + (n/(a+b))*a; ^ Main.java:16:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u270058164|p02754|0
u270058164|p02754|0
codenet
Compile Error
221
v2_s036159982
s036159982
s036159982
p02754
p02754
u288042356
u288042356
1,583,634,796
2020-03-08T02:33:16
Main.java
import java.util.*; import java.io.*; import java.util.function.*; public class Main{ public static void main(String[] args) { FastScanner sc = new FastScanner(); PrintWriter out = new PrintWriter(System.out); int N = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt();...
Main.java:7: error: cannot find symbol FastScanner sc = new FastScanner(); ^ symbol: class FastScanner location: class Main Main.java:7: error: cannot find symbol FastScanner sc = new FastScanner(); ^ symbol: class FastScanner location: class Main 2 error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u288042356|p02754|0
u288042356|p02754|0
codenet
Compile Error
592
v2_s249264515
s249264515
s249264515
p02754
p02754
u288042356
u288042356
1,583,634,886
2020-03-08T02:34:46
Main.java
import java.util.*; import java.io.*; import java.util.function.*; public class Main{ public static void main(String[] args) { FastScanner sc = new FastScanner(); PrintWriter out = new PrintWriter(System.out); int N = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt();...
Main.java:7: error: cannot find symbol FastScanner sc = new FastScanner(); ^ symbol: class FastScanner location: class Main Main.java:7: error: cannot find symbol FastScanner sc = new FastScanner(); ^ symbol: class FastScanner location: class Main 2 error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u288042356|p02754|0
u288042356|p02754|0
codenet
Compile Error
585
v2_s517958298
s517958298
s517958298
p02754
p02754
u305758815
u305758815
1,584,389,154
2020-03-16T20:05:54
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long a = sc.nextLong(); long b = sc.nextLong(); long ballsLeft = n% (a+b); long times = n / (a+b); if (ballsLeft >= a) { Syst...
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
u305758815|p02754|0
u305758815|p02754|0
codenet
Compile Error
454
v2_s648993418
s648993418
s648993418
p02754
p02754
u306751200
u306751200
1,588,730,751
2020-05-06T02:05:51
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.next(); int A = sc.next(); int B = sc.next(); int Ans = N % (A + B); if(A < Ans){ A += Ans; } else if(A >= Ans){ A += A; } System.out.println(A); } }
Main.java:5: error: incompatible types: String cannot be converted to int int N = sc.next(); ^ Main.java:6: error: incompatible types: String cannot be converted to int int A = sc.next(); ^ Main.java:7: error: incompatible types: String cannot be converted to int int B = sc.next(...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u306751200|p02754|0
u306751200|p02754|0
codenet
Compile Error
314
v2_s874589164
s874589164
s874589164
p02754
p02754
u313349084
u313349084
1,583,852,976
2020-03-10T15:09:36
Main.java
public class Main { public static void main(String[] args) throws IOException{ InputStreamReader in = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(in); // String[] line = br.readLine().split(" "); int n = Integer.parseInt(line[0]); int a = Integer.parseInt(line[1]); int b = I...
Main.java:2: error: cannot find symbol public static void main(String[] args) throws IOException{ ^ symbol: class IOException location: class Main Main.java:3: error: cannot find symbol InputStreamReader in = new InputStreamReader(System.in); ^ symbol: class...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u313349084|p02754|0
u313349084|p02754|0
codenet
Compile Error
633
v2_s579269140
s579269140
s579269140
p02754
p02754
u322953890
u322953890
1,583,635,542
2020-03-08T02:45:42
MainTest.java
import org.hamcrest.core.Is; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import StdInOutStub.StandardInputSnatcher; import StdInOutStub.StandardOutputSnatcher; import TestUtil.TestDataFileReader; public class MainTest { String path = "./src/abc158/b/"; StandardOu...
MainTest.java:1: error: package org.hamcrest.core does not exist import org.hamcrest.core.Is; ^ MainTest.java:2: error: package org.junit does not exist import org.junit.After; ^ MainTest.java:3: error: package org.junit does not exist import org.junit.Assert; ^ M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u322953890|p02754|0
u322953890|p02754|0
codenet
Compile Error
2,051
v2_s063676245
s063676245
s063676245
p02754
p02754
u330632891
u330632891
1,583,809,753
2020-03-10T03:09:13
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long A = sc.nextLong(); long B = sc.nextLong(); long count = 0; long all = 0; while (all < N) { ...
Main.java:23: error: reached end of file while parsing System.out.println(count); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u330632891|p02754|0
u330632891|p02754|0
codenet
Compile Error
610
v2_s274040245
s274040245
s274040245
p02754
p02754
u353919145
u353919145
1,584,856,348
2020-03-22T05:52:28
Main.java
public static void main(String []args){ String x = new Scanner(System.in).nextLine(); String array1[]=x.split("\\s+"); long N =Long.parseLong(array1[0]); long A=Long.parseLong(array1[1]); long B=Long.parseLong(array1[2]); CoubtBalls(N,A,B); } public static void CoubtBalls(long...
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
u353919145|p02754|0
u353919145|p02754|0
codenet
Compile Error
607
v2_s435762635
s435762635
s435762635
p02754
p02754
u369712616
u369712616
1,583,983,953
2020-03-12T03:32:33
Main.java
import java.util.Scanner; class Main{ pubkic static void main(String[] args){ Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long a = sc.nextLong(); long b = sc.nextLong(); long c = n/(a+b); long d = n-(a+b)*c; System.out.println(c*a+Math.min(a,d); } }
Main.java:3: error: <identifier> expected pubkic static void main(String[] args){ ^ Main.java:10: error: ')' or ',' expected System.out.println(c*a+Math.min(a,d); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02754|0
u369712616|p02754|0
codenet
Compile Error
309
v2_s175132462
s175132462
s175132462
p02754
p02754
u374566600
u374566600
1,583,692,711
2020-03-08T18:38:31
Main.java
public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long A = sc.nextLong(); long B = sc.nextLong(); long ans; if(N % (A+B) < A) ans = N / (A+B) * A + N % (A+B); else ans = N / (A+B) * A + A; Syste...
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
u374566600|p02754|1
u374566600|p02754|1
codenet
Compile Error
350
v2_s376112505
s376112505
s376112505
p02754
p02754
u385841350
u385841350
1,583,638,242
2020-03-08T03:30:42
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc=new Scanner (System.in); long n=sc.nextLong(); long a=sc.nextLong(); long a=sc.nextLong(); System.out.println((n/(b+a))*a+Math.min(a,n%(b+a))); } }
Main.java:7: error: variable a is already defined in method main(String[]) long a=sc.nextLong(); ^ Main.java:8: error: cannot find symbol System.out.println((n/(b+a))*a+Math.min(a,n%(b+a))); ^ symbol: variable b location: class Main Main.java:8: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u385841350|p02754|0
u385841350|p02754|0
codenet
Compile Error
256
v2_s918224728
s918224728
s918224728
p02754
p02754
u404196289
u404196289
1,583,634,786
2020-03-08T02:33:06
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); long N = Integer.parseInt(sc.next()); long b = Integer.parseInt(sc.next()); long r = Integer.parseInt(sc.next()); if (b == 0) { System.out.println(0); }else{ long shou = N / (b+ r);...
Main.java:6: error: cannot find symbol long N = Integer.parseInt(sc.next()); ^ symbol: variable sc location: class Main Main.java:7: error: cannot find symbol long b = Integer.parseInt(sc.next()); ^ symbol: variable sc location: class Main Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u404196289|p02754|0
u404196289|p02754|0
codenet
Compile Error
418
v2_s021321146
s021321146
s021321146
p02754
p02754
u404196289
u404196289
1,583,680,329
2020-03-08T15:12:09
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); long N = scanner.nextLong(); long b = scanner.nextLong(); long r = scanner.nextLong(); long res = N / (b+ r); long mod = N % (b+ r); if(r == 0){ System.out.println(0); }else{ if...
Main.java:6: error: cannot find symbol long N = scanner.nextLong(); ^ symbol: variable scanner location: class Main Main.java:7: error: cannot find symbol long b = scanner.nextLong(); ^ symbol: variable scanner location: class Main Main.java:8: error: cannot find symbol long r = ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u404196289|p02754|1
u404196289|p02754|1
codenet
Compile Error
393
v2_s060339550
s060339550
s060339550
p02754
p02754
u413792053
u413792053
1,583,875,626
2020-03-10T21:27:06
Main.java
import java.util.Scanner; public class Main { static Scanner sc = Scanner(System.in); public static void main(String[] args) { long n = sc.nextInt(); long a = sc.nextInt(); long b = sc.nextInt(); long res = 0; long remainder = n % (a + b); if(remainder...
Main.java:5: error: cannot find symbol static Scanner sc = Scanner(System.in); ^ symbol: method Scanner(InputStream) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u413792053|p02754|0
u413792053|p02754|0
codenet
Compile Error
452
v2_s649809116
s649809116
s649809116
p02754
p02754
u447598807
u447598807
1,583,641,288
2020-03-08T04:21:28
Main.java
ort java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long A = sc.nextLong(); long B = sc.nextLong(); long amari = N%(A+B); long ans=0; if(A==0) System.out.print("0"); ans = (N/(A+B)) * A; if(amari<=A){ a...
Main.java:1: error: class, interface, enum, or record expected ort java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u447598807|p02754|0
u447598807|p02754|0
codenet
Compile Error
398
v2_s047167305
s047167305
s047167305
p02754
p02754
u486484971
u486484971
1,583,642,973
2020-03-08T04:49:33
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args ) throws Exception { Scanner sc = new Scanner(System.in); String input = sc.nextLine(); String frontBall = input.substring(0,input.indexOf(" ")); String afterFrontBall = input.substring(inp...
Main.java:55: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u486484971|p02754|0
u486484971|p02754|0
codenet
Compile Error
1,597
v2_s466019895
s466019895
s466019895
p02754
p02754
u486515092
u486515092
1,583,634,396
2020-03-08T02:26:36
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) > A){ System.out.print((N/(A+B))*A + A) }else{ System.out...
Main.java:10: error: ';' expected System.out.print((N/(A+B))*A + A) ^ Main.java:12: error: ';' expected System.out.print((N/(A+B))*A + N%(A+B)) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u486515092|p02754|0
u486515092|p02754|0
codenet
Compile Error
367
v2_s215983914
s215983914
s215983914
p02754
p02754
u497359350
u497359350
1,587,497,235
2020-04-21T19:27:15
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 aCount = 0; int nCount=n; while(n>0){ if(n-a>0){ aCount+=a; n-=a; }else{ aCount +=n; break; }...
Main.java:18: error: illegal start of type if(n-b=<0){ ^ Main.java:18: error: ';' expected if(n-b=<0){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497359350|p02754|0
u497359350|p02754|0
codenet
Compile Error
398
v2_s825158101
s825158101
s825158101
p02754
p02754
u497359350
u497359350
1,587,498,101
2020-04-21T19:41:41
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 aCount = 0; aCount += n/(a+b); if(n%(a+b)>a){ aCount+=a; }else{ acount+=n%(a+B); } System.out.print(aC...
Main.java:13: error: cannot find symbol acount+=n%(a+B); ^ symbol: variable acount location: class Main Main.java:13: error: cannot find symbol acount+=n%(a+B); ^ symbol: variable B location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497359350|p02754|0
u497359350|p02754|0
codenet
Compile Error
331
v2_s924948934
s924948934
s924948934
p02754
p02754
u497359350
u497359350
1,587,498,262
2020-04-21T19:44:22
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 aCount = 0; int nCount=n; aCount += n/(a+b)*a; if(n%(a+b)>a){ aCount+=a; }else{ aCount+=n%(a+b); } System...
Main.java:17: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497359350|p02754|0
u497359350|p02754|0
codenet
Compile Error
343
v2_s710184543
s710184543
s710184543
p02754
p02754
u532667821
u532667821
1,592,825,262
2020-06-22T11:27:42
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int A = scanner.nextINt(); int B = scanner.nextInt(); int result = N % (A + B); int i = 0; for(...
Main.java:7: error: cannot find symbol int A = scanner.nextINt(); ^ symbol: method nextINt() location: variable scanner of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532667821|p02754|0
u532667821|p02754|0
codenet
Compile Error
542
v2_s028536845
s028536845
s028536845
p02754
p02754
u532667821
u532667821
1,592,826,043
2020-06-22T11:40:43
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int A = scanner.nextInt(); int B = scanner.nextInt(); if((A + B = 0)){ int result = 0; } resu...
Main.java:9: error: unexpected type if((A + B = 0)){ ^ required: variable found: value Main.java:12: error: cannot find symbol result = N % (A + B); ^ symbol: variable result location: class Main Main.java:16: error: cannot find symbol i = N / (A + B) * A; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532667821|p02754|0
u532667821|p02754|0
codenet
Compile Error
500
v2_s882290065
s882290065
s882290065
p02754
p02754
u532667821
u532667821
1,592,826,163
2020-06-22T11:42:43
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int A = scanner.nextInt(); int B = scanner.nextInt(); int C = A + B; int result; int i; if((C = 0...
Main.java:12: error: incompatible types: int cannot be converted to boolean if((C = 0)){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532667821|p02754|0
u532667821|p02754|0
codenet
Compile Error
584
v2_s191346362
s191346362
s191346362
p02754
p02754
u532667821
u532667821
1,592,827,918
2020-06-22T12:11:58
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); long n = scanner.nextLong(); long A = scanner.nextLong(); long B = scanner.nextLong(); long s = n / (a + b); long t = n % (a + b); ...
Main.java:10: error: cannot find symbol long s = n / (a + b); ^ symbol: variable a location: class Main Main.java:10: error: cannot find symbol long s = n / (a + b); ^ symbol: variable b location: class Main Main.java:11: error: cannot find sym...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532667821|p02754|0
u532667821|p02754|0
codenet
Compile Error
503
v2_s857840037
s857840037
s857840037
p02754
p02754
u575593630
u575593630
1,584,068,315
2020-03-13T02:58:35
Main.java
import java.util.Scanner; /** * Created 2017/05/25. * nextLineの挙動とか */ public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int b = sc.nexInt(); int r = sc.nextInt(); int s = b+r; int cnt = N / s; i...
Main.java:11: error: cannot find symbol int b = sc.nexInt(); ^ symbol: method nexInt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u575593630|p02754|0
u575593630|p02754|0
codenet
Compile Error
513
v2_s343120248
s343120248
s343120248
p02754
p02754
u575593630
u575593630
1,584,068,639
2020-03-13T03:03:59
Main.java
import java.util.Scanner; /** * Created 2017/05/25. * nextLineの挙動とか */ public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int b = sc.nextInt(); int r = sc.nextInt(); int s = b+r; int cnt = N / s; ...
Main.java:18: error: > or ',' expected if(mod =< b){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u575593630|p02754|0
u575593630|p02754|0
codenet
Compile Error
504
v2_s696989237
s696989237
s696989237
p02754
p02754
u575593630
u575593630
1,584,068,678
2020-03-13T03:04:38
Main.java
import java.util.Scanner; /** * Created 2017/05/25. * nextLineの挙動とか */ public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int b = sc.nextInt(); int r = sc.nextInt(); int s = b+r; int cnt = N / s; ...
Main.java:18: error: > or ',' expected if(mod =< b){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u575593630|p02754|0
u575593630|p02754|0
codenet
Compile Error
504
v2_s999105723
s999105723
s999105723
p02754
p02754
u626353997
u626353997
1,584,200,074
2020-03-14T15:34:34
Main.java
import java.util.*; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLing(); long a = sc.nextLing(); long b = sc.nextLing(); long ans = n/(a+b)*a; ans += Math.min(a,n%(a+b)); System.out.println(ans); ...
Main.java:6: error: cannot find symbol long n = sc.nextLing(); ^ symbol: method nextLing() location: variable sc of type Scanner Main.java:7: error: cannot find symbol long a = sc.nextLing(); ^ symbol: method nextLing() location: variable sc of type Scan...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p02754|0
u626353997|p02754|0
codenet
Compile Error
325
v2_s853621630
s853621630
s853621630
p02754
p02754
u663819790
u663819790
1,583,636,206
2020-03-08T02:56:46
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N,A,B,sum; N = sc.nextInt(); A = sc.nextInt(); B = sc.nextInt(); sc.close(); sum = 0; kei = A + B; for(int i = 0; i < 1001; i++) { if(A === 0) { ...
Main.java:19: error: illegal start of expression if(A === 0) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u663819790|p02754|0
u663819790|p02754|0
codenet
Compile Error
502
v2_s219274893
s219274893
s219274893
p02754
p02754
u679312480
u679312480
1,583,634,245
2020-03-08T02:24:05
Main.java
import java.util.*; class Main{ public static void main(String[] args) { try(Scanner sc = new Scanner(System.in);){ int all = Integer.valueOf(sc.next()); int blue = Integer.valueOf(sc.next()); int red = Integer.valueOf(sc.next()); if(blue == 0) sys...
Main.java:12: error: package system does not exist if(blue == 0) system.out.println(0); ^ Main.java:13: error: package system does not exist else if(blue + red >= all && all > blue) system.out.println(blue); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u679312480|p02754|0
u679312480|p02754|0
codenet
Compile Error
980
v2_s797028209
s797028209
s797028209
p02754
p02754
u679312480
u679312480
1,583,636,188
2020-03-08T02:56:28
Main.java
import java.util.*; class Main{ public static void main(String[] args) { try(Scanner sc = new Scanner(System.in);){ long all = Integer.valueOf(sc.next()); long blue = Integer.valueOf(sc.next()); long red = Integer.valueOf(sc.next()); if(blue...
Main.java:33: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u679312480|p02754|0
u679312480|p02754|0
codenet
Compile Error
995
v2_s576181124
s576181124
s576181124
p02754
p02754
u702156442
u702156442
1,583,703,323
2020-03-08T21:35: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 A = sc.nextInt(); int B = sc.nextInt(); // 周期数と余りをカウント int roop = N / (A+B); int remain = N % (A+B); ...
Main.java:26: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u702156442|p02754|0
u702156442|p02754|0
codenet
Compile Error
571
v2_s847398006
s847398006
s847398006
p02754
p02754
u732061897
u732061897
1,583,862,301
2020-03-10T17:45:01
Main.java
public class Main { // 参考:https://atcoder.jp/contests/abc158/submissions/10591203 public static void main(String[] args) { Scanner sc = new Scanner(System.in); // longで入るね. // https://docs.oracle.com/javase/jp/13/docs/api/java.base/java/lang/Long.html // longに設定可能な最大値2**63-1を保持する定数。 // log10(2)...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: 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
u732061897|p02754|0
u732061897|p02754|0
codenet
Compile Error
649
v2_s524014863
s524014863
s524014863
p02754
p02754
u750192625
u750192625
1,583,651,109
2020-03-08T07:05:09
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int[] nab = s.split(" "); int n = nab[0]; int a = nab[1]; int b = nab[2]; int c = a+b; int d = n%c; if(d>a) ...
Main.java:6: error: incompatible types: String[] cannot be converted to int[] int[] nab = s.split(" "); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u750192625|p02754|0
u750192625|p02754|0
codenet
Compile Error
411
v2_s915101355
s915101355
s915101355
p02754
p02754
u750192625
u750192625
1,583,651,155
2020-03-08T07:05:55
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int[] nab = Integer.pareInt(s.split(" ")); int n = nab[0]; int a = nab[1]; int b = nab[2]; int c = a+b; int d = n%c...
Main.java:6: error: cannot find symbol int[] nab = Integer.pareInt(s.split(" ")); ^ symbol: method pareInt(String[]) location: class Integer 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u750192625|p02754|0
u750192625|p02754|0
codenet
Compile Error
428
v2_s694320303
s694320303
s694320303
p02754
p02754
u750192625
u750192625
1,583,651,182
2020-03-08T07:06:22
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int[] nab = Integer.parseInt(s.split(" ")); int n = nab[0]; int a = nab[1]; int b = nab[2]; int c = a+b; int d = n%...
Main.java:6: error: incompatible types: String[] cannot be converted to String int[] nab = Integer.parseInt(s.split(" ")); ^ 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
u750192625|p02754|0
u750192625|p02754|0
codenet
Compile Error
427
v2_s689502184
s689502184
s689502184
p02754
p02754
u750192625
u750192625
1,583,651,720
2020-03-08T07:15:20
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = Long.parseLong(sc.next()); long a = Long.parseLong(sc.next()); long b = Long.parseLng(sc.next()); if(a==0){ System.out.println(0); return; ...
Main.java:7: error: cannot find symbol long b = Long.parseLng(sc.next()); ^ symbol: method parseLng(String) location: class Long 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u750192625|p02754|0
u750192625|p02754|0
codenet
Compile Error
480
v2_s411947235
s411947235
s411947235
p02754
p02754
u793144126
u793144126
1,591,225,399
2020-06-03T23:03:19
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int a = scanner.nextInt(); int b = scanner.nextInt(); int count=0; int instance=0; boolean bool = true; while (bool){ ...
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
u793144126|p02754|0
u793144126|p02754|0
codenet
Compile Error
677
v2_s048469927
s048469927
s048469927
p02754
p02754
u793144126
u793144126
1,591,225,936
2020-06-03T23:12:16
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long n = scanner.nextLong(); long a = scanner.nextLong(); long b = scanner.nextLong(); long count=0; long instance=0; boolean bool = true; while (boo...
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
u793144126|p02754|0
u793144126|p02754|0
codenet
Compile Error
692
v2_s462081035
s462081035
s462081035
p02754
p02754
u793144126
u793144126
1,591,226,369
2020-06-03T23:19:29
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long n = scanner.nextLong(); long a = scanner.nextLong(); long b = scanner.nextLong(); long count=0; count = n%(a+b); if (count<a){ ...
Main.java:14: error: ';' expected count = ((n-count)/(a+b))*a ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u793144126|p02754|0
u793144126|p02754|0
codenet
Compile Error
477
v2_s164025774
s164025774
s164025774
p02754
p02754
u803314854
u803314854
1,584,979,760
2020-03-23T16:09:20
Main.java
import java.util.*; class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); long n=sc.nextLong(); long a=sc.nextLong(); long b=sc.nextLong(); System.out.println((n/(a+b))*a+((n%(a+b))>a)?a:n); } }
Main.java:8: error: bad operand types for binary operator '+' System.out.println((n/(a+b))*a+((n%(a+b))>a)?a:n); ^ first type: long second type: boolean 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u803314854|p02754|0
u803314854|p02754|0
codenet
Compile Error
234
v2_s571491044
s571491044
s571491044
p02754
p02754
u860874998
u860874998
1,589,401,802
2020-05-13T20:30:02
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 long N = sc.nexyLong(); long A = sc.nextLong(); long B = sc.nextLong(); long blue=N/(A+B); blue=Math.ceil(blue*A); System.out.println(blue); } }
Main.java:6: error: cannot find symbol long N = sc.nexyLong(); ^ symbol: method nexyLong() location: variable sc of type Scanner Main.java:11: error: incompatible types: possible lossy conversion from double to long blue=Math.ceil(blue*A); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02754|0
u860874998|p02754|0
codenet
Compile Error
327
v2_s241033952
s241033952
s241033952
p02754
p02754
u897436032
u897436032
1,585,965,257
2020-04-04T01:54:17
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); String[] con = S.split(" "); int N = Integer.parseInt(con[0]); int A = Integer.parseInt(con[1]); int B = Integer.parseInt(...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u897436032|p02754|0
u897436032|p02754|0
codenet
Compile Error
575
v2_s132244271
s132244271
s132244271
p02754
p02754
u897436032
u897436032
1,585,966,193
2020-04-04T02:09:53
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long A = sc.nextLong(); long B = sc.nextLong(); sc.close(); if (N == 0 || A == 0) { System.out.print(0); } long...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: 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
u897436032|p02754|0
u897436032|p02754|0
codenet
Compile Error
448
v2_s982137770
s982137770
s982137770
p02754
p02754
u897436032
u897436032
1,585,966,269
2020-04-04T02:11:09
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); long N = stdIn.nextLong(); long A = stdIn.nextLong(); long B = stdIn.nextLong(); stdIn.close(); long Count = 0; if (N % (A + B) > A...
Main.java:23: error: class, interface, enum, or record expected import java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u897436032|p02754|0
u897436032|p02754|0
codenet
Compile Error
983
v2_s720940707
s720940707
s720940707
p02754
p02754
u910295652
u910295652
1,585,972,191
2020-04-04T03:49:51
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 b = sc.nextInt(); int r = sc.nextInt(); int a = b + n; int b = a - r; System.out.println(b); } }
Main.java:11: error: variable b is already defined in method main(String[]) int b = a - r; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02754|0
u910295652|p02754|0
codenet
Compile Error
277
v2_s529397928
s529397928
s529397928
p02754
p02754
u910295652
u910295652
1,585,972,428
2020-04-04T03:53:48
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 b = sc.nextInt(); int r = sc.nextInt(); int x = 0; if(b == 0) { System.out.println(x); } else { int x = n-r; System.out.println(...
Main.java:13: error: variable x is already defined in method main(String[]) int x = n-r; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02754|0
u910295652|p02754|0
codenet
Compile Error
335
v2_s196574161
s196574161
s196574161
p02754
p02754
u910295652
u910295652
1,585,972,834
2020-04-04T04:00:34
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BigInteger n = new BigInteger(sc.nextInt().toString()); BigInteger b = new BigInteger(sc.nextInt().toString()); BigInteger r = new BigInteger(sc.nextInt().toString()); BigInteger x...
Main.java:6: error: cannot find symbol BigInteger n = new BigInteger(sc.nextInt().toString()); ^ symbol: class BigInteger location: class Main Main.java:6: error: cannot find symbol BigInteger n = new BigInteger(sc.nextInt().toString()); ^ symbol: class BigInteger location...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02754|0
u910295652|p02754|0
codenet
Compile Error
459
v2_s148378202
s148378202
s148378202
p02754
p02754
u910295652
u910295652
1,585,972,876
2020-04-04T04:01:16
Main.java
import java.util.Scanner; import java.lang.Math; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BigInteger n = new BigInteger(sc.nextInt().toString()); BigInteger b = new BigInteger(sc.nextInt().toString()); BigInteger r = new BigInteger(sc.nextInt().toStrin...
Main.java:6: error: cannot find symbol BigInteger n = new BigInteger(sc.nextInt().toString()); ^ symbol: class BigInteger location: class Main Main.java:6: error: cannot find symbol BigInteger n = new BigInteger(sc.nextInt().toString()); ^ symbol: class BigInteger location...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02754|0
u910295652|p02754|0
codenet
Compile Error
481
v2_s789614108
s789614108
s789614108
p02754
p02754
u910295652
u910295652
1,585,972,958
2020-04-04T04:02:38
Main.java
import java.util.Scanner; import java.math.BigInteger; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BigInteger n = new BigInteger(sc.nextInt().toString()); BigInteger b = new BigInteger(sc.nextInt().toString()); BigInteger r = new BigInteger(sc.nextInt()....
Main.java:6: error: int cannot be dereferenced BigInteger n = new BigInteger(sc.nextInt().toString()); ^ Main.java:7: error: int cannot be dereferenced BigInteger b = new BigInteger(sc.nextInt().toString()); ^ Main.java:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02754|0
u910295652|p02754|0
codenet
Compile Error
488
v2_s778926564
s778926564
s778926564
p02754
p02754
u910295652
u910295652
1,585,972,996
2020-04-04T04:03:16
Main.java
import java.util.Scanner; import java.math.BigInteger; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BigInteger n = new BigInteger(sc.nextChar()); BigInteger b = new BigInteger(sc.nextChar()); BigInteger r = new BigInteger(sc.nextChar()); BigInteger x ...
Main.java:6: error: cannot find symbol BigInteger n = new BigInteger(sc.nextChar()); ^ symbol: method nextChar() location: variable sc of type Scanner Main.java:7: error: cannot find symbol BigInteger b = new BigInteger(sc.nextChar()); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02754|0
u910295652|p02754|0
codenet
Compile Error
458
v2_s559536917
s559536917
s559536917
p02754
p02754
u910295652
u910295652
1,585,973,109
2020-04-04T04:05:09
Main.java
import java.util.Scanner; import java.math.BigInteger; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BigInteger n = new BigInteger(Integer.toString(sc.nextInt())); BigInteger b = new BigInteger(Integer.toString(sc.nextInt())); BigInteger r = new BigInteger...
Main.java:10: error: bad operand types for binary operator '==' if(b == 0) { ^ first type: BigInteger second type: int Main.java:13: error: bad operand types for binary operator '-' x = n-r; ^ first type: BigInteger second type: BigInteger 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02754|0
u910295652|p02754|0
codenet
Compile Error
509
v2_s743242653
s743242653
s743242653
p02754
p02754
u910295652
u910295652
1,585,977,395
2020-04-04T05:16:35
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 b = sc.nextInt(); int r = sc.nextInt(); int x = 0; if(b != 0) && r != 0) { x = n-r; System.out.println(x); } else if(r == 0) { Sy...
Main.java:9: error: illegal start of expression if(b != 0) && r != 0) { ^ Main.java:9: error: ';' expected if(b != 0) && r != 0) { ^ Main.java:12: error: 'else' without 'if' } else if(r == 0) { ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02754|0
u910295652|p02754|0
codenet
Compile Error
395
v2_s039866152
s039866152
s039866152
p02754
p02754
u934782869
u934782869
1,592,172,259
2020-06-14T22:04:19
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long a = sc.nextLong(); long b = sc.nextLong(); long c = n / (a+b); long d = n % (a+b); if(c < 1) { System.out.println(Math....
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
u934782869|p02754|0
u934782869|p02754|0
codenet
Compile Error
482
v2_s041401322
s041401322
s041401322
p02754
p02754
u938155118
u938155118
1,583,635,599
2020-03-08T02:46:39
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); Long N = sc.nextLong(); Long A = sc.nextLong(); Long B = sc.nextLong(); Long na = 0L; // int nb = 0; do { if(N > A) { N = N - A; if(N <= 0L) { break; } na =...
Main.java:40: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u938155118|p02754|0
u938155118|p02754|0
codenet
Compile Error
633
v2_s200968258
s200968258
s200968258
p02754
p02754
u944472700
u944472700
1,583,686,205
2020-03-08T16:50:05
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 result = N / (A+B) * A; int m = N % (A+B); if(m>=A){ result += A; ...
Main.java:10: error: illegal character: '\u3000' ?int result = N / (A+B) * A; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u944472700|p02754|1
u944472700|p02754|1
codenet
Compile Error
408
v2_s761763290
s761763290
s761763290
p02754
p02754
u944472700
u944472700
1,583,686,282
2020-03-08T16:51:22
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 result = N / (A+B) * A; int m = N % (A+B); if(m>=A){ result += A; ...
Main.java:10: error: illegal character: '\u3000' ?int result = N / (A+B) * A; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u944472700|p02754|1
u944472700|p02754|1
codenet
Compile Error
408
v2_s347355416
s347355416
s347355416
p02755
p02755
u080990916
u080990916
1,598,321,408
2020-08-25T02:10:08
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 b = sc.nextInt(); sc.close(); System.out.println(solve(a, b)); } static int solve(int a, int b) { for (int price = b * 10; price < (b + ...
Main.java:18: error: incompatible types: missing return value return; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u080990916|p02755|1
u080990916|p02755|0
codenet
Compile Error
473
v2_s959213222
s959213222
s959213222
p02755
p02755
u173574510
u173574510
1,583,636,733
2020-03-08T03:05:33
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.StringTokenizer; /** * for (int i = 0; i < N; i++) {} * System.out.println(); * HashMap<Integer, Integer> hm = new HashMap<>(); * int[] s = new int[M]; * ArrayDeque<Integer> de...
Main.java:20: error: cannot find symbol new Thread(null, new Main3(), "", 16 * 1024 * 1024).start(); //16MB??????????? ^ symbol: class Main3 location: class Main Main.java:24: error: cannot find symbol FastScannerMain sc = new FastScannerMain3(System.in); ^ symbol: class FastScann...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u173574510|p02755|0
u173574510|p02755|0
codenet
Compile Error
2,766
v2_s496483334
s496483334
s496483334
p02755
p02755
u207845630
u207845630
1,583,638,797
2020-03-08T03:39:57
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int ans = -1; double ansA; double ansB; int A = sc.nextInt(); int B = sc.nextInt(); ansB = B * 10.0; ansA = A * 12.5; System.out.println(ansAsub); if(ansA - ansB > 10.0 || ansA -...
Main.java:12: error: cannot find symbol System.out.println(ansAsub); ^ symbol: variable ansAsub location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207845630|p02755|0
u207845630|p02755|0
codenet
Compile Error
458
v2_s163805389
s163805389
s163805389
p02755
p02755
u207845630
u207845630
1,588,931,722
2020-05-08T09:55:22
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int ans = -1; int max = 101 * 10; for(int i = 1;i < max;i++){ boolean flg = false; if(i * 0.08 = A && i * 0.1 = B){ flg = true; ans...
Main.java:11: error: unexpected type if(i * 0.08 = A && i * 0.1 = B){ ^ required: variable found: value Main.java:11: error: bad operand types for binary operator '&&' if(i * 0.08 = A && i * 0.1 = B){ ^ first type: int second type: double 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207845630|p02755|1
u207845630|p02755|1
codenet
Compile Error
406
v2_s786656886
s786656886
s786656886
p02755
p02755
u212367495
u212367495
1,587,117,986
2020-04-17T10:06:26
Main.java
import java.util.*; public class Main{ public static void main{ Scanner scn=new Scanner(System.in); int a=scn.nextInt(); int b=scn.nextInt(); int p; if((a*100)/8==p && b*10==p) System.out.println(p); else System.out.println("-1"); } }
Main.java:3: error: '(' expected public static void main{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212367495|p02755|0
u212367495|p02755|0
codenet
Compile Error
290
v2_s307215244
s307215244
s307215244
p02755
p02755
u212367495
u212367495
1,587,118,146
2020-04-17T10:09:06
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scn=new Scanner(System.in); int a=scn.nextInt(); int b=scn.nextInt(); int p; if((a*100)/8==p && b*10==p) System.out.println(p); else System.out.println("-1"); } }
Main.java:9: error: variable p might not have been initialized if((a*100)/8==p && b*10==p) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212367495|p02755|0
u212367495|p02755|0
codenet
Compile Error
300
v2_s203796245
s203796245
s203796245
p02755
p02755
u217597504
u217597504
1,584,908,644
2020-03-22T20:24:04
Main.java
import java.util.*; import java.lang.Math; public class { public static void main(String [] args){ Scanner in = new Scanner(System.in); double a = in.nextInt(); double b = in.nextInt(); for(int i=0;i<=1000;i++){ double x = Math.floor(i*0.08); double y = Math.floor(i*0.1); if(x==a && y==b){ System....
Main.java:3: error: <identifier> expected public class { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u217597504|p02755|0
u217597504|p02755|0
codenet
Compile Error
416
v2_s327280027
s327280027
s327280027
p02755
p02755
u218740431
u218740431
1,583,633,589
2020-03-08T02:13:09
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); Long c = "-1"; for(int i=1;i<=10000;i++){if((i*108)/100==a && (i*110)/100==b){c=i;break;}} System.out.println(c); } }
Main.java:7: error: incompatible types: String cannot be converted to Long Long c = "-1"; ^ Main.java:8: error: incompatible types: int cannot be converted to Long for(int i=1;i<=10000;i++){if((i*108)/100==a && (i*110)/100==b){c=i;break;}} ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02755|0
u218740431|p02755|0
codenet
Compile Error
307
v2_s970465348
s970465348
s970465348
p02755
p02755
u226917791
u226917791
1,583,634,113
2020-03-08T02:21:53
Main.java
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int a = sc.nextInt(); int b = sc.nextInt(); double ad = (double)a; double bd = (double)b; if (Math.floor(ad/0.08) == Math...
Main.java:22: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u226917791|p02755|0
u226917791|p02755|0
codenet
Compile Error
557
v2_s827582756
s827582756
s827582756
p02755
p02755
u226917791
u226917791
1,583,634,431
2020-03-08T02:27:11
TaxIncrease.java
import java.util.Scanner; public class TaxIncrease { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int a = sc.nextInt(); int b = sc.nextInt(); double ad = (double)a; double bd = (double)b; if (Math.floor(ad/0.08) == Math.floor(bd...
TaxIncrease.java:14: error: illegal start of type if ((ad/0.08)=<25){ ^ TaxIncrease.java:14: error: ';' expected if ((ad/0.08)=<25){ ^ TaxIncrease.java:16: error: 'else' without 'if' }else { ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u226917791|p02755|0
u226917791|p02755|0
codenet
Compile Error
566
v2_s545515885
s545515885
s545515885
p02755
p02755
u394325049
u394325049
1,585,195,810
2020-03-26T04:10:10
Main.java
/* package codechef; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Codechef { public static void main (String[] args) throws java.lang.Exception { try{ Scanner sc=new Scanner(System.in); ...
Main.java:16: error: incompatible types: possible lossy conversion from double to int int c=a/0.08; ^ Main.java:17: error: incompatible types: possible lossy conversion from double to int int d=b/0.1; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u394325049|p02755|0
u394325049|p02755|0
codenet
Compile Error
536
v2_s623504118
s623504118
s623504118
p02755
p02755
u394325049
u394325049
1,585,196,219
2020-03-26T04:16:59
Main.java
/* package codechef; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ public Class Codechef { public static void main (String[] args) throws java.lang.Exception { try{ Scanner sc=new Scanner(Syste...
Main.java:8: error: class, interface, enum, or record expected public Class Codechef ^ Main.java:10: error: unnamed classes are a preview feature and are disabled by default. public static void main (String[] args) throws java.lang.Exception ^ (use --enable-preview to enable unnamed classes) ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u394325049|p02755|0
u394325049|p02755|0
codenet
Compile Error
595
v2_s633108743
s633108743
s633108743
p02755
p02755
u404196289
u404196289
1,583,638,711
2020-03-08T03:38:31
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scan.nextInt(); int hachi = (int) (A / 0.08); int ans = 0; double s = 0.1; while(s == 1.0){ ans = (int)(hachi * 0.1); if (B == ans) { System.o...
Main.java:26: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u404196289|p02755|0
u404196289|p02755|0
codenet
Compile Error
457
v2_s892239242
s892239242
s892239242
p02755
p02755
u413792053
u413792053
1,583,943,483
2020-03-11T16:18:03
Main.java
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); static double taxRateA = 0.08; static double taxRateB = 0.1; public static void main(String[] args) { int a = sc.nextInt(); int b = sc.nextInt(); int priceLowerBoundA = (int) Math.ceil(a...
Main.java:6: error: illegal character: '\uff1b' static double taxRateA = 0.08? ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u413792053|p02755|0
u413792053|p02755|0
codenet
Compile Error
756
v2_s112736156
s112736156
s112736156
p02755
p02755
u415280100
u415280100
1,584,684,481
2020-03-20T06:08:01
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 b = sc.nextInt(); boolean bool = true; int t1 = 0; int t2 = 0; loop: for (int i = 13; i <= 1000; i++) { int k1 = (int) (i * 0.08); int k11 = (int)...
Main.java:45: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u415280100|p02755|4
u415280100|p02755|3
codenet
Compile Error
745
v2_s897228111
s897228111
s897228111
p02755
p02755
u431125128
u431125128
1,583,633,868
2020-03-08T02:17:48
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=-1; boolean flg=false; for(double i=0.0;i<1000;i++){ if(i*0.08==a && i*0.1==b){ c=i; } ...
Main.java:13: error: incompatible types: possible lossy conversion from double to int c=i; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02755|0
u431125128|p02755|0
codenet
Compile Error
356
v2_s732149496
s732149496
s732149496
p02755
p02755
u487433273
u487433273
1,583,634,430
2020-03-08T02:27:10
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int ans = -1; for(int i = 1 ; i<=100 ; i++) { if(i*0.08==A && i*0.1 = B) { ans = i; break; } } System.ou...
Main.java:11: error: bad operand types for binary operator '&&' if(i*0.08==A && i*0.1 = B) ^ first type: boolean second type: double 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p02755|0
u487433273|p02755|0
codenet
Compile Error
338
v2_s949877704
s949877704
s949877704
p02755
p02755
u600841758
u600841758
1,583,887,383
2020-03-11T00:43:03
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 b = sc.nextInt();  if (20 < (a - b) || (a - b) < 0) { System.out.println(-1); } else { for (int i = 1;...
Main.java:9: error: illegal character: '\u3000' ?if (20 < (a - b) || (a - b) < 0) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u600841758|p02755|0
u600841758|p02755|0
codenet
Compile Error
588
v2_s494983346
s494983346
s494983346
p02755
p02755
u659156129
u659156129
1,596,817,623
2020-08-07T16:27:03
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int a = scn.nextInt(); int b = scn.nextInt(); int ans = -1; for(int i=1; i<=1000; i++){ if((int)(i*0.08)==a $$ (int)(i*0.1)==b) ans = i; } ...
Main.java:10: error: ')' expected if((int)(i*0.08)==a $$ (int)(i*0.1)==b) ans = i; ^ Main.java:10: error: '.class' expected if((int)(i*0.08)==a $$ (int)(i*0.1)==b) ans = i; ^ Main.java:10: error: ';' expected if((int)(i*0.08...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02755|0
u659156129|p02755|0
codenet
Compile Error
350
v2_s920964698
s920964698
s920964698
p02755
p02755
u679312480
u679312480
1,583,635,008
2020-03-08T02:36:48
Main.java
import java.util.*; class Main{ public static void main(String[] args) { try(Scanner sc = new Scanner(System.in);){ double per8 = Integer.valueOf(sc.next()); double per10 = Integer.valueOf(sc.next()); int ans1 = Math.floor(per8/0.08); int ans2 = Ma...
Main.java:11: error: incompatible types: possible lossy conversion from double to int int ans1 = Math.floor(per8/0.08); ^ Main.java:12: error: incompatible types: possible lossy conversion from double to int int ans2 = Math.floor(per10/0.1); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u679312480|p02755|0
u679312480|p02755|0
codenet
Compile Error
587
v2_s160128449
s160128449
s160128449
p02755
p02755
u679312480
u679312480
1,583,635,302
2020-03-08T02:41:42
Main.java
import java.util.*; class Main{ public static void main(String[] args) { try(Scanner sc = new Scanner(System.in);){ double per8 = Integer.valueOf(sc.next()); double per10 = Integer.valueOf(sc.next()); double ans1 = Math.floor(per8/0.08); double ans...
Main.java:24: error: illegal start of type }catch(Exception e){ ^ Main.java:24: error: ';' expected }catch(Exception e){ ^ Main.java:28: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u679312480|p02755|0
u679312480|p02755|0
codenet
Compile Error
744
v2_s890022205
s890022205
s890022205
p02755
p02755
u750192625
u750192625
1,583,653,060
2020-03-08T07:37:40
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int x = a/0.08//a=x*0.08 //消費税がa円である範囲(とりあえずxは範囲内) int min = a; int max = a; int xmin = x...
Main.java:7: error: ';' expected int x = a/0.08//a=x*0.08 ^ Main.java:15: error: ';' expected min = xmin*0.08 ^ Main.java:19: error: ';' expected max = xmax*0.08 ^ Main.java:29: error: reached end of file while parsing } ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u750192625|p02755|0
u750192625|p02755|0
codenet
Compile Error
692
v2_s150824869
s150824869
s150824869
p02755
p02755
u750192625
u750192625
1,583,653,099
2020-03-08T07:38:19
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int x = a/0.08;//a=x*0.08 //消費税がa円である範囲(とりあえずxは範囲内) int min = a; int max = a; int xmin = ...
Main.java:15: error: ';' expected min = xmin*0.08 ^ Main.java:19: error: ';' expected max = xmax*0.08 ^ Main.java:29: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u750192625|p02755|0
u750192625|p02755|0
codenet
Compile Error
692
v2_s212267219
s212267219
s212267219
p02755
p02755
u750192625
u750192625
1,583,653,229
2020-03-08T07:40:29
Main.java
ort java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int x = int(a/0.08);//a=x*0.08 //消費税がa円である範囲(とりあえずxは範囲内) int min = a; int max = a; int xmin ...
Main.java:1: error: class, interface, enum, or record expected ort java.util.Scanner; ^ Main.java:7: error: '.class' expected int x = int(a/0.08);//a=x*0.08 ^ Main.java:7: error: not a statement int x = int(a/0.08);//a=x*0.08 ^ Main.java:7: error: ';' expected int x = int(a/0...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u750192625|p02755|0
u750192625|p02755|0
codenet
Compile Error
714
v2_s859097737
s859097737
s859097737
p02755
p02755
u750192625
u750192625
1,583,653,298
2020-03-08T07:41:38
Main.java
ort java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int x = (int)a/0.08;//a=x*0.08 //消費税がa円である範囲(とりあえずxは範囲内) int min = a; int max = a; int xmin ...
Main.java:1: error: class, interface, enum, or record expected ort java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u750192625|p02755|0
u750192625|p02755|0
codenet
Compile Error
714
v2_s097304112
s097304112
s097304112
p02755
p02755
u750192625
u750192625
1,583,653,337
2020-03-08T07:42:17
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int x = (int)a/0.08;//a=x*0.08 //消費税がa円である範囲(とりあえずxは範囲内) int min = a; int max = a; int xm...
Main.java:7: error: incompatible types: possible lossy conversion from double to int int x = (int)a/0.08;//a=x*0.08 ^ Main.java:15: error: incompatible types: possible lossy conversion from double to int min = (int)xmin*0.08; ^ Main.java:19: error: incompatible types: po...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u750192625|p02755|0
u750192625|p02755|0
codenet
Compile Error
717
v2_s217196336
s217196336
s217196336
p02755
p02755
u764902390
u764902390
1,583,638,791
2020-03-08T03:39:51
Main.java
import java.util.*; import java.lang.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scan.nextInt(); int atai = -1; int c = 0; int d = 0; c = A/0.08; d = B/0.10; if(c==d){ atai = c; } } }
Main.java:15: error: incompatible types: possible lossy conversion from double to int c = A/0.08; ^ Main.java:16: error: incompatible types: possible lossy conversion from double to int d = B/0.10; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u764902390|p02755|0
u764902390|p02755|0
codenet
Compile Error
310
v2_s294675136
s294675136
s294675136
p02755
p02755
u803314854
u803314854
1,585,256,763
2020-03-26T21:06:03
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(); int ans=0; for(ans=0;ans<10000;ans++){ if((int)Math.floor(ans*0.08)==n&&(int)Math.floor(ans*0.1==m))break; } System.out.println(ans==10000?-1:ans); } }
Main.java:9: error: incompatible types: boolean cannot be converted to double if((int)Math.floor(ans*0.08)==n&&(int)Math.floor(ans*0.1==m))break; ^ Main.java:9: error: bad operand types for binary operator '&&' if((int)Math.floor(ans*0.08)==n&&(int)Math.f...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u803314854|p02755|0
u803314854|p02755|0
codenet
Compile Error
313
v2_s511922319
s511922319
s511922319
p02755
p02755
u803314854
u803314854
1,585,256,809
2020-03-26T21:06:49
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(); int ans=0; for(ans=0;ans<10000;ans++){ if(((int)Math.floor(ans*0.08)==n)&&((int)Math.floor(ans*0.1==m)))break; } System.out.println(ans==10000?-1:ans); } }
Main.java:9: error: incompatible types: boolean cannot be converted to double if(((int)Math.floor(ans*0.08)==n)&&((int)Math.floor(ans*0.1==m)))break; ^ Main.java:9: error: bad operand types for binary operator '&&' if(((int)Math.floor(ans*0.08)==n)&&((...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u803314854|p02755|0
u803314854|p02755|0
codenet
Compile Error
317
v2_s544125939
s544125939
s544125939
p02755
p02755
u841299958
u841299958
1,589,038,713
2020-05-09T15:38:33
Main.java
import java.util.*; class Main { public static void main(String[] args) { new Solver().run(); } } class Solver { public void run() { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = A * 1000/8 / 10; for (int i = 1; ...
Main.java:30: error: reached end of file while parsing oz ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u841299958|p02755|0
u841299958|p02755|0
codenet
Compile Error
529
v2_s644125989
s644125989
s644125989
p02755
p02755
u841299958
u841299958
1,589,039,060
2020-05-09T15:44:20
Main.java
import java.util.*; class Main { public static void main(String[] args) { new Solver().run(); } } class Solver { public void run() { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); for (int i = 1; i <= 10000; i++) { if ...
Main.java:28: error: reached end of file while parsing oz ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u841299958|p02755|0
u841299958|p02755|0
codenet
Compile Error
507
v2_s895148499
s895148499
s895148499
p02755
p02755
u886708442
u886708442
1,583,638,700
2020-03-08T03:38:20
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 b = sc.nextInt(); int result = -1; for(int i = 1; i < ; i++) { if((int)(i * 0.08) == a && (int)(i * 0.1) == b) {...
Main.java:10: error: illegal start of expression for(int i = 1; i < ; i++) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u886708442|p02755|0
u886708442|p02755|0
codenet
Compile Error
431
v2_s786658138
s786658138
s786658138
p02755
p02755
u886708442
u886708442
1,583,638,755
2020-03-08T03:39:15
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int result = -1; for(int i = 1; i < 1250; i++) { if((int)(i * 0.08) == a && (int)(i * 0.1) == b) { result...
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
u886708442|p02755|0
u886708442|p02755|0
codenet
Compile Error
408
v2_s564837176
s564837176
s564837176
p02755
p02755
u910295652
u910295652
1,585,981,129
2020-04-04T06:18:49
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(); sc.close(); int[] arr = new int[1]; for(int i = 0; i < 100; i++) { if(i/a == i/b) { arr[0] = i; break; } } ...
Main.java:15: error: cannot find symbol if(arr.lenght == 0) { ^ symbol: variable lenght location: variable arr of type int[] 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02755|0
u910295652|p02755|0
codenet
Compile Error
437