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_s478660276 | s478660276 | s478660276 | p02694 | p02694 | u191105810 | u191105810 | 1,588,473,720 | 2020-05-03T02:42:00 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int X = sc.nextInt();
int year = 0;
int money = 100;
while(money < X) {
money = money * (double)1.1;
money++;
}
/... | Main.java:11: error: incompatible types: possible lossy conversion from double to int
money = money * (double)1.1;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u191105810|p02694|0 | u191105810|p02694|0 | codenet | Compile Error | 371 | |
v2_s503816035 | s503816035 | s503816035 | p02694 | p02694 | u191105810 | u191105810 | 1,588,474,092 | 2020-05-03T02:48:12 | Main.java | import java.math.BigDecimal;
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int x = sc.nextInt();
int year = 0;
BigDecimal money = new BigDecimal(100, 0);
BigDecimal X = new BigDecimal(x, 0);
... | Main.java:10: error: no suitable constructor found for BigDecimal(int,int)
BigDecimal money = new BigDecimal(100, 0);
^
constructor BigDecimal.BigDecimal(char[],MathContext) is not applicable
(argument mismatch; int cannot be converted to char[])
constructor BigDecimal.B... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u191105810|p02694|0 | u191105810|p02694|0 | codenet | Compile Error | 505 | |
v2_s489945870 | s489945870 | s489945870 | p02694 | p02694 | u212397344 | u212397344 | 1,591,314,931 | 2020-06-04T23:55:31 | Main.java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long N = sc.nextLong();
Long price = 100;
int year = 0;
while(price<N){
price += price/100;
year++;
}
System.out.print(year);
}
}
| Main.java:6: error: incompatible types: int cannot be converted to Long
Long price = 100;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u212397344|p02694|0 | u212397344|p02694|0 | codenet | Compile Error | 283 | |
v2_s394572704 | s394572704 | s394572704 | p02694 | p02694 | u241752770 | u241752770 | 1,588,476,084 | 2020-05-03T03:21:24 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner s = new Scanner(System.in);
int k = s.nextInt();
int a = 100;
int i = 0;
while(a >= k){
a = a * 1.01;
i++;
}
System.out.println(i);
}
} | Main.java:9: error: incompatible types: possible lossy conversion from double to int
a = a * 1.01;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u241752770|p02694|0 | u241752770|p02694|0 | codenet | Compile Error | 277 | |
v2_s945383282 | s945383282 | s945383282 | p02694 | p02694 | u246907970 | u246907970 | 1,588,469,696 | 2020-05-03T01:34:56 | Main.java | import java.util.Scanner;
import
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
double targ = scan.nextDouble();
double first = 100.0;
double rate = 1.01;
int goal = ceil(Math.log(targ*(rate-1)/first+1)/Math.log(rate));
System.out.println(goal);
}
... | Main.java:2: error: <identifier> expected
import
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u246907970|p02694|0 | u246907970|p02694|0 | codenet | Compile Error | 321 | |
v2_s951178035 | s951178035 | s951178035 | p02694 | p02694 | u246907970 | u246907970 | 1,588,469,719 | 2020-05-03T01:35:19 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
double targ = scan.nextDouble();
double first = 100.0;
double rate = 1.01;
int goal = ceil(Math.log(targ*(rate-1)/first+1)/Math.log(rate));
System.out.println(goal);
}
}
| Main.java:8: error: cannot find symbol
int goal = ceil(Math.log(targ*(rate-1)/first+1)/Math.log(rate));
^
symbol: method ceil(double)
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u246907970|p02694|0 | u246907970|p02694|0 | codenet | Compile Error | 315 | |
v2_s900608113 | s900608113 | s900608113 | p02694 | p02694 | u246907970 | u246907970 | 1,588,469,756 | 2020-05-03T01:35:56 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
double targ = scan.nextDouble();
double first = 100.0;
double rate = 1.01;
int goal = Math.ceil(Math.log(targ*(rate-1)/first+1)/Math.log(rate));
System.out.println(goal);
}
}
| Main.java:8: error: incompatible types: possible lossy conversion from double to int
int goal = Math.ceil(Math.log(targ*(rate-1)/first+1)/Math.log(rate));
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u246907970|p02694|0 | u246907970|p02694|0 | codenet | Compile Error | 320 | |
v2_s649326230 | s649326230 | s649326230 | p02694 | p02694 | u246907970 | u246907970 | 1,588,470,000 | 2020-05-03T01:40:00 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
double targ = scan.nextDouble();
double first = 100.0;
double rate = 1.01;
int i = 100;
int goal = 0
while (i <= targ){
i*=rate;
int i=Math.ceil(i);
goal++... | Main.java:9: error: ';' expected
int goal = 0
^
Main.java:16: error: reached end of file while parsing
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u246907970|p02694|0 | u246907970|p02694|0 | codenet | Compile Error | 358 | |
v2_s948112725 | s948112725 | s948112725 | p02694 | p02694 | u246907970 | u246907970 | 1,588,470,028 | 2020-05-03T01:40:28 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
double targ = scan.nextDouble();
double first = 100.0;
double rate = 1.01;
int i = 100;
int goal = 0;
while (i <= targ){
i*=rate;
int i=Math.ceil(i);
goal+... | Main.java:16: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u246907970|p02694|0 | u246907970|p02694|0 | codenet | Compile Error | 359 | |
v2_s236171174 | s236171174 | s236171174 | p02694 | p02694 | u246907970 | u246907970 | 1,588,470,067 | 2020-05-03T01:41:07 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
double targ = scan.nextDouble();
double first = 100.0;
double rate = 1.01;
int i = 100;
int goal = 0;
while (i <= targ){
i*=rate;
int i=Math.ceil(i);
goal+... | Main.java:12: error: variable i is already defined in method main(String[])
int i=Math.ceil(i);
^
Main.java:12: error: incompatible types: possible lossy conversion from double to int
int i=Math.ceil(i);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u246907970|p02694|0 | u246907970|p02694|0 | codenet | Compile Error | 365 | |
v2_s064332128 | s064332128 | s064332128 | p02694 | p02694 | u246907970 | u246907970 | 1,588,470,361 | 2020-05-03T01:46:01 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
double targ = scan.nextDouble();
double first = 100.0;
double rate = 1.01;
int i = 100;
int goal = 0;
while (i <= targ){
i*=rate;
i=Math.ceil(i);
goal++;
... | Main.java:12: error: incompatible types: possible lossy conversion from double to int
i=Math.ceil(i);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u246907970|p02694|0 | u246907970|p02694|0 | codenet | Compile Error | 361 | |
v2_s526526873 | s526526873 | s526526873 | p02694 | p02694 | u246907970 | u246907970 | 1,588,470,408 | 2020-05-03T01:46:48 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
double targ = scan.nextDouble();
double first = 100.0;
double rate = 1.01;
int i = 100;
int goal = 0;
while (i <= targ){
double i*=rate;
i=Math.ceil(i);
go... | Main.java:11: error: ';' expected
double i*=rate;
^
Main.java:11: error: not a statement
double i*=rate;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u246907970|p02694|0 | u246907970|p02694|0 | codenet | Compile Error | 368 | |
v2_s132083096 | s132083096 | s132083096 | p02694 | p02694 | u246907970 | u246907970 | 1,588,470,685 | 2020-05-03T01:51:25 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
double targ = scan.nextDouble();
double first = 100.0;
double rate = 1.01;
int goal = Math.log((targ*(rate-1)/first+1)/log(rate);
System.out.println(goal);
}
}
| Main.java:8: error: ')' or ',' expected
int goal = Math.log((targ*(rate-1)/first+1)/log(rate);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u246907970|p02694|0 | u246907970|p02694|0 | codenet | Compile Error | 305 | |
v2_s040012513 | s040012513 | s040012513 | p02694 | p02694 | u246907970 | u246907970 | 1,588,470,719 | 2020-05-03T01:51:59 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
double targ = scan.nextDouble();
double first = 100.0;
double rate = 1.01;
int goal = Math.log((targ*(rate-1)/first+1))/log(rate);
System.out.println(goal);
}
}
| Main.java:8: error: cannot find symbol
int goal = Math.log((targ*(rate-1)/first+1))/log(rate);
^
symbol: method log(double)
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u246907970|p02694|0 | u246907970|p02694|0 | codenet | Compile Error | 306 | |
v2_s194481548 | s194481548 | s194481548 | p02694 | p02694 | u246907970 | u246907970 | 1,588,470,746 | 2020-05-03T01:52:26 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
double targ = scan.nextDouble();
double first = 100.0;
double rate = 1.01;
int goal = Math.log((targ*(rate-1)/first+1))/Math.log(rate);
System.out.println(goal);
}
}
| Main.java:8: error: incompatible types: possible lossy conversion from double to int
int goal = Math.log((targ*(rate-1)/first+1))/Math.log(rate);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u246907970|p02694|0 | u246907970|p02694|0 | codenet | Compile Error | 311 | |
v2_s773335224 | s773335224 | s773335224 | p02694 | p02694 | u259649849 | u259649849 | 1,588,470,422 | 2020-05-03T01:47:02 | Main.java |
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long X = Long.parseLong(sc.next());
long yokin = 100;
int counter = 0;
while (!(yokin >= X)) {
yokin *= 1.01;
counter++;
}
System.out.println(counter);
}
} | 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 | u259649849|p02694|0 | u259649849|p02694|0 | codenet | Compile Error | 280 | |
v2_s086552884 | s086552884 | s086552884 | p02694 | p02694 | u269772701 | u269772701 | 1,588,470,106 | 2020-05-03T01:41:46 | Main.java | import java.io.BufferedReader;
public class Main {
/* several useful subroutines */
private static BufferedReader brStdin = new BufferedReader(new InputStreamReader(System.in));
private static String[] readBuf = null;
private static int readPtr = 0;
private static String getString() throws IOException {
while... | Main.java:9: error: cannot find symbol
private static String getString() throws IOException {
^
symbol: class IOException
location: class Main
Main.java:16: error: cannot find symbol
private static int getInt() throws IOException {
^
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u269772701|p02694|0 | u269772701|p02694|0 | codenet | Compile Error | 2,155 | |
v2_s762585641 | s762585641 | s762585641 | p02694 | p02694 | u292141718 | u292141718 | 1,597,845,010 | 2020-08-19T13:50:10 | Main.java | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int X;
int Y;
int Z;
int C;
cin >> X;
Y = X - 100;
while( Y > Z ){
X += X * 0.01;
Z = X + Z;
C += 1;
}
cout << C << endl;
} | Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
^
Main.java:3: error: illegal character: '#'
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
^
Main.java:3: error: class, interface, enum, or record... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u292141718|p02694|0 | u292141718|p02694|0 | codenet | Compile Error | 249 | |
v2_s043125311 | s043125311 | s043125311 | p02694 | p02694 | u292141718 | u292141718 | 1,597,845,187 | 2020-08-19T13:53:07 | Main.java | <bits/stdc++.h>
using namespace std;
rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int X;
int Y;
int Z;
int C;
cin >> X;
Y = X - 100;
while( Y > Z ){
X += X * 0.01;
Z = X + Z;
C += 1;
}
cout << C << endl;
} | Main.java:1: error: class, interface, enum, or record expected
<bits/stdc++.h>
^
Main.java:3: error: class, interface, enum, or record expected
rep(i, n) for (int i = 0; i < (int)(n); i++)
^
Main.java:3: error: class, interface, enum, or record expected
rep(i, n) for (int i = 0; i < (int)(n); i++)
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u292141718|p02694|0 | u292141718|p02694|0 | codenet | Compile Error | 232 | |
v2_s223067222 | s223067222 | s223067222 | p02694 | p02694 | u302684639 | u302684639 | 1,588,468,577 | 2020-05-03T01:16:17 | Main.java | import java.io.*;
import java.io.ioexception;
import java.util.*;
@suppresswarnings({"rawtypes", "unchecked"})
class main {
final static int inf = 1 << 28;
final static long lnf = 1l << 60;
final static double eps = 1e-9;
final static double golden_ratio = (1.0 + math.sqrt(5)) / 2.0;
static final... | Main.java:86: error: class expected
return long.parselong(nn());
^
Main.java:86: error: ';' expected
return long.parselong(nn());
^
Main.java:86: error: ';' expected
return long.parselong(nn());
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u302684639|p02694|0 | u302684639|p02694|0 | codenet | Compile Error | 2,939 | |
v2_s583090930 | s583090930 | s583090930 | p02694 | p02694 | u336582368 | u336582368 | 1,588,478,159 | 2020-05-03T03:55:59 | main.java | public class main {
public static void main(String[] args) {
int motode = 100;
int i=0;
int mokuhyo = Integer.parseInt(args[0]);
while(mokuhyo>motode){
motode= (int) Math.floor(motode*1.01);
++i ;
}
System.out.println(i);
}
| main.java:17: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u336582368|p02694|0 | u336582368|p02694|0 | codenet | Compile Error | 252 | |
v2_s169675695 | s169675695 | s169675695 | p02694 | p02694 | u357544143 | u357544143 | 1,588,468,582 | 2020-05-03T01:16:22 | Main.java | public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
long x = scan.nextLong();
long tmp = 100;
long cnt = 0;
while (true) {
cnt++;
tmp += tmp * 1 / 100;
if (tmp >= x) {
System.out.println(cnt);
return;
}
... | Main.java:5: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:5: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u357544143|p02694|0 | u357544143|p02694|0 | codenet | Compile Error | 330 | |
v2_s815340121 | s815340121 | s815340121 | p02694 | p02694 | u461093505 | u461093505 | 1,588,471,756 | 2020-05-03T02:09:16 | Main.java | public class Main {
public static void main(String args[]){
Scanner s = new Scanner(System.in);
double x = s.nextInt();
int c = 0;
for (int b = 100; b < x; b++) {
b = (int) (b * 1.01);
c++;
}
System.out.println(c+1);
}
}
| Main.java:3: error: cannot find symbol
Scanner s = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner s = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u461093505|p02694|0 | u461093505|p02694|0 | codenet | Compile Error | 304 | |
v2_s163567620 | s163567620 | s163567620 | p02694 | p02694 | u509421351 | u509421351 | 1,588,624,117 | 2020-05-04T20:28:37 | Main.java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long X = sc.nextInt();
sc.close();
double s=100;
int k=0;
while(s<X) {
s+=s*0.01;
k++;
}
System.out.println(k);
}
} | 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 | u509421351|p02694|0 | u509421351|p02694|0 | codenet | Compile Error | 239 | |
v2_s065190459 | s065190459 | s065190459 | p02694 | p02694 | u532252958 | u532252958 | 1,592,630,481 | 2020-06-20T05:21:21 | greateroftwo.java | package collection;
import java.util.*;
public class greateroftwo {
public static void main(String[]args)
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter the number you want");
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
System.out.println("The number of d... | greateroftwo.java:13: error: reached end of file while parsing
System.out.println(B-A);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u532252958|p02694|0 | u532252958|p02694|0 | codenet | Compile Error | 378 | |
v2_s023803748 | s023803748 | s023803748 | p02694 | p02694 | u532667821 | u532667821 | 1,591,725,176 | 2020-06-09T17:52:56 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int X = scanner.nextInt();
int i = 0;
for(i = 100; i <= X; i++){
i = i * 1.01;
}
System.out.println(i);
}
} | Main.java:9: error: incompatible types: possible lossy conversion from double to int
i = i * 1.01;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u532667821|p02694|0 | u532667821|p02694|0 | codenet | Compile Error | 312 | |
v2_s568717911 | s568717911 | s568717911 | p02694 | p02694 | u532667821 | u532667821 | 1,591,725,509 | 2020-06-09T17:58:29 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int X = scanner.nextInt();
double i = 0;
int count = 0;
for(i = 100; i <= X; i * 1.01){
count += 1;
}
System.ou... | Main.java:9: error: not a statement
for(i = 100; i <= X; i * 1.01){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u532667821|p02694|0 | u532667821|p02694|0 | codenet | Compile Error | 345 | |
v2_s730085656 | s730085656 | s730085656 | p02694 | p02694 | u532667821 | u532667821 | 1,591,725,810 | 2020-06-09T18:03:30 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int X = scanner.nextInt();
int i = 0;
double count = 0;
for(i = 100; i <= X; i++){
i -=1;
i = i * 1.01;
... | Main.java:11: error: incompatible types: possible lossy conversion from double to int
i = i * 1.01;
^
Main.java:12: error: incompatible types: possible lossy conversion from double to int
i = Math.floor(i);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u532667821|p02694|0 | u532667821|p02694|0 | codenet | Compile Error | 416 | |
v2_s610201710 | s610201710 | s610201710 | p02694 | p02694 | u532667821 | u532667821 | 1,591,725,949 | 2020-06-09T18:05:49 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int X = scanner.nextInt();
double i = 0;
int result = 0;
int count = 0;
for(i = 100; i <= X; i++){
i -=1;
i ... | Main.java:13: error: incompatible types: possible lossy conversion from double to int
result = Math.floor(i);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u532667821|p02694|0 | u532667821|p02694|0 | codenet | Compile Error | 445 | |
v2_s657778637 | s657778637 | s657778637 | p02694 | p02694 | u532667821 | u532667821 | 1,591,726,965 | 2020-06-09T18:22:45 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int X = scanner.nextInt();
int i = 0;
int count = 0;
for(i = 100; i <= X;){
i += i/100;
i = Math.floor(i);
... | Main.java:11: error: incompatible types: possible lossy conversion from double to int
i = Math.floor(i);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u532667821|p02694|0 | u532667821|p02694|0 | codenet | Compile Error | 388 | |
v2_s191466790 | s191466790 | s191466790 | p02694 | p02694 | u532667821 | u532667821 | 1,591,727,047 | 2020-06-09T18:24:07 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
long X = (long)scanner.nextInt();
int i = 0;
int count = 0;
for(i = 100; i <= X;){
i += i/100;
i = Math.floor(i);
... | Main.java:11: error: incompatible types: possible lossy conversion from double to int
i = Math.floor(i);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u532667821|p02694|0 | u532667821|p02694|0 | codenet | Compile Error | 395 | |
v2_s237287070 | s237287070 | s237287070 | p02694 | p02694 | u532667821 | u532667821 | 1,591,728,635 | 2020-06-09T18:50:35 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
Long X = scanner.nextLong();
Long i = 100L;
int count = 0;
while(i < X;){
count += 1;
}
System.out.println(coun... | Main.java:9: error: ')' expected
while(i < X;){
^
Main.java:9: error: illegal start of expression
while(i < X;){
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u532667821|p02694|0 | u532667821|p02694|0 | codenet | Compile Error | 331 | |
v2_s341358538 | s341358538 | s341358538 | p02694 | p02694 | u547671064 | u547671064 | 1,588,468,754 | 2020-05-03T01:19:14 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc =new Scanner(System.in);
long x =sc.nextLong();
int y=1;
long z =100;
long w=1
while(y!=0){
z=z*101/100;
if(z>=x){y=y+1;}
else{
w=w+1;}}
System.out.ptintln(w);
}
} | Main.java:8: error: ';' expected
long w=1
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u547671064|p02694|0 | u547671064|p02694|0 | codenet | Compile Error | 311 | |
v2_s583660659 | s583660659 | s583660659 | p02694 | p02694 | u547671064 | u547671064 | 1,588,468,793 | 2020-05-03T01:19:53 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc =new Scanner(System.in);
long x =sc.nextLong();
int y=1;
long z =100;
long w=1;
while(y!=0){
z=z*101/100;
if(z>=x){y=y+1;}
else{
w=w+1;}}
System.out.ptintln(w);
}
}
| Main.java:14: error: cannot find symbol
System.out.ptintln(w);
^
symbol: method ptintln(long)
location: variable out of type PrintStream
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u547671064|p02694|0 | u547671064|p02694|0 | codenet | Compile Error | 313 | |
v2_s758138548 | s758138548 | s758138548 | p02694 | p02694 | u547671064 | u547671064 | 1,588,469,222 | 2020-05-03T01:27:02 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc =new Scanner(System.in);
long x =sc.nextLong();
double y=(Math.log10(x)-2)/log10(1.01);
for(int i=0;i<18;i++){
if(i>=y-1){System.out.println(i);System.exit(0);}
}
}
} | Main.java:6: error: cannot find symbol
double y=(Math.log10(x)-2)/log10(1.01);
^
symbol: method log10(double)
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u547671064|p02694|0 | u547671064|p02694|0 | codenet | Compile Error | 286 | |
v2_s061752052 | s061752052 | s061752052 | p02694 | p02694 | u551325550 | u551325550 | 1,588,469,044 | 2020-05-03T01:24:04 | Main.java | import java.util.*;
class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int y = 100;
int year = 0;
outloop:for(int i = 0; ;i++){
y = y + (0.01)*y;
if (y>=x){
year = i;
... | Main.java:9: error: incompatible types: possible lossy conversion from double to int
y = y + (0.01)*y;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u551325550|p02694|0 | u551325550|p02694|0 | codenet | Compile Error | 424 | |
v2_s794681002 | s794681002 | s794681002 | p02694 | p02694 | u578245611 | u578245611 | 1,588,469,313 | 2020-05-03T01:28:33 | 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 interest = 100;
int year = 0;
while (interest <= n)[
interest = interest * 1.01;
year += 1;
if (i... | Main.java:8: error: illegal start of expression
while (interest <= n)[
^
Main.java:14: error: illegal start of expression
]
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u578245611|p02694|0 | u578245611|p02694|0 | codenet | Compile Error | 425 | |
v2_s960948476 | s960948476 | s960948476 | p02694 | p02694 | u578245611 | u578245611 | 1,588,469,371 | 2020-05-03T01:29:31 | 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 interest = 100;
int year = 0;
while (interest <= n){
interest = interest * 1.01;
year += 1;
if (i... | Main.java:9: error: incompatible types: possible lossy conversion from double to int
interest = interest * 1.01;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u578245611|p02694|0 | u578245611|p02694|0 | codenet | Compile Error | 448 | |
v2_s461142741 | s461142741 | s461142741 | p02694 | p02694 | u578245611 | u578245611 | 1,588,469,549 | 2020-05-03T01:32:29 | Main.java | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
double interest = 100.0;
int year = 0;
while (interest <= n){
interest = interest * 1.01;
floor(interest);
... | Main.java:10: error: cannot find symbol
floor(interest);
^
symbol: method floor(double)
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u578245611|p02694|0 | u578245611|p02694|0 | codenet | Compile Error | 482 | |
v2_s186097507 | s186097507 | s186097507 | p02694 | p02694 | u582610525 | u582610525 | 1,588,905,446 | 2020-05-08T02:37:26 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn =new Scanner(System.in);
int X =stdIn.nextInt();
int Y=100;
int i;
for(i=0;Y<X;i++) {
Y=(Y*1.01);
Y=Y/1;
}
System.out.println(i);
}
} | Main.java:11: error: incompatible types: possible lossy conversion from double to int
Y=(Y*1.01);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u582610525|p02694|1 | u582610525|p02694|1 | codenet | Compile Error | 269 | |
v2_s360444804 | s360444804 | s360444804 | p02694 | p02694 | u667427469 | u667427469 | 1,588,728,068 | 2020-05-06T01:21:08 | Main.java | public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner cin = new Scanner(System.in);
long X = cin.nextLong();
long deposit = 100,count = 0;
while(deposit<X) {
deposit += deposit/100;
count++;
}
System.out.println(count);
}
}
| Main.java:6: error: cannot find symbol
Scanner cin = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:6: error: cannot find symbol
Scanner cin = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u667427469|p02694|0 | u667427469|p02694|0 | codenet | Compile Error | 316 | |
v2_s262519322 | s262519322 | s262519322 | p02694 | p02694 | u675269406 | u675269406 | 1,593,752,871 | 2020-07-03T05:07:51 | Main.java | import java.util.Scanner;
//import java.util.Arrays;
public class Main{
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
public static void main(String[] args){
int count = 0;
int yokin = 100;
while(true){
if(check100(yokin)){
yokin += yokin;
count += 100;
}else{
yokin += yok... | Main.java:18: error: non-static variable x cannot be referenced from a static context
if(yokin >= x){break;}
^
Main.java:26: error: non-static variable x cannot be referenced from a static context
return !(y >= x);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u675269406|p02694|0 | u675269406|p02694|0 | codenet | Compile Error | 482 | |
v2_s043190109 | s043190109 | s043190109 | p02694 | p02694 | u741792973 | u741792973 | 1,588,469,786 | 2020-05-03T01:36:26 | Main.java | import java.util.*;
public class Main{
public static void main(String []args){
Scanner sc=new Scanner(System.in);
int t=100;
int sum=0;
int k=sc.nextInt();
while(t<x){
t= t+floor(t*0.01);
sum++;
}
System.out.println(sum);
}
}
| Main.java:8: error: cannot find symbol
while(t<x){
^
symbol: variable x
location: class Main
Main.java:9: error: cannot find symbol
t= t+floor(t*0.01);
^
symbol: method floor(double)
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u741792973|p02694|0 | u741792973|p02694|0 | codenet | Compile Error | 276 | |
v2_s555038845 | s555038845 | s555038845 | p02694 | p02694 | u745236275 | u745236275 | 1,588,469,122 | 2020-05-03T01:25:22 | Main.java | ublic class Main {
public static void main(String[] args) {
java.util.Scanner scan = new java.util.Scanner(System.in);
int x = scan.nextInt();
int m = 100;
for(int i = 1 ; m < x; i++) {
m = m/100+m;
if (m >= x) {
System.out.println(i);
}
}
}
} | Main.java:1: error: class, interface, enum, or record expected
ublic class Main {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u745236275|p02694|0 | u745236275|p02694|0 | codenet | Compile Error | 279 | |
v2_s069076075 | s069076075 | s069076075 | p02694 | p02694 | u803314854 | u803314854 | 1,591,072,684 | 2020-06-02T04:38:04 | Main.java | import java.util.*;
class Main{
public static void main(String[]args){
int i=1;
long a=101;
long po=sc.nextLong();
while(a<po){
a*=a/101;
i++;
}System.out.println(a);
}
} | Main.java:6: error: cannot find symbol
long po=sc.nextLong();
^
symbol: variable sc
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u803314854|p02694|0 | u803314854|p02694|0 | codenet | Compile Error | 186 | |
v2_s135983691 | s135983691 | s135983691 | p02694 | p02694 | u825262731 | u825262731 | 1,588,468,786 | 2020-05-03T01:19:46 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
y = 100;
int count =0;
while(y<x){
y=y+(y/100);
count++;
}
System.out.println(count);
}
} | Main.java:6: error: cannot find symbol
y = 100;
^
symbol: variable y
location: class Main
Main.java:8: error: cannot find symbol
while(y<x){
^
symbol: variable y
location: class Main
Main.java:9: error: cannot find symbol
y=y+(y/100);
^
symbol: variable y
location: cl... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u825262731|p02694|0 | u825262731|p02694|0 | codenet | Compile Error | 273 | |
v2_s017413725 | s017413725 | s017413725 | p02694 | p02694 | u848412537 | u848412537 | 1,588,469,486 | 2020-05-03T01:31:26 | Main.java | public class Main {
public static void main(String[] args) {
FastScanner sc = new FastScanner();
int a = Integer.parseInt(sc.next());
int sum = 100;
int count = 0;
while(a > sum) {
sum *= 1.01;
count++;
}
System.out.print(count);
}
}
class FastScanner {
private final InputStream in = System.i... | Main.java:16: error: cannot find symbol
private final InputStream in = System.in;
^
symbol: class InputStream
location: class FastScanner
Main.java:27: error: cannot find symbol
} catch (IOException e) {
^
symbol: class IOException
location: class FastS... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u848412537|p02694|0 | u848412537|p02694|0 | codenet | Compile Error | 1,405 | |
v2_s881408597 | s881408597 | s881408597 | p02694 | p02694 | u860874998 | u860874998 | 1,589,084,164 | 2020-05-10T04:16:04 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int X = sc.nextInt();
int money=100;
for(int i=1;i<100000000000000000;i++){
money=money*1.01;
i=i+1;
if(money>=X){
break;
... | Main.java:9: error: integer number too large
for(int i=1;i<100000000000000000;i++){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|0 | u860874998|p02694|0 | codenet | Compile Error | 352 | |
v2_s650085875 | s650085875 | s650085875 | p02694 | p02694 | u860874998 | u860874998 | 1,589,084,360 | 2020-05-10T04:19:20 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int X = sc.nextInt();
int money=100;
for(int i=0;i<100000;i++){
money=money*1.01;
i=i+1;
if(money>=X){
break;
}
}
... | Main.java:10: error: incompatible types: possible lossy conversion from double to int
money=money*1.01;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|0 | u860874998|p02694|0 | codenet | Compile Error | 340 | |
v2_s065836031 | s065836031 | s065836031 | p02694 | p02694 | u860874998 | u860874998 | 1,589,085,011 | 2020-05-10T04:30:11 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int X = sc.nextInt();
double money=100;
int step=1;
while(money<X){
money+=money/100;
step++;
}
}
} | Main.java:8: error: illegal character: '\u3000'
?int step=1;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|0 | u860874998|p02694|0 | codenet | Compile Error | 318 | |
v2_s120528833 | s120528833 | s120528833 | p02694 | p02694 | u860874998 | u860874998 | 1,589,085,110 | 2020-05-10T04:31:50 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int X = sc.nextInt();
double money=100;
int step=1;
while(money<X){
money=money+money/100;
step=step+1;
}
}
} | Main.java:8: error: illegal character: '\u3000'
?int step=1;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|0 | u860874998|p02694|0 | codenet | Compile Error | 328 | |
v2_s878043492 | s878043492 | s878043492 | p02694 | p02694 | u860874998 | u860874998 | 1,589,085,163 | 2020-05-10T04:32:43 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int X = sc.nextInt();
double money=100;
int s=0;
while(money<X){
money+=money/100;
s++;
}
}
} | Main.java:8: error: illegal character: '\u3000'
?int s=0;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|0 | u860874998|p02694|0 | codenet | Compile Error | 312 | |
v2_s726880409 | s726880409 | s726880409 | p02694 | p02694 | u860874998 | u860874998 | 1,589,085,618 | 2020-05-10T04:40:18 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int X = sc.nextInt();
long long money=100;
int s=0;
while(money<X){
money+=money/100;
s++;
}
System.out.println(s);
... | Main.java:7: error: not a statement
long long money=100;
^
Main.java:7: error: ';' expected
long long money=100;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|0 | u860874998|p02694|0 | codenet | Compile Error | 335 | |
v2_s081424029 | s081424029 | s081424029 | p02694 | p02694 | u860874998 | u860874998 | 1,589,512,632 | 2020-05-15T03:17:12 | Main.java | import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long x = sc.nextLng();
long money=100;
for(long i;i<10000000000;i++ ){
money=money*101/100;
if(money>=x){
break;
}
}
System.out.println(i);
}
} | Main.java:9: error: integer number too large
for(long i;i<10000000000;i++ ){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|1 | u860874998|p02694|1 | codenet | Compile Error | 312 | |
v2_s807856197 | s807856197 | s807856197 | p02694 | p02694 | u860874998 | u860874998 | 1,589,512,661 | 2020-05-15T03:17:41 | Main.java | import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long x = sc.nextLng();
long money=100;
for(long i;i<10000000;i++ ){
money=money*101/100;
if(money>=x){
break;
}
}
System.out.println(i);
}
}
| Main.java:6: error: cannot find symbol
long x = sc.nextLng();
^
symbol: method nextLng()
location: variable sc of type Scanner
Main.java:16: error: cannot find symbol
System.out.println(i);
^
symbol: variable i
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|1 | u860874998|p02694|1 | codenet | Compile Error | 310 | |
v2_s920071832 | s920071832 | s920071832 | p02694 | p02694 | u860874998 | u860874998 | 1,589,512,737 | 2020-05-15T03:18:57 | Main.java | import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long money=100;
for(long i;i<10000000;i++ ){
money=money*101/100;
if(money>=x){
break;
}
}
System.out.println(i);
}
}
| Main.java:16: error: cannot find symbol
System.out.println(i);
^
symbol: variable i
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|1 | u860874998|p02694|1 | codenet | Compile Error | 311 | |
v2_s924456651 | s924456651 | s924456651 | p02694 | p02694 | u860874998 | u860874998 | 1,589,512,783 | 2020-05-15T03:19:43 | Main.java | import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long money=100;
for(long i;i<10000000;i++ ){
money=money*101/100;
if(money>=x){
System.out.println(i);
break;
}
}
System.out.p... | Main.java:17: error: cannot find symbol
System.out.println(i);
^
symbol: variable i
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|1 | u860874998|p02694|1 | codenet | Compile Error | 342 | |
v2_s394742330 | s394742330 | s394742330 | p02694 | p02694 | u860874998 | u860874998 | 1,589,512,804 | 2020-05-15T03:20:04 | Main.java | import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long money=100;
for(long i;i<10000000;i++ ){
money=money*101/100;
if(money>=x){
System.out.println(i);
break;
}
}
}
}
| Main.java:9: error: variable i might not have been initialized
for(long i;i<10000000;i++ ){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|1 | u860874998|p02694|1 | codenet | Compile Error | 320 | |
v2_s051669150 | s051669150 | s051669150 | p02694 | p02694 | u860874998 | u860874998 | 1,589,512,910 | 2020-05-15T03:21:50 | Main.java | import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long money=100;
long count=0;
for(long i;i<10000000;i++ ){
money=money*101/100;
count+=;
if(money>=x){
break;
}
}
System.o... | Main.java:11: error: illegal start of expression
count+=;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|1 | u860874998|p02694|1 | codenet | Compile Error | 350 | |
v2_s076711578 | s076711578 | s076711578 | p02694 | p02694 | u860874998 | u860874998 | 1,589,512,952 | 2020-05-15T03:22:32 | Main.java | import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long money=100;
long count=0;
for(long i;i<10000000;i++ ){
money=money*101/100;
count=count+1;
if(money>=x){
break;
}
}
Sy... | Main.java:9: error: variable i might not have been initialized
for(long i;i<10000000;i++ ){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|1 | u860874998|p02694|1 | codenet | Compile Error | 356 | |
v2_s426500649 | s426500649 | s426500649 | p02694 | p02694 | u860874998 | u860874998 | 1,589,513,020 | 2020-05-15T03:23:40 | Main.java | import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long money=100;
long count=0;
for(long i;import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
lon... | Main.java:9: error: illegal start of expression
for(long i;import java.util.Scanner;
^
Main.java:9: error: not a statement
for(long i;import java.util.Scanner;
^
Main.java:31: error: ';' expected
;i++ ){
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|1 | u860874998|p02694|1 | codenet | Compile Error | 704 | |
v2_s805401955 | s805401955 | s805401955 | p02694 | p02694 | u860874998 | u860874998 | 1,589,513,061 | 2020-05-15T03:24:21 | Main.java | class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long money=100;
long count=0;
for(long i=0;i<10000000;i++ ){
money=money*101/100;
count=count+1;
if(money>=x){
break;
}
} | Main.java:14: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|1 | u860874998|p02694|1 | codenet | Compile Error | 283 | |
v2_s836958022 | s836958022 | s836958022 | p02694 | p02694 | u860874998 | u860874998 | 1,589,513,091 | 2020-05-15T03:24:51 | Main.java | class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long money=100;
long count=0;
for(long i=0;i<10000000;i++ ){
money=money*101/100;
count=count+1;
if(money>=x){
break;
}
}
}
} | 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 | u860874998|p02694|1 | u860874998|p02694|1 | codenet | Compile Error | 288 | |
v2_s601129722 | s601129722 | s601129722 | p02694 | p02694 | u860874998 | u860874998 | 1,589,513,192 | 2020-05-15T03:26:32 | Main.java | import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long money=100;
for(long i=0;;i++ ){
money=money*1.01;
if(money>=x){
System.out.println(i);
break;
}
}
}
}
| Main.java:8: error: incompatible types: possible lossy conversion from double to long
money=money*1.01;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|1 | u860874998|p02694|1 | codenet | Compile Error | 288 | |
v2_s795145684 | s795145684 | s795145684 | p02694 | p02694 | u860874998 | u860874998 | 1,589,513,390 | 2020-05-15T03:29:50 | Main.java | import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long money=100;
for(long i=1;;i++ ){
money=money*1.01;
if(money>=x){
System.out.println(i);
break;
}
}
}
} | Main.java:8: error: incompatible types: possible lossy conversion from double to long
money=money*1.01;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02694|1 | u860874998|p02694|1 | codenet | Compile Error | 287 | |
v2_s302173942 | s302173942 | s302173942 | p02694 | p02694 | u868996139 | u868996139 | 1,588,475,505 | 2020-05-03T03:11:45 | main.java | import java.util.Scanner;
public class main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int count = 0;
int mon = 100;
do{
mon = mon + mon * 0.01;
count++;
if(mon >= x){
System.out.println(count);
... | main.java:12: error: incompatible types: possible lossy conversion from double to int
mon = mon + mon * 0.01;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u868996139|p02694|0 | u868996139|p02694|0 | codenet | Compile Error | 361 | |
v2_s669796113 | s669796113 | s669796113 | p02694 | p02694 | u868996139 | u868996139 | 1,588,476,070 | 2020-05-03T03:21:10 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int count = 0;
int mon = 100;
do{
mon = (int)mon*1.01;
count++;
if(mon >= x){
System.out.println(count);
... | Main.java:12: error: incompatible types: possible lossy conversion from double to int
mon = (int)mon*1.01;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u868996139|p02694|0 | u868996139|p02694|0 | codenet | Compile Error | 359 | |
v2_s944075988 | s944075988 | s944075988 | p02694 | p02694 | u924276108 | u924276108 | 1,588,474,163 | 2020-05-03T02:49:23 | sum.java | import java.util.*;
import java.lang.Math;
public class sum
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int n,a,b,ans=0;
n=sc.nextInt();
a=Math.log(n/100);
b=Math.log(101/100);
ans=a/b;
System.out.println(round(ans));
}
}
| sum.java:10: error: incompatible types: possible lossy conversion from double to int
a=Math.log(n/100);
^
sum.java:11: error: incompatible types: possible lossy conversion from double to int
b=Math.log(101/100);
^
sum.java:13: error: cannot find symbol
System.out.println(round(an... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u924276108|p02694|0 | u924276108|p02694|0 | codenet | Compile Error | 294 | |
v2_s301741158 | s301741158 | s301741158 | p02694 | p02694 | u924711195 | u924711195 | 1,592,021,714 | 2020-06-13T04:15:14 | Main.java | import java.util.*;public class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);int a=s.nextInt();int b=100;int c=0;while(true){c++;b=(int)Math.floor(b+b/100);if(b>=a)break;}System.out.println(c);}}
| Main.java:1: error: variable a is already defined in method main(String[])
import java.util.*;public class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);int a=s.nextInt();int b=100;int c=0;while(true){c++;b=(int)Math.floor(b+b/100);if(b>=a)break;}System.out.println(c);}}
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u924711195|p02694|0 | u924711195|p02694|0 | codenet | Compile Error | 224 | |
v2_s738213326 | s738213326 | s738213326 | p02694 | p02694 | u925103765 | u925103765 | 1,588,468,474 | 2020-05-03T01:14:34 | Main.java | import javafx.beans.binding.StringBinding;
import java.io.*;
import java.util.*;
public class Main {
static PrintWriter out = new PrintWriter(System.out);
static Scanner sc = new Scanner(System.in);
static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
long[] res;
Ar... | Main.java:1: error: package javafx.beans.binding does not exist
import javafx.beans.binding.StringBinding;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u925103765|p02694|0 | u925103765|p02694|0 | codenet | Compile Error | 735 | |
v2_s500767451 | s500767451 | s500767451 | p02694 | p02694 | u946307989 | u946307989 | 1,588,910,431 | 2020-05-08T04:00:31 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int targetPrice = scanner.nextInt();
int basePrice = 100;
int year = 0;
while(basePrice <= targetPrice){
basePrice = basePrice + basePrice * 0.01;
year++;
... | Main.java:11: error: incompatible types: possible lossy conversion from double to int
basePrice = basePrice + basePrice * 0.01;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u946307989|p02694|0 | u946307989|p02694|0 | codenet | Compile Error | 371 | |
v2_s594151845 | s594151845 | s594151845 | p02695 | p02695 | u015418292 | u015418292 | 1,588,473,719 | 2020-05-03T02:41:59 | C.java | package abc165;
import java.io.PrintWriter;
import java.util.Arrays;
class Point implements Comparable<Point>{
int a;
int b;
int c;
int d;
public Point(int a, int b, int c, int d) {
this.a = a;
this.b = b;
this.c = c;
this.d = d;
}
@Override
public int compareTo(Point o) {
if(this.d < o.d) {
ret... | C.java:59: error: illegal start of expression
};;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;/wakewakara-----n
^
C.java:59: error: not a statement
};;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;/wakewakara-----n
^
C.jav... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u015418292|p02695|0 | u015418292|p02695|0 | codenet | Compile Error | 3,215 | |
v2_s995766932 | s995766932 | s995766932 | p02695 | p02695 | u178586376 | u178586376 | 1,588,527,059 | 2020-05-03T17:30:59 | Main.java | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in... | Main.java:35: error: incompatible types: int[][] cannot be converted to int
atod = new int[q][4];
^
Main.java:36: error: incompatible types: int[] cannot be converted to int
suuretu = new int[n];
^
Main.java:38: error: array required, but int found
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u178586376|p02695|0 | u178586376|p02695|0 | codenet | Compile Error | 2,016 | |
v2_s483267066 | s483267066 | s483267066 | p02695 | p02695 | u249433240 | u249433240 | 1,588,471,555 | 2020-05-03T02:05:55 | Main.java |
public class Main {
static int n,m,q;
static ABCD[] array;
static int max;
static int[] A;
public static void main(String[] args) {
FastScanner fs = new FastScanner();
n = fs.nextInt();
m = fs.nextInt();
q = fs.nextInt();
array = new ABCD[q];
... | Main.java:10: error: cannot find symbol
FastScanner fs = new FastScanner();
^
symbol: class FastScanner
location: class Main
Main.java:10: error: cannot find symbol
FastScanner fs = new FastScanner();
^
symbol: class FastScanner
location: class Main
2 err... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u249433240|p02695|0 | u249433240|p02695|0 | codenet | Compile Error | 1,190 | |
v2_s775735504 | s775735504 | s775735504 | p02695 | p02695 | u274962354 | u274962354 | 1,588,468,983 | 2020-05-03T01:23:03 | Main.java | import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.Random;
import java.util.Scanner;
class UnionFind{
int Parent[];
UnionFind(int n){//Initialize by -1
Parent=new int[n];
Ar... | Main.java:311: error: ')' expected
if (nl < Integer.MIN_VALUE nl > Integer.MAX_VALUE) throw new NumberFormatException();
^
Main.java:311: error: not a statement
if (nl < Integer.MIN_VALUE nl > Integer.MAX_VALUE) throw new NumberFormatException();
^
Main.ja... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u274962354|p02695|0 | u274962354|p02695|0 | codenet | Compile Error | 7,185 | |
v2_s927233367 | s927233367 | s927233367 | p02695 | p02695 | u276152693 | u276152693 | 1,596,366,529 | 2020-08-02T11:08:49 | Main.java | import java.io.*;
public class Main {
private int N;
private int M;
private int Q;
private int[][] B;
public Main(FastScanner in, PrintWriter out) {
N = in.nextInt();
M = in.nextInt();
Q = in.nextInt();
B = new int[Q][4];
for (int i = 0; i < Q; i++) {
... | Main.java:29: error: cannot find symbol
private int dfs(int i, List<Integer> A) {
^
symbol: class List
location: class Main
Main.java:26: error: cannot find symbol
out.println(dfs(1, new ArrayList<>()));
^
symbol: class ArrayList
location... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u276152693|p02695|0 | u276152693|p02695|0 | codenet | Compile Error | 3,073 | |
v2_s689209522 | s689209522 | s689209522 | p02695 | p02695 | u825262731 | u825262731 | 1,588,479,546 | 2020-05-03T04:19:06 | Main.java | import java.util.*;
public class Main{
public staitc void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int q = sc.nextInt();
int[] arr = new int[m];
for(int i=1;i<=m;i++){
arr[i]=i;
}
ArrayList<ArrayList<Integer>> arr1 = ne... | Main.java:3: error: <identifier> expected
public staitc void main(String[] args){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u825262731|p02695|0 | u825262731|p02695|0 | codenet | Compile Error | 2,115 | |
v2_s280411511 | s280411511 | s280411511 | p02695 | p02695 | u825262731 | u825262731 | 1,588,479,602 | 2020-05-03T04:20:02 | 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 m = sc.nextInt();
int q = sc.nextInt();
int[] arr = new int[m];
for(int i=1;i<=m;i++){
arr[i]=i;
}
ArrayList<ArrayList<Integer>> arr1 = ne... | Main.java:18: error: variable i is already defined in method main(String[])
for(int i=0;i<3;i++){
^
Main.java:19: error: cannot find symbol
arr.add(sc.nextInt());
^
symbol: method add(int)
location: variable arr of type int[]
Main.java:26: error: variable i is already define... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u825262731|p02695|0 | u825262731|p02695|0 | codenet | Compile Error | 2,114 | |
v2_s568960864 | s568960864 | s568960864 | p02695 | p02695 | u825262731 | u825262731 | 1,588,479,726 | 2020-05-03T04:22:06 | 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 m = sc.nextInt();
int q = sc.nextInt();
int[] arr = new int[m];
for(int i=1;i<=m;i++){
arr[i]=i;
}
ArrayList<ArrayList<Integer>> arr1 = ne... | Main.java:58: error: method combinationUtil in class Main cannot be applied to given types;
combinationUtil(arr, n, r, index+1, data, i+1);
^
required: int[],int,int,int,ArrayList<Integer>,int,ArrayList<ArrayList<Integer>>
found: int[],int,int,int,ArrayList<Integer>,int
reason: actual and form... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u825262731|p02695|0 | u825262731|p02695|0 | codenet | Compile Error | 2,120 | |
v2_s095196637 | s095196637 | s095196637 | p02695 | p02695 | u825262731 | u825262731 | 1,588,479,814 | 2020-05-03T04:23:34 | 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 m = sc.nextInt();
int q = sc.nextInt();
int[] arr = new int[m];
for(int i=1;i<=m;i++){
arr[i]=i;
}
ArrayList<ArrayList<Integer>> arr1 = ne... | Main.java:58: error: cannot find symbol
combinationUtil(arr, n, r, index+1, data, i+1,ArrayList<ArrayList<Integer>> arr1);
^
symbol: variable ArrayList
location: class Main
Main.java:58: error: cannot find symbol
combinationUtil(arr, n, r, ind... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u825262731|p02695|0 | u825262731|p02695|0 | codenet | Compile Error | 2,190 | |
v2_s897787544 | s897787544 | s897787544 | p02695 | p02695 | u854155653 | u854155653 | 1,588,474,015 | 2020-05-03T02:46:55 | Main.java | import java.io.IOException;
import java.io.InputStream;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.u... | Main.java:144: error: cannot find symbol
solve_abc166_c_permutation(n, m, 0, 0, tmp, a);
^
symbol: method solve_abc166_c_permutation(int,int,int,int,int[],List<int[]>)
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u854155653|p02695|0 | u854155653|p02695|0 | codenet | Compile Error | 3,355 | |
v2_s244560509 | s244560509 | s244560509 | p02695 | p02695 | u854155653 | u854155653 | 1,588,474,060 | 2020-05-03T02:47:40 | Main.java | import java.io.IOException;
import java.io.InputStream;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.u... | Main.java:144: error: cannot find symbol
solve_abc166_c_permutation(n, m, 0, 0, tmp, a);
^
symbol: method solve_abc166_c_permutation(int,int,int,int,int[],List<int[]>)
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u854155653|p02695|0 | u854155653|p02695|0 | codenet | Compile Error | 3,355 | |
v2_s217335586 | s217335586 | s217335586 | p02696 | p02696 | u080183144 | u080183144 | 1,591,503,892 | 2020-06-07T04:24:52 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
Long a = sc.nextLong();
Long b = sc.nextLong();
Long n = sc.nextLong();
Long max = 0;
for(Long i = 1; i < n; i++){
Long ans = a*i/b - a*(i/b);
if(ans > max) max =a... | Main.java:8: error: incompatible types: int cannot be converted to Long
Long max = 0;
^
Main.java:9: error: incompatible types: int cannot be converted to Long
for(Long i = 1; i < n; i++){
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u080183144|p02696|0 | u080183144|p02696|0 | codenet | Compile Error | 364 | |
v2_s391975015 | s391975015 | s391975015 | p02696 | p02696 | u135341926 | u135341926 | 1,588,472,967 | 2020-05-03T02:29:27 | 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 a = sc.nextInt();
long b = sc.nextLong();
long n = sc.nextLong();
long maxNumber = 0;
for (lon... | Main.java:116: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u135341926|p02696|0 | u135341926|p02696|0 | codenet | Compile Error | 2,498 | |
v2_s723287243 | s723287243 | s723287243 | p02696 | p02696 | u229120147 | u229120147 | 1,588,471,402 | 2020-05-03T02:03:22 | Main.java | 11 10 import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
double a = sc.nextDouble();
double b = sc.nextDouble();
double n = sc.nextDouble();
double tmp = 0;
int ans = 0;
for(int x = 1; x <= n; x++){
tmp = Math.floor(... | Main.java:1: error: class, interface, enum, or record expected
11 10 import java.util.*;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u229120147|p02696|0 | u229120147|p02696|0 | codenet | Compile Error | 452 | |
v2_s853999743 | s853999743 | s853999743 | p02696 | p02696 | u233179341 | u233179341 | 1,588,471,862 | 2020-05-03T02:11:02 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
class Main {
public static void main(final String[] args) throws Exception {
try (BufferedReader br = new BufferedReader(new InputStreamR... | Main.java:19: error: ')' or ',' expected
ansList.add((int)(Math.floor(A * i / B) - (A * Math.floor(i / B)));
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u233179341|p02696|0 | u233179341|p02696|0 | codenet | Compile Error | 1,629 | |
v2_s583712376 | s583712376 | s583712376 | p02696 | p02696 | u274962354 | u274962354 | 1,588,471,996 | 2020-05-03T02:13:16 | Main.java | #include<iostream>
#include<stdio.h>
#include<vector>
#include<algorithm>
#include<set>
#include<string>
#include<map>
#include<string.h>
#include<complex>
#include<math.h>
#include<queue>
#include <functional>
#include<time.h>
using namespace std;
typedef long long int llint;
typedef pair<int, int> pint;
typedef pair<... | Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<stdio.h>
^
Main.java:3: error: illegal character: '#'
#include<vector>
^
Main.java:4: error: illegal character: '#'
#include<algorithm>
^
Main.java:5: error: illegal character: '#'
#include<set>
^
Main.ja... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u274962354|p02696|0 | u274962354|p02696|0 | codenet | Compile Error | 1,276 | |
v2_s460705333 | s460705333 | s460705333 | p02696 | p02696 | u322953890 | u322953890 | 1,588,474,018 | 2020-05-03T02:46:58 | Main.java | public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
long b = sc.nextLong();
long n = sc.nextLong();
double bb = b;
sc.close();
double ans = 0;
double inv = 1 / bb;
int count = 1000;
int j = 0;
for (long i=n; i>=1; i--) {
doub... | 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 | u322953890|p02696|0 | u322953890|p02696|0 | codenet | Compile Error | 773 | |
v2_s119349390 | s119349390 | s119349390 | p02696 | p02696 | u396809531 | u396809531 | 1,588,481,884 | 2020-05-03T04:58:04 | 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 n=sc.nextInt();
int c=n;
if(b-1<=n)
{
c=b-1;
}
System.out.println(Math.floor(a*c/b)-a*Math.floor(c/b));
... | Main.java:18: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u396809531|p02696|0 | u396809531|p02696|0 | codenet | Compile Error | 326 | |
v2_s690065854 | s690065854 | s690065854 | p02696 | p02696 | u396809531 | u396809531 | 1,588,482,249 | 2020-05-03T05:04:09 | 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();
long n=sc.nextlong();
long d=0,c=n;
if(b-1<=n)
{
c=b-1;
}
d=a*c/d - a*(c/b)
System.out.println(d);
}... | Main.java:15: error: ';' expected
d=a*c/d - a*(c/b)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u396809531|p02696|0 | u396809531|p02696|0 | codenet | Compile Error | 327 | |
v2_s823246279 | s823246279 | s823246279 | p02696 | p02696 | u396809531 | u396809531 | 1,588,482,279 | 2020-05-03T05:04:39 | 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();
long n=sc.nextlong();
long d=0,c=n;
if(b-1<=n)
{
c=b-1;
}
d=a*c/d - a*(c/b);
System.out.println(d);
... | Main.java:7: error: cannot find symbol
long a=sc.nextlong();
^
symbol: method nextlong()
location: variable sc of type Scanner
Main.java:8: error: cannot find symbol
long b=sc.nextlong();
^
symbol: method nextlong()
location: variable sc of type Scanner
Main.java:9: error: ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u396809531|p02696|0 | u396809531|p02696|0 | codenet | Compile Error | 328 | |
v2_s856346510 | s856346510 | s856346510 | p02696 | p02696 | u396809531 | u396809531 | 1,588,482,345 | 2020-05-03T05:05:45 | 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();
long n=sc.nextLong();
long d=0,c=n;
if(b-1<=n)
{
c=b-1;
}
d=a*c/d - a*(c/b)
System.out.println(d);
}... | Main.java:15: error: ';' expected
d=a*c/d - a*(c/b)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u396809531|p02696|0 | u396809531|p02696|0 | codenet | Compile Error | 327 | |
v2_s330143978 | s330143978 | s330143978 | p02696 | p02696 | u397604928 | u397604928 | 1,588,471,529 | 2020-05-03T02:05:29 | Main.java | public class Main {
public static void main(String[] args) {
//コード
Scanner sc = new Scanner(System.in);
// File file = new File("src/in.txt");
// Scanner sc = new Scanner(file);
int A = sc.nextInt();
long B = sc.nextLong();
long N = sc.nextLong();
long max = 0;
for(int... | Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u397604928|p02696|0 | u397604928|p02696|0 | codenet | Compile Error | 493 | |
v2_s927510361 | s927510361 | s927510361 | p02696 | p02696 | u397604928 | u397604928 | 1,588,472,755 | 2020-05-03T02:25:55 | Main.java | public class Main {
public static void main(String[] args) {
//コード
Scanner sc = new Scanner(System.in);
// File file = new File("src/in.txt");
// Scanner sc = new Scanner(file);
int A = sc.nextInt();
long B = sc.nextLong();
long N = sc.nextLong();
long max = 0;
for(int... | Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u397604928|p02696|0 | u397604928|p02696|0 | codenet | Compile Error | 538 | |
v2_s827500148 | s827500148 | s827500148 | p02696 | p02696 | u435051977 | u435051977 | 1,588,471,488 | 2020-05-03T02:04:48 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
double A = stdIn.nextDouble();
double B = stdIn.nextDouble();
long N = stdIn.nextLong();
long max = 0;
for(int i = (int)B - 1; i <= N; i += (int) B) {
if(max < sub(A, B... | Main.java:27: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u435051977|p02696|0 | u435051977|p02696|0 | codenet | Compile Error | 593 | |
v2_s005805397 | s005805397 | s005805397 | p02696 | p02696 | u442402514 | u442402514 | 1,590,918,827 | 2020-05-31T09:53:47 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
long B = sc.nextLong();
long N = sc.nextLong();
sc.close();
int MAX = 0;
for (int i = 0; i <... | Main.java:16: error: incompatible types: possible lossy conversion from double to int
int F = Math.floor(A*i/B);
^
Main.java:17: error: cannot find symbol
int G = A * Math.floor(x/B);
^
symbol: variable x
location: class Main... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u442402514|p02696|0 | u442402514|p02696|0 | codenet | Compile Error | 529 | |
v2_s737049533 | s737049533 | s737049533 | p02696 | p02696 | u494105162 | u494105162 | 1,588,474,113 | 2020-05-03T02:48:33 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long a = sc.nextLong();
long b = sc.nextLong();
long n = sc.nextLong();
if (n < b) {
System.out.println(a * n / b);
return;
... | Main.java:20: error: ')' or ',' expected
Math.max((a * x / b) - a * (x / b), (a * x2 / b) - a * (x2 / b));
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u494105162|p02696|0 | u494105162|p02696|0 | codenet | Compile Error | 577 | |
v2_s243460815 | s243460815 | s243460815 | p02696 | p02696 | u587100042 | u587100042 | 1,588,472,245 | 2020-05-03T02:17: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(),b=sc.nextLong(),n=sc.nextLong(),x=0,f=0;
if(b-1<=n){
if(n<100000){
for(long i=b-1;i<=n;i+=b-1){
x=(long)(a*i/b)-a*(long)(i/b);
f=Math.max(f,x);
}
}e... | Main.java:20: error: illegal start of type
}else{
^
Main.java:23: error: <identifier> expected
System.out.print(f);
^
Main.java:23: error: <identifier> expected
System.out.print(f);
^
Main.java:25: error: class, interface, enum, or record expected
}
^
4 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u587100042|p02696|0 | u587100042|p02696|0 | codenet | Compile Error | 519 | |
v2_s713071963 | s713071963 | s713071963 | p02696 | p02696 | u602322080 | u602322080 | 1,588,472,619 | 2020-05-03T02:23:39 | Main.java | import java.util.Scanner;
public class Main
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
long A = sc.nextLong();
long B = sc.nextLong();
long N = sc.nextLong();
sc.close();
long answer = 0;
double calculatedNumber = 0;
for(long t = 0; t <= B... | Main.java:3: error: '{' expected
public class Main
^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
Main.java:33: error: class, interface, enum, or recor... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u602322080|p02696|0 | u602322080|p02696|0 | codenet | Compile Error | 749 | |
v2_s937902127 | s937902127 | s937902127 | p02696 | p02696 | u665650665 | u665650665 | 1,588,474,167 | 2020-05-03T02:49:27 | 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.nextLong();
int n = sc.nextLong();
int result=0;
int max = 0;
if(n<b) max = (a*n)/b;
else{
for(int x=0;x<=n;x++){
if(x<b) result = (a*x... | Main.java:7: error: incompatible types: possible lossy conversion from long to int
int b = sc.nextLong();
^
Main.java:8: error: incompatible types: possible lossy conversion from long to int
int n = sc.nextLong();
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u665650665|p02696|0 | u665650665|p02696|0 | codenet | Compile Error | 445 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.