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_s894527957 | s894527957 | s894527957 | p02397 | p02397 | u285298145 | u285298145 | 1,417,729,132 | 2014-12-04T21:38:52 | Main.java | public class Main {
static long[] zero= {0, 0};
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while (true) {
String[] strArr = br.readLine().split(" ");
long[] arr = new long[2];
arr[0] = Long.parseLong(strArr[0]);
... | Main.java:3: error: cannot find symbol
public static void main(String[] args) throws IOException {
^
symbol: class IOException
location: class Main
Main.java:4: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u285298145|p02397|0 | u285298145|p02397|0 | codenet | Compile Error | 465 | |
v2_s994836641 | s994836641 | s994836641 | p02397 | p02397 | u286326194 | u286326194 | 1,423,481,651 | 2015-02-09T11:34:11 | 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();
while(a != 0 && b != 0){
String str = (a > b) ? b + " " + a : a + " " + b;
System.out.println(str);
a = sc.nextInt();
b = sc.nextInt();
}
}
} | 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 | u286326194|p02397|0 | u286326194|p02397|0 | codenet | Compile Error | 310 | |
v2_s763704152 | s763704152 | s763704152 | p02397 | p02397 | u292572821 | u292572821 | 1,493,348,535 | 2017-04-28T03:02:15 | main.java | public class main {
public static void main(String[] args) {
java.util.Scanner scan = new java.util.Scanner(System.in);
int x;
int y;
int i;
int t = 0;
do{
x = scan.nextInt();
y = scan.nextInt();
if(0<=x && x<=10000 && 0<=y && y<=10000){
if(x == 0 && y == 0){
break;
}
if(x<=y){
... | main.java:31: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u292572821|p02397|0 | u292572821|p02397|0 | codenet | Compile Error | 476 | |
v2_s529117894 | s529117894 | s529117894 | p02397 | p02397 | u312191121 | u312191121 | 1,500,700,469 | 2017-07-22T05:14:29 | Main.java |
import java.util.Scanner;
public class Main{
public static void main(String []args){
//????????£?????????????????????
Scanner sc = new Scanner(System.in);
//??°?????????
while(true){
//x???????????????
int x = sc.nextInt();
//y???????????????
int y = sc.nextInt();
//????????????????°???????... | Main.java:30: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u312191121|p02397|0 | u312191121|p02397|0 | codenet | Compile Error | 596 | |
v2_s119801407 | s119801407 | s119801407 | p02397 | p02397 | u312191121 | u312191121 | 1,500,700,494 | 2017-07-22T05:14:54 | Main.java |
import java.util.Scanner;
public class Main{
public static void main(String []args){
//????????£?????????????????????
Scanner sc = new Scanner(System.in);
//??°?????????
while(true){
//x???????????????
int x = sc.nextInt();
//y???????????????
int y = sc.nextInt();
//????????????????°???????... | Main.java:30: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u312191121|p02397|0 | u312191121|p02397|0 | codenet | Compile Error | 596 | |
v2_s293829895 | s293829895 | s293829895 | p02397 | p02397 | u312191121 | u312191121 | 1,500,700,504 | 2017-07-22T05:15:04 | Main.java |
import java.util.Scanner;
public class Main{
public static void main(String []args){
//????????£?????????????????????
Scanner sc = new Scanner(System.in);
//??°?????????
while(true){
//x???????????????
int x = sc.nextInt();
//y???????????????
int y = sc.nextInt();
//????????????????°???????... | Main.java:30: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u312191121|p02397|0 | u312191121|p02397|0 | codenet | Compile Error | 596 | |
v2_s049465606 | s049465606 | s049465606 | p02397 | p02397 | u312191121 | u312191121 | 1,500,701,739 | 2017-07-22T05:35:39 | Main.java |
import java.util.Scanner;
public class Main {
public static void main(String []args){
//????????£?????????????????????
Scanner sc = new Scanner(System.in);
//??°?????????
while(true){
//x???????????????
int x = sc.nextInt();
//y???????????????
int y = sc.nextInt();
//????????????????°???????... | Main.java:30: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u312191121|p02397|0 | u312191121|p02397|0 | codenet | Compile Error | 597 | |
v2_s450144324 | s450144324 | s450144324 | p02397 | p02397 | u312191121 | u312191121 | 1,500,701,761 | 2017-07-22T05:36:01 | Main.java |
import java.util.Scanner;
public class Main {
public static void main(String []args){
//????????£?????????????????????
Scanner sc = new Scanner(System.in);
//??°?????????
while(true){
//x???????????????
int x = sc.nextInt();
//y???????????????
int y = sc.nextInt();
//????????????????°???????... | Main.java:30: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u312191121|p02397|0 | u312191121|p02397|0 | codenet | Compile Error | 597 | |
v2_s559077211 | s559077211 | s559077211 | p02397 | p02397 | u319046809 | u319046809 | 1,462,959,581 | 2016-05-11T09:39:41 | Main.java | inport java.util.Scanner;
public class Main{
ppublic static void main(String argv[])
{
Scanner scan = new Scanner(System.in);
int x,y;
while(true)
{
x = scan.nextInt();
y = scan.nextInt();
if( x == 0 && y == 0 )
break;
else if( x <= y)
System.out.println(x+" "+y);
else if( x > y ... | Main.java:1: error: class, interface, enum, or record expected
inport java.util.Scanner;
^
Main.java:4: error: <identifier> expected
ppublic static void main(String argv[])
^
Main.java:20: error: reached end of file while parsing
}
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u319046809|p02397|0 | u319046809|p02397|0 | codenet | Compile Error | 369 | |
v2_s613752844 | s613752844 | s613752844 | p02397 | p02397 | u319046809 | u319046809 | 1,462,959,593 | 2016-05-11T09:39:53 | Main.java | import java.util.Scanner;
public class Main{
ppublic static void main(String argv[])
{
Scanner scan = new Scanner(System.in);
int x,y;
while(true)
{
x = scan.nextInt();
y = scan.nextInt();
if( x == 0 && y == 0 )
break;
else if( x <= y)
System.out.println(x+" "+y);
else if( x > y ... | Main.java:4: error: <identifier> expected
ppublic static void main(String argv[])
^
Main.java:20: error: reached end of file while parsing
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u319046809|p02397|0 | u319046809|p02397|0 | codenet | Compile Error | 369 | |
v2_s359658073 | s359658073 | s359658073 | p02397 | p02397 | u319046809 | u319046809 | 1,462,959,605 | 2016-05-11T09:40:05 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String argv[])
{
Scanner scan = new Scanner(System.in);
int x,y;
while(true)
{
x = scan.nextInt();
y = scan.nextInt();
if( x == 0 && y == 0 )
break;
else if( x <= y)
System.out.println(x+" "+y);
else if( x > y )... | Main.java:20: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u319046809|p02397|0 | u319046809|p02397|0 | codenet | Compile Error | 368 | |
v2_s767342175 | s767342175 | s767342175 | p02397 | p02397 | u319288834 | u319288834 | 1,504,667,650 | 2017-09-06T03:14:10 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] x = new int[3000];
int[] y = new int[3000] ;
for (int i = 0; i<x.length ; i++) {
x[i] = sc.nextInt();
y[i] = sc.nextInt();
if(x[i] == 0 & y[i] == 0) break;
}
fo... | Main.java:29: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u319288834|p02397|0 | u319288834|p02397|0 | codenet | Compile Error | 647 | |
v2_s157540468 | s157540468 | s157540468 | p02397 | p02397 | u321399416 | u321399416 | 1,464,152,375 | 2016-05-25T04:59:35 | Main.java | public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int x = 1;
int y = 1;
while (x != 0 && y != 0) {
x = scanner.nextInt();
y = scanner.nextInt();
if (x == 0 && y == 0) {
break;
... | Main.java:4: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: 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 | u321399416|p02397|1 | u321399416|p02397|1 | codenet | Compile Error | 513 | |
v2_s512937822 | s512937822 | s512937822 | p02397 | p02397 | u321399416 | u321399416 | 1,464,152,411 | 2016-05-25T05:00:11 | Main.java | public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int x = 1;
int y = 1;
while (x != 0 && y != 0) {
x = scanner.nextInt();
y = scanner.nextInt();
if (x == 0 && y == 0) {
break;
... | Main.java:4: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: 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 | u321399416|p02397|1 | u321399416|p02397|1 | codenet | Compile Error | 513 | |
v2_s656973625 | s656973625 | s656973625 | p02397 | p02397 | u331491813 | u331491813 | 1,527,258,414 | 2018-05-25T14:26:54 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args){
for(;;) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if(a>=b) {
System.out.printf("%d %d\n",b,a);
}
else if(a<b){
System.out.printf("%d %d\n",a,b);
}
els... | Main.java:16: error: incomparable types: boolean and int
else if(a == b == 0){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u331491813|p02397|0 | u331491813|p02397|0 | codenet | Compile Error | 369 | |
v2_s843749008 | s843749008 | s843749008 | p02397 | p02397 | u331491813 | u331491813 | 1,527,259,236 | 2018-05-25T14:40:36 | Main.java | mport java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
for(int i = 0;i < 3000;i++) {
int a = sc.nextInt();
int b = sc.nextInt();
if(a ==0 && b == 0){
break;
}
else if(a>=b) {
System.out.printf("%d %d\n",b,a);
}
... | Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u331491813|p02397|0 | u331491813|p02397|0 | codenet | Compile Error | 398 | |
v2_s327388645 | s327388645 | s327388645 | p02397 | p02397 | u338661979 | u338661979 | 1,396,785,197 | 2014-04-06T11:53:17 | Main.java | import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while(true){
String input = br.readLine();
String[] str = input.split(" ");
int a = Integer.parseInt(str[0]);
int b = Integer.p... | Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown
String input = br.readLine();
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u338661979|p02397|0 | u338661979|p02397|0 | codenet | Compile Error | 519 | |
v2_s072209168 | s072209168 | s072209168 | p02397 | p02397 | u339341496 | u339341496 | 1,506,471,778 | 2017-09-27T00:22:58 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {x
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb=new StringBuilder();
for(... | Main.java:5: error: <identifier> expected
public class Main {x
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u339341496|p02397|1 | u339341496|p02397|1 | codenet | Compile Error | 820 | |
v2_s620404988 | s620404988 | s620404988 | p02397 | p02397 | u341485329 | u341485329 | 1,451,316,911 | 2015-12-28T15:35:11 | Main.java | import java.io.*;
public class Main {
public static void main(String[] args) {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try {
boolean flag = true;
while (flag) {
String[... | Main.java:14: error: unreported exception IOException; must be caught or declared to be thrown
String[] line = reader.readLine().split(" ");
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u341485329|p02397|0 | u341485329|p02397|0 | codenet | Compile Error | 967 | |
v2_s790387921 | s790387921 | s790387921 | p02397 | p02397 | u342302557 | u342302557 | 1,476,950,406 | 2016-10-20T08:00:06 | Main.java | import java.io.*;
public class Main{
public static void main(String[]args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
while(true){
String[] str = br.readLine().split(" ");
int ... | Main.java:16: error: cannot find symbol
sb.append(Intger.toString(x<y?x:y)).append(" ").append(Intger.toString(x<y?y:x)).append("\n");
^
symbol: variable Intger
location: class Main
Main.java:16: error: cannot find symbol
sb.append(Intger.toString(x<y?x:y)... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u342302557|p02397|0 | u342302557|p02397|0 | codenet | Compile Error | 648 | |
v2_s386154336 | s386154336 | s386154336 | p02397 | p02397 | u342302557 | u342302557 | 1,476,950,442 | 2016-10-20T08:00:42 | Main.java | import java.io.*;
public class Main{
public static void main(String[]args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
while(true){
String[] str = br.readLine().split(" ");
int ... | Main.java:16: error: cannot find symbol
sb.append(Intger.toString(x<y?x:y)).append(" ").append(Intger.toString(x<y?y:x)).append("\n");
^
symbol: variable Intger
location: class Main
Main.java:16: error: cannot find symbol
sb.append(Intger.toString(x<y?x:y)... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u342302557|p02397|0 | u342302557|p02397|0 | codenet | Compile Error | 648 | |
v2_s394165198 | s394165198 | s394165198 | p02397 | p02397 | u350078692 | u350078692 | 1,534,918,167 | 2018-08-22T06:09:27 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
int i;
while(true){
x = sc.nextInt();
if ( x == 0 ) break;
if(x > y){
... | Main.java:22: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u350078692|p02397|0 | u350078692|p02397|0 | codenet | Compile Error | 447 | |
v2_s666446339 | s666446339 | s666446339 | p02397 | p02397 | u350078692 | u350078692 | 1,534,918,329 | 2018-08-22T06:12:09 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int i;
while(true){
int x = sc.nextInt();
int y = sc.nextInt();
if ( x == 0 ) break;
if(a > b){
i =
Syste... | Main.java:19: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u350078692|p02397|0 | u350078692|p02397|0 | codenet | Compile Error | 389 | |
v2_s031351379 | s031351379 | s031351379 | p02397 | p02397 | u350078692 | u350078692 | 1,534,918,399 | 2018-08-22T06:13:19 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int i;
while(true){
int x = sc.nextInt();
int y = sc.nextInt();
if ( x == 0 ) break;
if(a > b){
i = x;
x =... | Main.java:21: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u350078692|p02397|0 | u350078692|p02397|0 | codenet | Compile Error | 417 | |
v2_s966401323 | s966401323 | s966401323 | p02397 | p02397 | u350078692 | u350078692 | 1,534,918,507 | 2018-08-22T06:15:07 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int i;
while(true){
int x = sc.nextInt();
int y = sc.nextInt();
if ( x == 0 ) break;
if(a > b){
i = x;
x =... | Main.java:12: error: cannot find symbol
if(a > b){
^
symbol: variable a
location: class Main
Main.java:12: error: cannot find symbol
if(a > b){
^
symbol: variable b
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u350078692|p02397|0 | u350078692|p02397|0 | codenet | Compile Error | 418 | |
v2_s389101401 | s389101401 | s389101401 | p02397 | p02397 | u350078692 | u350078692 | 1,534,918,710 | 2018-08-22T06:18:30 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int tmp;
while(true){
int x = sc.nextInt();
int y = sc.nextInt();
if ( x == 0 ) break;
if(x > y){
ymp = x;
... | Main.java:13: error: cannot find symbol
ymp = x;
^
symbol: variable ymp
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u350078692|p02397|0 | u350078692|p02397|0 | codenet | Compile Error | 424 | |
v2_s316914789 | s316914789 | s316914789 | p02397 | p02397 | u358648814 | u358648814 | 1,421,193,448 | 2015-01-13T23:57:28 | Main.java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner stdId = new Scanner(System.in);
int x = stdId.nextInt();
int y = stdId.nextInt();
while(x!=0 && y!=0){
System.out.println(Math.Min(x,y) + " " + Math.Max(x,y));
x = stdId.nextInt();
y = stdId.nextInt(... | Main.java:9: error: cannot find symbol
System.out.println(Math.Min(x,y) + " " + Math.Max(x,y));
^
symbol: method Min(int,int)
location: class Math
Main.java:9: error: cannot find symbol
System.out.println(Math.Min(x,y) + " " + Math.Max(x,y));
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u358648814|p02397|0 | u358648814|p02397|0 | codenet | Compile Error | 334 | |
v2_s522988961 | s522988961 | s522988961 | p02397 | p02397 | u366586194 | u366586194 | 1,524,287,129 | 2018-04-21T05:05:29 | Main.java | import java.io.*;
public class Main {
public static void main (String[] args) throws java.lang.Exception {
BufferedReader input = new BufferedReader (new InputStreamReader(System.in));
String inp_x = input.readLine();
String inp_y = input.readLine();
int x = Integer.parseInt(inp_x);
in... | Main.java:11: error: incompatible types: int cannot be converted to String
String output = Math.max(x, y);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u366586194|p02397|0 | u366586194|p02397|0 | codenet | Compile Error | 465 | |
v2_s477441115 | s477441115 | s477441115 | p02397 | p02397 | u366586194 | u366586194 | 1,532,147,013 | 2018-07-21T04:23:33 | Main.java | /* ITP1_3_C */
import java.io.*;
import java.util.*;
public class Main {
public static void main (String[] args) throws java.lang.Exception {
// 入力された値をゲット
Scanner sc = new Scanner(System.in);
// 入力データがなくなるまで繰り返す
while (sc.hasNext()) {
int x = sc.nextInt(); // 1個目をxにセット
int y = sc.nextInt()... | Main.java:16: error: bad operand types for binary operator '&&'
if((x = 0) && (y = 0)) {
^
first type: int
second type: int
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u366586194|p02397|1 | u366586194|p02397|1 | codenet | Compile Error | 655 | |
v2_s940148726 | s940148726 | s940148726 | p02397 | p02397 | u366586194 | u366586194 | 1,532,147,077 | 2018-07-21T04:24:37 | Main.java | /* ITP1_3_C */
import java.io.*;
import java.util.*;
public class Main {
public static void main (String[] args) throws java.lang.Exception {
// 入力された値をゲット
Scanner sc = new Scanner(System.in);
// 入力データがなくなるまで繰り返す
while (sc.hasNext()) {
int x = sc.nextInt(); // 1個目をxにセット
int y = sc.nextInt()... | Main.java:16: error: bad operand types for binary operator '&&'
if((x = 0) && (y = 0)) {
^
first type: int
second type: int
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u366586194|p02397|1 | u366586194|p02397|1 | codenet | Compile Error | 655 | |
v2_s701582128 | s701582128 | s701582128 | p02397 | p02397 | u366586194 | u366586194 | 1,532,147,196 | 2018-07-21T04:26:36 | Main.java | /* ITP1_3_C */
import java.io.*;
import java.util.*;
public class Main {
public static void main (String[] args) throws java.lang.Exception {
// 入力された値をゲット
Scanner sc = new Scanner(System.in);
// 入力データがなくなるまで繰り返す
while (sc.hasNext()) {
int x = sc.nextInt(); // 1個目をxにセット
int y = sc.nextInt()... | Main.java:16: error: bad operand types for binary operator '&&'
if(x = 0 && y = 0) {
^
first type: int
second type: int
Main.java:16: error: incompatible types: int cannot be converted to boolean
if(x = 0 && y = 0) {
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u366586194|p02397|1 | u366586194|p02397|1 | codenet | Compile Error | 652 | |
v2_s062349119 | s062349119 | s062349119 | p02397 | p02397 | u367386691 | u367386691 | 1,526,460,431 | 2018-05-16T08:47:11 | Main.java | mport java.util.*;
public class Main{
public static void main(String[] args){
for(int i =0;i<200000; i++){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x ==0 && y == 0) break;
if(x != 0 || y !=0){
int c = Math.max(x,y);
int d = Math.min(x,y);
System.out.println(c + " " + d);}}
}... | Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u367386691|p02397|0 | u367386691|p02397|0 | codenet | Compile Error | 323 | |
v2_s924684085 | s924684085 | s924684085 | p02397 | p02397 | u367386691 | u367386691 | 1,526,463,407 | 2018-05-16T09:36:47 | Main.java | mport java.util.*;
public class Main{
public static void main(String[] args){
for(int i = 0 ;i <200000; i++){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x ==0 && y == 0) break;
else{
int c = Math.max(x,y);
int d = Math.min(x,y);
System.out.println(d + " " + c);}}
}
| Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
Main.java:13: error: reached end of file while parsing
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u367386691|p02397|0 | u367386691|p02397|0 | codenet | Compile Error | 309 | |
v2_s190450743 | s190450743 | s190450743 | p02397 | p02397 | u367386691 | u367386691 | 1,526,463,502 | 2018-05-16T09:38:22 | Main.java | mport java.util.*;
public class Main{
public static void main(String[] args){
for(int i = 0 ;i <200000; i++){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x ==0 && y == 0) break;
else{
int c = Math.max(x,y);
int d = Math.min(x,y);
System.out.println(d + " " + c);}}
}
| Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
Main.java:13: error: reached end of file while parsing
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u367386691|p02397|0 | u367386691|p02397|0 | codenet | Compile Error | 309 | |
v2_s324318639 | s324318639 | s324318639 | p02397 | p02397 | u367386691 | u367386691 | 1,526,463,575 | 2018-05-16T09:39:35 | Main.java | mport java.util.*;
public class Main{
public static void main(String[] args){
for(int i = 0 ;i <3000; i++){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x ==0 && y == 0) break;
else{
int c = Math.max(x,y);
int d = Math.min(x,y);
System.out.println(d + " " + c);}}
}
| Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
Main.java:13: error: reached end of file while parsing
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u367386691|p02397|0 | u367386691|p02397|0 | codenet | Compile Error | 307 | |
v2_s887340999 | s887340999 | s887340999 | p02397 | p02397 | u367386691 | u367386691 | 1,526,463,686 | 2018-05-16T09:41:26 | Main.java | mport java.util.*;
public class Main{
public static void main(String[] args){
for(int i = 0 ;i <200000; i++){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x ==0 && y == 0) break;
else{
int c = Math.max(x,y);
int d = Math.min(x,y);
System.out.println(d + " " + c);}}
}
| Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
Main.java:13: error: reached end of file while parsing
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u367386691|p02397|0 | u367386691|p02397|0 | codenet | Compile Error | 309 | |
v2_s644102750 | s644102750 | s644102750 | p02397 | p02397 | u367386691 | u367386691 | 1,526,463,805 | 2018-05-16T09:43:25 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
for(int i = 0 ;i <200000; i++){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x ==0 && y == 0) break;
else{
int c = Math.max(x,y);
int d = Math.min(x,y);
System.out.println(d + " " + c);}}
}
| Main.java:13: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u367386691|p02397|0 | u367386691|p02397|0 | codenet | Compile Error | 310 | |
v2_s923636555 | s923636555 | s923636555 | p02397 | p02397 | u367386691 | u367386691 | 1,526,463,893 | 2018-05-16T09:44:53 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
for(int i = 0 ;i <200000; i++){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x ==0 && y == 0) break;
else{
int c = Math.max(x,y);
int d = Math.min(x,y);
System.out.println(d + " " + c);}}
}
| Main.java:13: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u367386691|p02397|0 | u367386691|p02397|0 | codenet | Compile Error | 310 | |
v2_s531025923 | s531025923 | s531025923 | p02397 | p02397 | u376497241 | u376497241 | 1,527,192,971 | 2018-05-24T20:16:11 | Main.java | import java.io.*;
import java.util.Scanner;
public class Main {
public static String swap(int a, int b) {
return b + " " + a;
}
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
// int x = sc... | Main.java:16: error: method swap in class Main cannot be applied to given types;
System.out.println(swap());
^
required: int,int
found: no arguments
reason: actual and formal argument lists differ in length
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u376497241|p02397|0 | u376497241|p02397|0 | codenet | Compile Error | 442 | |
v2_s528369382 | s528369382 | s528369382 | p02397 | p02397 | u376497241 | u376497241 | 1,527,193,137 | 2018-05-24T20:18:57 | Main.java | import java.io.*;
import java.util.Scanner;
public class Main {
public static void print() {
Scanner sc = new Scanner(System.in);
int a, b
while (true) {
a = sc.nextInt();
b = sc.nextInt();
if(a == 0 && b == 0)break;
System.out.println("" +... | Main.java:7: error: ';' expected
int a, b
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u376497241|p02397|0 | u376497241|p02397|0 | codenet | Compile Error | 662 | |
v2_s007192451 | s007192451 | s007192451 | p02397 | p02397 | u376497241 | u376497241 | 1,527,193,148 | 2018-05-24T20:19:08 | Main.java | import java.io.*;
import java.util.Scanner;
public class Main {
public static void print() {
Scanner sc = new Scanner(System.in);
int a, b;
while (true) {
a = sc.nextInt();
b = sc.nextInt();
if(a == 0 && b == 0)break;
System.out.println("" ... | Main.java:13: error: bad operand type String for unary operator '+'
System.out.println("" + Math.min(a,b), + " " + Math.max(a,b));
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u376497241|p02397|0 | u376497241|p02397|0 | codenet | Compile Error | 663 | |
v2_s885439033 | s885439033 | s885439033 | p02397 | p02397 | u403377969 | u403377969 | 1,504,117,807 | 2017-08-30T18:30:07 | Main.java | public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
for (;;) {
int i = sc.nextInt();
int j = sc.nextInt();
if (i == 0 && j == 0) {
break;
}
System.out.printf("%d %d\n", Math.min(i, j), Math.max(i, j));
}
sc.close();
}
} | 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
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u403377969|p02397|0 | u403377969|p02397|0 | codenet | Compile Error | 314 | |
v2_s514683590 | s514683590 | s514683590 | p02397 | p02397 | u411888544 | u411888544 | 1,512,543,565 | 2017-12-06T06:59:25 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
????
public class Main{
????????public static void main(String[] args)throws IOException{
????????????????BufferedReader br =new BufferedReader(
????????????????????????new InputStreamReader(System.in));
????????????????StringB... | Main.java:4: error: class, interface, enum, or record expected
????
^
Main.java:6: error: illegal start of type
????????public static void main(String[] args)throws IOException{
^
Main.java:7: error: illegal start of expression
????????????????BufferedReader br =new BufferedReader(
^
Main.java:7: error: illegal start o... | compile_error | 4 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u411888544|p02397|0 | u411888544|p02397|0 | codenet | Compile Error | 838 | |
v2_s534347011 | s534347011 | s534347011 | p02397 | p02397 | u418625354 | u418625354 | 1,497,613,022 | 2017-06-16T11:37:02 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x;
int y;
while ((x=sc.nextInt())!=0&(y=sc.nextInt())!=0){
if (x<y){
System.out.println(x+" "+y);
} else {
System.out.println(y+" "+x);
} else {
}
}
}
} | Main.java:12: error: 'else' without 'if'
} else {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u418625354|p02397|0 | u418625354|p02397|0 | codenet | Compile Error | 311 | |
v2_s319947421 | s319947421 | s319947421 | p02397 | p02397 | u418625354 | u418625354 | 1,497,615,954 | 2017-06-16T12:25:54 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exceptions{
Scanner sc = new Scanner(System.in);
int x;
int y;
StringBuilder sb = new StringBuilder();
while ((x=sc.nextInt())!=0&&(y=sc.nextInt())!=0){
if (x<y){
sb.append(x+" "+y+"\n");
} else {
sb.append(y+... | Main.java:3: error: cannot find symbol
public static void main(String[] args) throws Exceptions{
^
symbol: class Exceptions
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u418625354|p02397|0 | u418625354|p02397|0 | codenet | Compile Error | 370 | |
v2_s817923784 | s817923784 | s817923784 | p02397 | p02397 | u418625354 | u418625354 | 1,497,615,984 | 2017-06-16T12:26:24 | Main.java | import java.util.*;
import java.lang.StringBuilder;
public class Main {
public static void main(String[] args) throws Exceptions{
Scanner sc = new Scanner(System.in);
int x;
int y;
StringBuilder sb = new StringBuilder();
while ((x=sc.nextInt())!=0&&(y=sc.nextInt())!=0){
if (x<y){
sb.append(x+" "+y+"\n... | Main.java:4: error: cannot find symbol
public static void main(String[] args) throws Exceptions{
^
symbol: class Exceptions
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u418625354|p02397|0 | u418625354|p02397|0 | codenet | Compile Error | 402 | |
v2_s789748450 | s789748450 | s789748450 | p02397 | p02397 | u418625354 | u418625354 | 1,497,616,101 | 2017-06-16T12:28:21 | Main.java | import java.util.*;
import java.lang.*;
public class Main {
public static void main(String[] args) throws Exceptions{
Scanner sc = new Scanner(System.in);
int x;
int y;
StringBuilder sb = new StringBuilder();
while ((x=sc.nextInt())!=0&&(y=sc.nextInt())!=0){
if (x<y){
sb.append(x+" "+y+"\n");
} els... | Main.java:4: error: cannot find symbol
public static void main(String[] args) throws Exceptions{
^
symbol: class Exceptions
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u418625354|p02397|0 | u418625354|p02397|0 | codenet | Compile Error | 390 | |
v2_s337797813 | s337797813 | s337797813 | p02397 | p02397 | u429496644 | u429496644 | 1,551,254,462 | 2019-02-27T08:01:02 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
//変数x, yを宣言する
int x, y;
//変数x, yの値を入力する
x = sc.nextInt();
y = sc.nextInt();
while(x != 0 && ... | Main.java:18: error: not a statement
else (x >= y) System.out.println(y + " " + x);
^
Main.java:18: error: ';' expected
else (x >= y) System.out.println(y + " " + x);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u429496644|p02397|0 | u429496644|p02397|0 | codenet | Compile Error | 4,264 | |
v2_s390847253 | s390847253 | s390847253 | p02397 | p02397 | u429496644 | u429496644 | 1,551,254,839 | 2019-02-27T08:07:19 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
//変数x, yを宣言する
int x, y;
//変数x, yの値を入力する
x = sc.nextInt();
y = sc.nextInt();
while(x != 0 && ... | Main.java:26: error: class, interface, enum, or record expected
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u429496644|p02397|0 | u429496644|p02397|0 | codenet | Compile Error | 4,265 | |
v2_s611628813 | s611628813 | s611628813 | p02397 | p02397 | u447630054 | u447630054 | 1,460,507,921 | 2016-04-13T00:38:41 | C.java | import java.util.Scanner;
import java.util.Arrays;
public class C {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int x = scan.nextInt(), y = scan.nextInt();
while(true) {
if(x == 0 &&... | C.java:13: error: cannot find symbol
System.out.println(data[0] + " " + data[1]);
^
symbol: variable data
location: class C
C.java:13: error: cannot find symbol
System.out.println(data[0] + " " + data[1]);
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u447630054|p02397|1 | u447630054|p02397|1 | codenet | Compile Error | 558 | |
v2_s602291562 | s602291562 | s602291562 | p02397 | p02397 | u447630054 | u447630054 | 1,460,507,950 | 2016-04-13T00:39:10 | Main.java | import java.util.Scanner;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int x = scan.nextInt(), y = scan.nextInt();
while(true) {
if(x == 0... | Main.java:13: error: cannot find symbol
System.out.println(data[0] + " " + data[1]);
^
symbol: variable data
location: class Main
Main.java:13: error: cannot find symbol
System.out.println(data[0] + " " + data[1]);
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u447630054|p02397|1 | u447630054|p02397|1 | codenet | Compile Error | 561 | |
v2_s176646744 | s176646744 | s176646744 | p02397 | p02397 | u470991958 | u470991958 | 1,458,725,803 | 2016-03-23T09:36:43 | Main.java | import java.io.*;
public class Main {
????????public static void main(String args[]) throws IOException{
????????????????BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
????????????????StringBuilder builder = new StringBuilder();
????????????????while(true){
????????????????????????String ... | Main.java:3: error: illegal start of type
????????public static void main(String args[]) throws IOException{
^
Main.java:4: error: illegal start of expression
????????????????BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
^
Main.java:4: error: illegal start of expression
????????????????B... | compile_error | 4 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u470991958|p02397|0 | u470991958|p02397|0 | codenet | Compile Error | 782 | |
v2_s520495134 | s520495134 | s520495134 | p02397 | p02397 | u485626876 | u485626876 | 1,529,940,894 | 2018-06-25T15:34:54 | Main.java | import java.util.*;
public class Main{
public static void main(String[] ards){
while(true){
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
if(x==0 && y==0){break;}
if(x>y){
int[] a = new int[];
... | Main.java:14: error: array dimension missing
int[] a = new int[];
^
Main.java:15: error: array dimension missing
int[] b = new int[];
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u485626876|p02397|1 | u485626876|p02397|1 | codenet | Compile Error | 621 | |
v2_s550986515 | s550986515 | s550986515 | p02397 | p02397 | u500257793 | u500257793 | 1,527,507,686 | 2018-05-28T11:41:26 | Main.java | import java.util.Scanner;
class Main
{
public static void main(String args[])
{
int a,b;
Scanner sc = new Scanner(System.in);
while (True){
a=sc.nextInt();
b=sc.nestInt();
if(a==0 && b==0)
break;
else if(a<b)
System.out.println(a +b);
else
System.out.println(b +a);}
}
}
| Main.java:8: error: cannot find symbol
while (True){
^
symbol: variable True
location: class Main
Main.java:10: error: cannot find symbol
b=sc.nestInt();
^
symbol: method nestInt()
location: variable sc of type Scanner
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u500257793|p02397|0 | u500257793|p02397|0 | codenet | Compile Error | 302 | |
v2_s475058761 | s475058761 | s475058761 | p02397 | p02397 | u511490940 | u511490940 | 1,531,530,176 | 2018-07-14T01:02:56 | Main.java | qqqqq
| Main.java:1: error: reached end of file while parsing
qqqqq
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u511490940|p02397|0 | u511490940|p02397|0 | codenet | Compile Error | 6 | |
v2_s037727446 | s037727446 | s037727446 | p02397 | p02397 | u511490940 | u511490940 | 1,531,530,201 | 2018-07-14T01:03:21 | Main.java | happy
| Main.java:1: error: reached end of file while parsing
happy
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u511490940|p02397|0 | u511490940|p02397|0 | codenet | Compile Error | 6 | |
v2_s400705465 | s400705465 | s400705465 | p02397 | p02397 | u512788365 | u512788365 | 1,486,354,107 | 2017-02-06T04:08:27 | STN.java | import java.util.Scanner;
public class STN{
public static void main(String[] args){
Scanner stdin = new Scanner(System.in);
int x = stdin.nextInt();
int y = stdin.nextInt();
if(y<x){
w = y;
y = x;
x = w;
}
while(x!=0 || y!=0){
System.out.println(x+" "+y);
x = stdin.nextInt();
y ... | STN.java:9: error: cannot find symbol
w = y;
^
symbol: variable w
location: class STN
STN.java:11: error: cannot find symbol
x = w;
^
symbol: variable w
location: class STN
STN.java:18: error: cannot find symbol
w = y;
^
symbol: variable w
location: class STN
STN.java:20: e... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u512788365|p02397|0 | u512788365|p02397|0 | codenet | Compile Error | 400 | |
v2_s537110826 | s537110826 | s537110826 | p02397 | p02397 | u512788365 | u512788365 | 1,486,354,125 | 2017-02-06T04:08:45 | 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 = stdin.nextInt();
if(y<x){
w = y;
y = x;
x = w;
}
while(x!=0 || y!=0){
System.out.println(x+" "+y);
x = stdin.nextInt();
y... | Main.java:9: error: cannot find symbol
w = y;
^
symbol: variable w
location: class Main
Main.java:11: error: cannot find symbol
x = w;
^
symbol: variable w
location: class Main
Main.java:18: error: cannot find symbol
w = y;
^
symbol: variable w
location: class Main
Main.jav... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u512788365|p02397|0 | u512788365|p02397|0 | codenet | Compile Error | 401 | |
v2_s065487091 | s065487091 | s065487091 | p02397 | p02397 | u530051520 | u530051520 | 1,504,589,671 | 2017-09-05T05:34:31 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
int x,y,w;
int i=0;
Scanner scan = new Scanner(System.in);
while(true)
{
x=scan.nextInt();
y=scan.nextInt();
if(x==0&&y==0)
break;
if(x>y)
{
... | Main.java:19: error: cannot find symbol
x=b;
^
symbol: variable b
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u530051520|p02397|0 | u530051520|p02397|0 | codenet | Compile Error | 398 | |
v2_s657992415 | s657992415 | s657992415 | p02397 | p02397 | u537646413 | u537646413 | 1,457,580,978 | 2016-03-10T03:36:18 | Main.java | import java.util.Scanner; // ?????¨?????????????????????
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in); // ??????????????????????????????.
// ?????????????????? int ?????¨??????????????\???????????????.
// ??????????????????????????? 0 ??... | Main.java:14: error: cannot find symbol
if (x > y) { System.out.printtln(y + " " + x); }
^
symbol: method printtln(String)
location: variable out of type PrintStream
Main.java:15: error: cannot find symbol
else { System.out.printtln(x + " " + y); }
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u537646413|p02397|0 | u537646413|p02397|0 | codenet | Compile Error | 603 | |
v2_s048145925 | s048145925 | s048145925 | p02397 | p02397 | u539056980 | u539056980 | 1,465,461,641 | 2016-06-09T08:40:41 | Kadai3_3.java | iimport java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Kadai3_3 Main{
public static void main(String[] args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
String[] s = str.split(" ");
... | Kadai3_3.java:1: error: class, interface, enum, or record expected
iimport java.io.BufferedReader;
^
Kadai3_3.java:2: error: class, interface, enum, or record expected
import java.io.IOException;
^
Kadai3_3.java:3: error: class, interface, enum, or record expected
import java.io.InputStreamReader;
^
Kadai3_3.java:5: er... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u539056980|p02397|0 | u539056980|p02397|0 | codenet | Compile Error | 562 | |
v2_s018329077 | s018329077 | s018329077 | p02397 | p02397 | u539056980 | u539056980 | 1,465,461,662 | 2016-06-09T08:41:02 | Kadai3_3.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Kadai3_3 Main{
public static void main(String[] args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
String[] s = str.split(" ");
... | Kadai3_3.java:5: error: '{' expected
public class Kadai3_3 Main{
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u539056980|p02397|0 | u539056980|p02397|0 | codenet | Compile Error | 561 | |
v2_s552460563 | s552460563 | s552460563 | p02397 | p02397 | u539186441 | u539186441 | 1,500,621,193 | 2017-07-21T07:13:13 | Main.java | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in)
while(true) {
int a = scan.nextInt();
int b = scan.nextInt();
if (a==0 && b==0) break;
System.out.println(b+" "+a);
}
}
} | Main.java:5: error: ';' expected
Scanner scan = new Scanner(System.in)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u539186441|p02397|0 | u539186441|p02397|0 | codenet | Compile Error | 315 | |
v2_s587081774 | s587081774 | s587081774 | p02397 | p02397 | u539186441 | u539186441 | 1,500,621,226 | 2017-07-21T07:13:46 | Main.java | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in)
while(true) {
int a = scan.nextInt();
int b = scan.nextInt();
if (a==0 && b==0) break;
System.out.println(b+" "+a);
}
}
} | Main.java:5: error: ';' expected
Scanner scan = new Scanner(System.in)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u539186441|p02397|0 | u539186441|p02397|0 | codenet | Compile Error | 315 | |
v2_s555034334 | s555034334 | s555034334 | p02397 | p02397 | u543473017 | u543473017 | 1,493,253,445 | 2017-04-27T00:37:25 | Main.java | import java.util.Scanner;
class C1_3{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int x,y;
while(true){
x = sc.nextInt();
y = sc.nextInt();
if(x == 0 && y == 0){
break;
}
if(x < y){}
System.out.println(x + " " + y);
}
... | Main.java:16: error: 'else' without 'if'
else{
^
Main.java:21: error: class, interface, enum, or record expected
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u543473017|p02397|1 | u543473017|p02397|1 | codenet | Compile Error | 390 | |
v2_s349116243 | s349116243 | s349116243 | p02397 | p02397 | u544040886 | u544040886 | 1,525,280,579 | 2018-05-02T17:02:59 | AOJ0103.java | import java.util.Scanner;
public class AOJ0103 {
public static void main(String[] args) {
int i,x,y;
Scanner sc = new Scanner(System.in);
for(i=1;;i++){
x=sc.nextInt();
x=sc.nextInt();
if(x==0&&y==0){
sc.clode();
break;
}
if(x<y){
System.out.println(x+' '+y);
}
else{
... | AOJ0103.java:12: error: cannot find symbol
sc.clode();
^
symbol: method clode()
location: variable sc of type Scanner
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u544040886|p02397|0 | u544040886|p02397|0 | codenet | Compile Error | 385 | |
v2_s738064074 | s738064074 | s738064074 | p02397 | p02397 | u544040886 | u544040886 | 1,525,280,592 | 2018-05-02T17:03:12 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int i,x,y;
Scanner sc = new Scanner(System.in);
for(i=1;;i++){
x=sc.nextInt();
x=sc.nextInt();
if(x==0&&y==0){
sc.clode();
break;
}
if(x<y){
System.out.println(x+' '+y);
}
else{
... | Main.java:12: error: cannot find symbol
sc.clode();
^
symbol: method clode()
location: variable sc of type Scanner
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u544040886|p02397|0 | u544040886|p02397|0 | codenet | Compile Error | 382 | |
v2_s599357623 | s599357623 | s599357623 | p02397 | p02397 | u544040886 | u544040886 | 1,525,280,607 | 2018-05-02T17:03:27 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int i,x,y;
Scanner sc = new Scanner(System.in);
for(i=1;;i++){
x=sc.nextInt();
x=sc.nextInt();
if(x==0&&y==0){
sc.close();
break;
}
if(x<y){
System.out.println(x+' '+y);
}
else{
... | Main.java:11: error: variable y might not have been initialized
if(x==0&&y==0){
^
Main.java:15: error: variable y might not have been initialized
if(x<y){
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u544040886|p02397|0 | u544040886|p02397|0 | codenet | Compile Error | 382 | |
v2_s391942601 | s391942601 | s391942601 | p02397 | p02397 | u544040886 | u544040886 | 1,525,280,630 | 2018-05-02T17:03:50 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int i,x,y;
Scanner sc = new Scanner(System.in);
for(i=1;;i++){
x=sc.nextInt();
x=sc.nextInt();
if(x == 0&&y == 0){
sc.close();
break;
}
if(x<y){
System.out.println(x+' '+y);
}
else{
... | Main.java:11: error: variable y might not have been initialized
if(x == 0&&y == 0){
^
Main.java:15: error: variable y might not have been initialized
if(x<y){
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u544040886|p02397|0 | u544040886|p02397|0 | codenet | Compile Error | 386 | |
v2_s639593167 | s639593167 | s639593167 | p02397 | p02397 | u544040886 | u544040886 | 1,525,280,649 | 2018-05-02T17:04:09 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int i,x,y;
Scanner sc = new Scanner(System.in);
for(i=1;;i++){
x=sc.nextInt();
x=sc.nextInt();
if(x == 0&&y == 0){
sc.close();
break;
}
if(x < y){
System.out.println(x+' '+y);
}
else... | Main.java:11: error: variable y might not have been initialized
if(x == 0&&y == 0){
^
Main.java:15: error: variable y might not have been initialized
if(x < y){
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u544040886|p02397|0 | u544040886|p02397|0 | codenet | Compile Error | 388 | |
v2_s299206044 | s299206044 | s299206044 | p02397 | p02397 | u594816808 | u594816808 | 1,525,827,196 | 2018-05-09T00:53:16 | Main.java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
do {
String str = sc.nextLine();
String[] strs = str.split(" ");
if (strs[0].equals("0") && strs[1].equals("0")) {
break;
}
int[] ints = new int[] {Integer.parseInt(strs[0]), Integer.parseInt(s... | 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
Main.java:16: error: cannot find symbol
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u594816808|p02397|1 | u594816808|p02397|1 | codenet | Compile Error | 449 | |
v2_s815692125 | s815692125 | s815692125 | p02397 | p02397 | u620468594 | u620468594 | 1,493,199,470 | 2017-04-26T09:37:50 | Main.java | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args){
Scanner scan = new Scanner(system.in);
for(int i = 1;i <= 10000;i++){
if(x == 0){
break;
}else {
System.out.println("case" + " " + i + " " + x);
}
}
}
} | Main.java:6: error: cannot find symbol
Scanner scan = new Scanner(system.in);
^
symbol: variable system
location: class Main
Main.java:9: error: cannot find symbol
if(x == 0){
^
symbol: variable x
location: class Main
Main.java:12: error: cannot find sym... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u620468594|p02397|0 | u620468594|p02397|0 | codenet | Compile Error | 301 | |
v2_s096315006 | s096315006 | s096315006 | p02397 | p02397 | u620468594 | u620468594 | 1,493,199,627 | 2017-04-26T09:40:27 | Main.java | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args){
Scanner scan = new Scanner(system.in);
int x = scan.nextInt();
for(int i = 1;i <= 10000;i++){
if(x == 0){
break;
}else {
System.out.println("case" + " " + i + ":" + " " + x);
... | Main.java:6: error: cannot find symbol
Scanner scan = new Scanner(system.in);
^
symbol: variable system
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u620468594|p02397|0 | u620468594|p02397|0 | codenet | Compile Error | 336 | |
v2_s647362751 | s647362751 | s647362751 | p02397 | p02397 | u620468594 | u620468594 | 1,493,200,438 | 2017-04-26T09:53:58 | Main.java | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
for(int i = 1;i <= 10000;i++){
if(x == 0){
break;
}else {
System.out.println("case" + " " + i + ":" + " " + x);
}
}
}
} | Main.java:10: error: cannot find symbol
if(x == 0){
^
symbol: variable x
location: class Main
Main.java:13: error: cannot find symbol
System.out.println("case" + " " + i + ":" + " " + x);
^
symbol: variable x
location: clas... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u620468594|p02397|0 | u620468594|p02397|0 | codenet | Compile Error | 320 | |
v2_s751716839 | s751716839 | s751716839 | p02397 | p02397 | u620468594 | u620468594 | 1,493,200,923 | 2017-04-26T10:02:03 | Main.java | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
for(int i = 1;;i++){
int x = scan.nextInt();
if(x == 0){
break;
}
System.out.println("case " + i + ... | Main.java:18: error: class, interface, enum, or record expected
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u620468594|p02397|0 | u620468594|p02397|0 | codenet | Compile Error | 367 | |
v2_s690920416 | s690920416 | s690920416 | p02397 | p02397 | u620468594 | u620468594 | 1,493,201,104 | 2017-04-26T10:05:04 | Main.java | 28 sec ??????42552 KB ??????13 lines ?????? 248 bytes ??????2017-03-25 10:56
?
1
2
3
4
5
6
7
8
9
10
11
12
import java.util.Scanner;
public class Main {
????????public static void main(String[] args){
????????????????Scanner in = new Scanner(System.in);
????????????????for(int i=1;;i++){
????????????????????????int num... | Main.java:1: error: class, interface, enum, or record expected
28 sec ??????42552 KB ??????13 lines ?????? 248 bytes ??????2017-03-25 10:56
^
Main.java:17: error: illegal start of type
????????public static void main(String[] args){
^
Main.java:18: error: illegal start of expression
????????????????Scanner in = new Sc... | compile_error | 4 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u620468594|p02397|0 | u620468594|p02397|0 | codenet | Compile Error | 502 | |
v2_s839148858 | s839148858 | s839148858 | p02397 | p02397 | u620468594 | u620468594 | 1,493,201,509 | 2017-04-26T10:11:49 | case.java | import java.io.*;
import java.util.*;
public class case {
public static void main(String[] args){
for(int i = 1;i <= 10000;i++){
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
if(x == 0){
break;
}
System.out.println("case " + ... | case.java:4: error: <identifier> expected
public class case {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u620468594|p02397|0 | u620468594|p02397|0 | codenet | Compile Error | 352 | |
v2_s953084196 | s953084196 | s953084196 | p02397 | p02397 | u620468594 | u620468594 | 1,493,201,579 | 2017-04-26T10:12:59 | case.java | import java.io.*;
import java.util.*;
public class case {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
for(int i = 1;i <= 10000;i++){
int x = scan.nextInt();
if(x == 0){
break;
}
System.out.println("case " + i +... | case.java:4: error: <identifier> expected
public class case {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u620468594|p02397|0 | u620468594|p02397|0 | codenet | Compile Error | 349 | |
v2_s870292025 | s870292025 | s870292025 | p02397 | p02397 | u620468594 | u620468594 | 1,493,201,680 | 2017-04-26T10:14:40 | Main.java | import java.util.Scanner;
??
class Main
{
????public static void main(String[] args) {
????????Scanner sc = new Scanner(System.in);
????????int x;
????????for(int i = 1 ; (x = sc.nextInt()) != 0 ; i++)
????????{
????????????System.out.println("Case "+ i +": "+ x);
????????}
????}
} | Main.java:2: error: class, interface, enum, or record expected
??
^
Main.java:5: error: illegal start of type
????public static void main(String[] args) {
^
Main.java:6: error: illegal start of expression
????????Scanner sc = new Scanner(System.in);
^
Main.java:6: error: illegal start of expression
????????Scanner sc =... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u620468594|p02397|0 | u620468594|p02397|0 | codenet | Compile Error | 282 | |
v2_s460465802 | s460465802 | s460465802 | p02397 | p02397 | u620468594 | u620468594 | 1,493,202,054 | 2017-04-26T10:20:54 | case.java | import java.io.*;
import java.util.*;
public class case {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
for(int i = 1;i <= 10000;i++){
int x = scan.nextInt();
if(x == 0){
break;
}
System.out.println("Case " + i +... | case.java:4: error: <identifier> expected
public class case {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u620468594|p02397|0 | u620468594|p02397|0 | codenet | Compile Error | 349 | |
v2_s509212532 | s509212532 | s509212532 | p02397 | p02397 | u636711749 | u636711749 | 1,460,351,038 | 2016-04-11T05:03:58 | Main.java | public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while (true) {
int x = scan.nextInt();
int y = scan.nextInt();
if (x == 0 && y == 0) {
break;
}
int xy = Math.multiplyExac... | Main.java:3: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: 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 | u636711749|p02397|0 | u636711749|p02397|0 | codenet | Compile Error | 415 | |
v2_s155262042 | s155262042 | s155262042 | p02397 | p02397 | u637673746 | u637673746 | 1,434,509,328 | 2015-06-17T02:48:48 | Main.java | import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = null;
StringBuider box = new StringBuider();
for (int i = 1; (str = br.readLine()) != null; i++) {
... | Main.java:7: error: cannot find symbol
StringBuider box = new StringBuider();
^
symbol: class StringBuider
location: class Main
Main.java:7: error: cannot find symbol
StringBuider box = new StringBuider();
^
symbol: class StringBuider
location: class Ma... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u637673746|p02397|0 | u637673746|p02397|0 | codenet | Compile Error | 395 | |
v2_s978376863 | s978376863 | s978376863 | p02397 | p02397 | u637673746 | u637673746 | 1,434,509,496 | 2015-06-17T02:51:36 | Main.java | import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = null;
StringBuilder box = new StringBuilder();
for (int i = 1; (str = br.readLine()) != null; i++) ... | Main.java:10: error: incompatible types: String cannot be converted to StringBuilder
box = str;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u637673746|p02397|0 | u637673746|p02397|0 | codenet | Compile Error | 397 | |
v2_s591533886 | s591533886 | s591533886 | p02397 | p02397 | u637673746 | u637673746 | 1,434,509,605 | 2015-06-17T02:53:25 | Main.java | import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = null;
StringBuilder[] box = new StringBuilder();
for (int i = 1; (str = br.readLine()) != null; i++... | Main.java:7: error: incompatible types: StringBuilder cannot be converted to StringBuilder[]
StringBuilder[] box = new StringBuilder();
^
Main.java:10: error: cannot find symbol
box.append(str);
^
symbol: method append(String)
location: variable b... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u637673746|p02397|0 | u637673746|p02397|0 | codenet | Compile Error | 410 | |
v2_s962666802 | s962666802 | s962666802 | p02397 | p02397 | u637673746 | u637673746 | 1,434,515,691 | 2015-06-17T04:34:51 | Main.java | import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = null;
StringBuilder sb = new StringBuilder();
for (int i = 1; (str = br.readLine()) != nul... | Main.java:14: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u637673746|p02397|0 | u637673746|p02397|0 | codenet | Compile Error | 442 | |
v2_s270271896 | s270271896 | s270271896 | p02397 | p02397 | u637673746 | u637673746 | 1,434,515,873 | 2015-06-17T04:37:53 | Main.java | import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = null;
StringBuilder sb = new StringBuilder();
for (int i = 1; (str = br.readLine()) != nul... | Main.java:16: error: cannot find symbol
ArrayList<String> array = new ArrayList<>(str);
^
symbol: class ArrayList
location: class Main
Main.java:16: error: cannot find symbol
ArrayList<String> array = new ArrayList<>(str);
^
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u637673746|p02397|0 | u637673746|p02397|0 | codenet | Compile Error | 526 | |
v2_s513812508 | s513812508 | s513812508 | p02397 | p02397 | u637673746 | u637673746 | 1,434,516,563 | 2015-06-17T04:49:23 | Main.java | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = null;
for (int i = 1; (str = br.readLine()) != null; i++)
{
i... | Main.java:13: error: cannot find symbol
int[] array = Integer.parseInt.split(str);
^
symbol: variable parseInt
location: class Integer
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u637673746|p02397|0 | u637673746|p02397|0 | codenet | Compile Error | 465 | |
v2_s323668359 | s323668359 | s323668359 | p02397 | p02397 | u637673746 | u637673746 | 1,434,516,609 | 2015-06-17T04:50:09 | Main.java | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = null;
for (int i = 1; (str = br.readLine()) != null; i++)
{
i... | Main.java:13: error: no suitable method found for split(no arguments)
String[ ] array = str.split();
^
method String.split(String,int) is not applicable
(actual and formal argument lists differ in length)
method String.split(String,int,boolean) is not applica... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u637673746|p02397|0 | u637673746|p02397|0 | codenet | Compile Error | 453 | |
v2_s233883983 | s233883983 | s233883983 | p02397 | p02397 | u637673746 | u637673746 | 1,434,518,254 | 2015-06-17T05:17:34 | Main.java | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = null;
for (int i = 1; (str = br.readLine()) != null; i++)
{
i... | Main.java:13: error: incompatible types: String[] cannot be converted to String
int[ ] array = Integer.parseInt(str.split("[ \n]"));
^
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 | u637673746|p02397|0 | u637673746|p02397|0 | codenet | Compile Error | 475 | |
v2_s323782626 | s323782626 | s323782626 | p02397 | p02397 | u637673746 | u637673746 | 1,434,518,472 | 2015-06-17T05:21:12 | Main.java | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = null;
for (int i = 1; (str = br.readLine()) != null; i++){
if (str.equals... | Main.java:14: error: incompatible types: void cannot be converted to String[]
array = Arrays.sort(array);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u637673746|p02397|0 | u637673746|p02397|0 | codenet | Compile Error | 504 | |
v2_s922526729 | s922526729 | s922526729 | p02397 | p02397 | u637673746 | u637673746 | 1,434,518,554 | 2015-06-17T05:22:34 | Main.java | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = null;
for (int i = 1; (str = br.readLine()) != null; i++){
if (str.equals... | Main.java:15: error: ';' expected
System.out.println(array)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u637673746|p02397|0 | u637673746|p02397|0 | codenet | Compile Error | 533 | |
v2_s150284022 | s150284022 | s150284022 | p02397 | p02397 | u655123631 | u655123631 | 1,394,113,803 | 2014-03-06T13:50:03 | Main.java | public class Main {
public static void main(String... args) {
final Scanner scanner = new Scanner(System.in);
String str;
while (!(str = scanner.nextLine()).equals("0 0")) {
final int x = Integer.parseInt(str.split(" ")[0]);
final int y = Integer.parseInt(str.split(" ... | Main.java:3: error: cannot find symbol
final Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
final Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u655123631|p02397|0 | u655123631|p02397|0 | codenet | Compile Error | 412 | |
v2_s214181539 | s214181539 | s214181539 | p02397 | p02397 | u655123631 | u655123631 | 1,394,116,542 | 2014-03-06T14:35:42 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* @author penguin_410
* Date: 2014/03/06
*/
public class Main {
public static void main(String... args) throws IOException {
final BufferedReader br = new BufferedReader(new InputStreamReader(System... | Main.java:16: error: ';' expected
final int x = Integer.parseInt(line.substring(0, index)));
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u655123631|p02397|0 | u655123631|p02397|0 | codenet | Compile Error | 814 | |
v2_s047391343 | s047391343 | s047391343 | p02397 | p02397 | u655123631 | u655123631 | 1,394,116,666 | 2014-03-06T14:37:46 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* @author penguin_410
* Date: 2014/03/06
*/
public class Main {
public static void main(String... args) throws IOException {
final BufferedReader br = new BufferedReader(new InputStreamReader(Syste... | Main.java:16: error: ';' expected
final int x = Integer.parseInt(line.substring(0, index)));
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u655123631|p02397|0 | u655123631|p02397|0 | codenet | Compile Error | 800 | |
v2_s639514873 | s639514873 | s639514873 | p02397 | p02397 | u657110117 | u657110117 | 1,452,660,466 | 2016-01-13T04:47:46 | Main.java | import java.util.*;
class Main
{
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
String input=sc.nextLine();
String[] inputArray =input.split(" ");
int x = Integer.parseInt(inputArray[0]);
int y = Integer.parseInt(inputArray[1]);
if(x>y)
{
int t=x;
... | Main.java:31: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u657110117|p02397|2 | u657110117|p02397|2 | codenet | Compile Error | 450 | |
v2_s105544032 | s105544032 | s105544032 | p02397 | p02397 | u695952004 | u695952004 | 1,445,368,672 | 2015-10-20T19:17:52 | Main.java | mport java.util.Scanner;
public class Main {
public static Scanner scanner = new Scanner(System.in);
public static void main(String[] args) {
StringBuilder output = new StringBuilder();
while (true) {
int number1 = input();
int number2 = input();
if (number1 < number2) {
output.append(number1... | Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u695952004|p02397|0 | u695952004|p02397|0 | codenet | Compile Error | 863 | |
v2_s023333354 | s023333354 | s023333354 | p02397 | p02397 | u706566315 | u706566315 | 1,471,492,865 | 2016-08-18T04:01:05 | Swap.java | import java.io.*;
public class Swap {
public static void main(String[] args){
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try{
String line = reader.readLine();
String[] num = line.split(" ", -1);
int x = Integer.parseInt(num[0]);
int y = Integer.parse... | Swap.java:10: error: illegal start of expression
while() {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u706566315|p02397|0 | u706566315|p02397|0 | codenet | Compile Error | 760 | |
v2_s630288167 | s630288167 | s630288167 | p02397 | p02397 | u710383977 | u710383977 | 1,419,209,026 | 2014-12-22T00:43:46 | Main.java | break;
list.add(new Swap(x,y));
}
scan.close();
for(Swap s : list){
s.smaller();
System.out.println(s);
}
}
}
class Swap{
int a;
int b;
public Swap(int x, int y){
a = x;
b = y;
}
public void smaller(){
if(a < b)
return;
int tmp = a;
a=b;
b=tmp;
}
@Override
public S... | Main.java:1: error: class, interface, enum, or record expected
break;
^
Main.java:2: error: class, interface, enum, or record expected
list.add(new Swap(x,y));
^
Main.java:3: error: class, interface, enum, or record expected
}
^
Main.java:5: error: class, interface, enum, or record expected
for(Swap... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u710383977|p02397|0 | u710383977|p02397|0 | codenet | Compile Error | 365 | |
v2_s707046590 | s707046590 | s707046590 | p02397 | p02397 | u733869787 | u733869787 | 1,409,661,376 | 2014-09-02T12:36:16 | Main.java | public class Main {
private void calc(){
Scanner scanner = new Scanner(System.in);
short i=1;
while(true){
int x=scanner.nextInt();
int y=scanner.nextInt();
int temp;
if(x==0 && y==0)break;
if(y<x){
temp=x;
x=y;
y=temp;
}
System.out.print(x+" ");
System.out.println(y);... | 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 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u733869787|p02397|0 | u733869787|p02397|0 | codenet | Compile Error | 430 | |
v2_s524454219 | s524454219 | s524454219 | p02397 | p02397 | u745846646 | u745846646 | 1,460,366,166 | 2016-04-11T09:16:06 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
StringBuilder builder = new StringBuilder();
while(true) {
String da... | Main.java:20: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u745846646|p02397|0 | u745846646|p02397|0 | codenet | Compile Error | 642 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.