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_s921236871 | s921236871 | s921236871 | p02396 | p02396 | u661192983 | u661192983 | 1,493,084,975 | 2017-04-25T01:49:35 | Main.java | public class Main{
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
List<String> list = new ArrayList<String>();
for (int i = 0; i < 10000; i++) {
String line = sc.nextLine();
if (line.equals("0")) {
break;
}
l... | Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:7: error: cannot find symbol
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u661192983|p02396|0 | u661192983|p02396|0 | codenet | Compile Error | 480 | |
v2_s387999390 | s387999390 | s387999390 | p02396 | p02396 | u667765417 | u667765417 | 1,434,523,424 | 2015-06-17T06:43:44 | Main.java | public class Main {
public static void main (String[] args){
int i=1;
int a=1;
while(a != 0){
Scanner in = new Scanner(System.in);
a = in.nextInt();
System.out.println("Case "+i+": "+a);
i++;
}
}
} | Main.java:6: error: cannot find symbol
Scanner in = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:6: error: cannot find symbol
Scanner in = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u667765417|p02396|0 | u667765417|p02396|0 | codenet | Compile Error | 219 | |
v2_s621733092 | s621733092 | s621733092 | p02396 | p02396 | u676874280 | u676874280 | 1,527,656,702 | 2018-05-30T05:05:02 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) {
int count = 0;
while(true) {
count++;
int a = sc.nextInt();
if(a == 0) {
break;
} else {
System.out.println("case " + count + ": " + a);
}
}
}
}
| Main.java:8: error: cannot find symbol
int a = sc.nextInt();
^
symbol: variable sc
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u676874280|p02396|0 | u676874280|p02396|0 | codenet | Compile Error | 290 | |
v2_s791838447 | s791838447 | s791838447 | p02396 | p02396 | u699160354 | u699160354 | 1,512,668,812 | 2017-12-07T17:46:52 | Main.java | import java.util.*;
class main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
List<String> srt= new ArrayList<String>();
while(sc.hasNextLine()){
str.add(sc.nextLine());
}
for(int i=0; i<str.size();i++){
if(Integer.parseInt(str.get(i))==0){
break;
}
System.out.... | Main.java:8: error: cannot find symbol
str.add(sc.nextLine());
^
symbol: variable str
location: class main
Main.java:10: error: cannot find symbol
for(int i=0; i<str.size();i++){
^
symbol: variable str
location: class main
Main.java:11: error: cannot find symbol
if(Integer.parseI... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02396|0 | u699160354|p02396|0 | codenet | Compile Error | 368 | |
v2_s901219430 | s901219430 | s901219430 | p02396 | p02396 | u699160354 | u699160354 | 1,512,671,190 | 2017-12-07T18:26:30 | Main.java | import java.util.*;
class main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
while(sc.hasNextLine()){
String str = sc.nextLine();
if(!(str.equals("0"))){
System.out.println("Case "+(i+1)+": "+str.get(i));
}
}
}
} | Main.java:9: error: cannot find symbol
System.out.println("Case "+(i+1)+": "+str.get(i));
^
symbol: variable i
location: class main
Main.java:9: error: cannot find symbol
System.out.println("Case "+(i+1)+": "+str.get(i));
^
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02396|0 | u699160354|p02396|0 | codenet | Compile Error | 266 | |
v2_s318862662 | s318862662 | s318862662 | p02396 | p02396 | u699160354 | u699160354 | 1,512,671,241 | 2017-12-07T18:27:21 | Main.java | import java.util.*;
class main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
while(sc.hasNextLine()){
String str = sc.nextLine();
if(!(str.equals("0"))){
System.out.println("Case "+(i+1)+": "+str);
}
}
}
} | Main.java:9: error: cannot find symbol
System.out.println("Case "+(i+1)+": "+str);
^
symbol: variable i
location: class main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02396|0 | u699160354|p02396|0 | codenet | Compile Error | 259 | |
v2_s170373791 | s170373791 | s170373791 | p02396 | p02396 | u706566315 | u706566315 | 1,469,855,614 | 2016-07-30T05:13:34 | Main.java | File Edit Options Buffers Tools Java Help
import java.io.*;
public class Main {
public static void main(String[] args) {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try {
for (int i = 1; ; i+... | Main.java:1: error: class, interface, enum, or record expected
File Edit Options Buffers Tools Java Help
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u706566315|p02396|0 | u706566315|p02396|0 | codenet | Compile Error | 814 | |
v2_s146469842 | s146469842 | s146469842 | p02396 | p02396 | u712113958 | u712113958 | 1,555,856,642 | 2019-04-21T14:24:02 | Main.java | public class Main{
public static void main(String[] args) {
for (int i=0; i<1000; ++i) {
System out println ("Hello World");
}
}
}
| Main.java:4: error: ';' expected
System out println ("Hello World");
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u712113958|p02396|0 | u712113958|p02396|0 | codenet | Compile Error | 168 | |
v2_s950540263 | s950540263 | s950540263 | p02396 | p02396 | u712472338 | u712472338 | 1,525,227,529 | 2018-05-02T02:18:49 | Main.java | public static void main(String[] args) {
java.util.Scanner sc = new java.util.Scanner(System.in);
int x;
for (int i = 1; i <= 10000; i++) {
x = sc.nextInt();
if (x == 0) {
break;
}
System.out.println("Case " + i + ": " + x);
}
}
}
| Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
Main.java:16: error: class, interface, enum, or record expected
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u712472338|p02396|0 | u712472338|p02396|0 | codenet | Compile Error | 261 | |
v2_s833574412 | s833574412 | s833574412 | p02396 | p02396 | u712472338 | u712472338 | 1,525,227,739 | 2018-05-02T02:22:19 | Main.java | public static void main(String[] args) {
java.util.Scanner sc = new java.util.Scanner(System.in);
int x;
for (int i = 1; i <= 10000; i++) {
x = sc.nextInt();
if (x == 0) {
break;
}
System.out.println("Case " + i + ": " + x);
}
}
| Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u712472338|p02396|0 | u712472338|p02396|0 | codenet | Compile Error | 258 | |
v2_s483579493 | s483579493 | s483579493 | p02396 | p02396 | u712472338 | u712472338 | 1,525,227,978 | 2018-05-02T02:26:18 | Main.java | public static void main(String[] args) {
java.util.Scanner sc = new java.util.Scanner(System.in);
int x;
for (int i = 1; i <= 10000; i++) {
x = sc.nextInt();
if (x == 0) {
break;
}
System.out.println("Case " + i + ": " + x);
}
sc.close();
}
| Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u712472338|p02396|0 | u712472338|p02396|0 | codenet | Compile Error | 272 | |
v2_s766664003 | s766664003 | s766664003 | p02396 | p02396 | u712472338 | u712472338 | 1,525,228,034 | 2018-05-02T02:27:14 | Main.java | public static void main() {
java.util.Scanner sc = new java.util.Scanner(System.in);
int x;
for (int i = 1; i <= 10000; i++) {
x = sc.nextInt();
if (x == 0) {
break;
}
System.out.println("Case " + i + ": " + x);
}
sc.close();
}
| Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main() {
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u712472338|p02396|0 | u712472338|p02396|0 | codenet | Compile Error | 258 | |
v2_s447909593 | s447909593 | s447909593 | p02396 | p02396 | u712472338 | u712472338 | 1,525,228,097 | 2018-05-02T02:28:17 | Main.java | public static void main() {
java.util.Scanner sc = new java.util.Scanner(System.in);
int x;
for (int i = 1; i <= 10000; i++) {
x = sc.nextInt();
if (x == 0) {
break;
}
System.out.println("Case " + i + ": " + x);
}
sc.close();
}
| Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main() {
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u712472338|p02396|0 | u712472338|p02396|0 | codenet | Compile Error | 258 | |
v2_s026972278 | s026972278 | s026972278 | p02396 | p02396 | u712472338 | u712472338 | 1,525,228,318 | 2018-05-02T02:31:58 | Main.java | public static void main() {
java.util.Scanner sc = new java.util.Scanner(System.in);
int x;
for (int i = 1; i <= 10000; i++) {
x = sc.nextInt();
if (x == 0) {
break;
}
System.out.println("Case " + i + ": " + x);
}
sc.close();
}
| Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main() {
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u712472338|p02396|0 | u712472338|p02396|0 | codenet | Compile Error | 256 | |
v2_s068698428 | s068698428 | s068698428 | p02396 | p02396 | u722076734 | u722076734 | 1,439,132,050 | 2015-08-09T14:54:10 | Main.java | import java.util.Scanner;
class Main {
Scanner sc = new Scanner(System.in);
int i = 1;
while(true) {
int x = sc.nextInt();
if(x == 0) break;
System.out.println("Case " + (i++) + " " + x);
}
}
} | Main.java:5: error: illegal start of type
while(true) {
^
Main.java:11: error: class, interface, enum, or record expected
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u722076734|p02396|1 | u722076734|p02396|1 | codenet | Compile Error | 196 | |
v2_s223731044 | s223731044 | s223731044 | p02396 | p02396 | u733869787 | u733869787 | 1,409,659,898 | 2014-09-02T12:11:38 | Main.java | import java.util.Scanner;
public class Main {
private void calc(){
Scanner scanner = new Scanner(System.in);
while(true){
int x=scanner.nextInt();
int i=1;
if(x==0){
break;
}
System.out.println("Case "+i+": "+x);
i++;
}
}
public static void main(String[] args) {
MAin run =n... | Main.java:21: error: cannot find symbol
MAin run =new Main();
^
symbol: class MAin
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u733869787|p02396|0 | u733869787|p02396|0 | codenet | Compile Error | 350 | |
v2_s718112518 | s718112518 | s718112518 | p02396 | p02396 | u745846646 | u745846646 | 1,460,427,027 | 2016-04-12T02:10:27 | 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 reader = new BufferedReader(new InputStreamReader(System.in));
StringBuilder builder = new StringBuilder();
... | Main.java:17: error: cannot find symbol
print(builder);
^
symbol: method print(StringBuilder)
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u745846646|p02396|0 | u745846646|p02396|0 | codenet | Compile Error | 657 | |
v2_s510477716 | s510477716 | s510477716 | p02396 | p02396 | u745846646 | u745846646 | 1,460,427,034 | 2016-04-12T02:10:34 | 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 reader = new BufferedReader(new InputStreamReader(System.in));
StringBuilder builder = new StringBuilder();
... | Main.java:17: error: cannot find symbol
println(builder);
^
symbol: method println(StringBuilder)
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u745846646|p02396|0 | u745846646|p02396|0 | codenet | Compile Error | 659 | |
v2_s378929360 | s378929360 | s378929360 | p02396 | p02396 | u751448919 | u751448919 | 1,463,371,484 | 2016-05-16T04:04:44 | Main.java | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
while true {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String inputed = new String(in.readLine());
String value[] = inputed.split("[\\s]+");
//int intInputed = Integer.parseInt(... | Main.java:5: error: '(' expected
while true {
^
Main.java:5: error: ')' expected
while true {
^
Main.java:14: error: '(' expected
if intValue == 0 { break; }
^
Main.java:14: error: ')' expected
if intValue == 0 { break; }
^
Main.java:16: error: ';' expected
System.out.... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u751448919|p02396|0 | u751448919|p02396|0 | codenet | Compile Error | 471 | |
v2_s773613163 | s773613163 | s773613163 | p02396 | p02396 | u751448919 | u751448919 | 1,463,374,285 | 2016-05-16T04:51:25 | Main.java | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String inputed = new String();
while (in.hasNext()) {
String buf = in.nextLine();
int i = 0;
if (intValue == 0) { break; }
System.out.println("case " + (i + 1) ... | Main.java:14: error: cannot find symbol
if (intValue == 0) { break; }
^
symbol: variable intValue
location: class Main
Main.java:16: error: cannot find symbol
System.out.println("case " + (i + 1) + ": " + intValue);
^
symbol: variable intValue
lo... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u751448919|p02396|0 | u751448919|p02396|0 | codenet | Compile Error | 654 | |
v2_s183550019 | s183550019 | s183550019 | p02396 | p02396 | u751448919 | u751448919 | 1,463,375,796 | 2016-05-16T05:16:36 | Main.java | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while (true) {
String inputed = in.nextLine();
int intInputed = Integer.parseInt(inputed);
int i = 0;
int intValue = Integer.parseInt(value[i]);
if (intValue =... | Main.java:14: error: cannot find symbol
int intValue = Integer.parseInt(value[i]);
^
symbol: variable value
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u751448919|p02396|0 | u751448919|p02396|0 | codenet | Compile Error | 416 | |
v2_s870180646 | s870180646 | s870180646 | p02396 | p02396 | u752279003 | u752279003 | 1,404,116,952 | 2014-06-30T08:29:12 | Main.java | public class Main {
public static void main(String[] args) throws IOException
{
int x = -1;
int a[] = new int[10000];
String s;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int i = 0;
while(x != 0) {
s = br.readLine();
x = Integer.parseInt(s);
a[i] = x;
i++;
}
... | Main.java:2: error: cannot find symbol
public static void main(String[] args) throws IOException
^
symbol: class IOException
location: class Main
Main.java:7: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u752279003|p02396|1 | u752279003|p02396|1 | codenet | Compile Error | 408 | |
v2_s763932639 | s763932639 | s763932639 | p02396 | p02396 | u755916408 | u755916408 | 1,460,942,409 | 2016-04-18T01:20:09 | Main.java |
class Main{
public static void main(String[] args){
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in)); //?¨??????\???
String str = br.readLine();
int count = 1;
while(!str.equals("0")){ //???????????°
System.out.println("Case" + count + ":" + str); //"Case ????????\?????°???"... | Main.java:4: error: cannot find symbol
BufferedReader br =
^
symbol: class BufferedReader
location: class Main
Main.java:5: error: cannot find symbol
new BufferedReader(new InputStreamReader(System.in)); //????????\???
^
symbol: class BufferedReader
location: class Main
Main.java:5: error: c... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u755916408|p02396|0 | u755916408|p02396|0 | codenet | Compile Error | 397 | |
v2_s772216179 | s772216179 | s772216179 | p02396 | p02396 | u768361792 | u768361792 | 1,461,130,410 | 2016-04-20T05:33:30 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
int i;
for(i=0;i<1000;i++){
int x = sc.nextInt();
if(x=0){break;}
System.out.println("Case "+ x + ": "+x);
}
}
} | Main.java:10: error: incompatible types: int cannot be converted to boolean
if(x=0){break;}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u768361792|p02396|0 | u768361792|p02396|0 | codenet | Compile Error | 240 | |
v2_s018668730 | s018668730 | s018668730 | p02396 | p02396 | u771424992 | u771424992 | 1,405,849,518 | 2014-07-20T09:45:18 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int i = 1;
while(1){
int X = sc.nextInt();
if(X == 0)
break;
System.out.println("Case " + i +": "+ X);
i++;
}
sc.close();
}
} | Main.java:8: error: incompatible types: int cannot be converted to boolean
while(1){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u771424992|p02396|0 | u771424992|p02396|0 | codenet | Compile Error | 277 | |
v2_s603324686 | s603324686 | s603324686 | p02396 | p02396 | u775942576 | u775942576 | 1,459,155,216 | 2016-03-28T08:53:36 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] a) throws IOException{
int c, no=0;
Scanner in = new Scanner(System.in);
while (true){
c = in.nextInt();
if(c == 0) break;
no++;
System.out.println("Case " + no + ": " + c);
}
}
} | Main.java:4: error: cannot find symbol
public static void main(String[] a) throws IOException{
^
symbol: class IOException
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u775942576|p02396|0 | u775942576|p02396|0 | codenet | Compile Error | 310 | |
v2_s356516278 | s356516278 | s356516278 | p02396 | p02396 | u777338381 | u777338381 | 1,494,127,197 | 2017-05-07T03:19:57 | Main.java | import static java.lang.System.out;
import java.io.File;
import java.util.Scanner;
public class Main extends BaseExe {
public static void main(String[] args) {
new Main().exeSysIn();
}
@Override
protected void execute() throws Exception {
String data;
for (int count = 1; count... | Main.java:66: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u777338381|p02396|1 | u777338381|p02396|1 | codenet | Compile Error | 1,509 | |
v2_s831383884 | s831383884 | s831383884 | p02396 | p02396 | u779656282 | u779656282 | 1,525,355,774 | 2018-05-03T13:56:14 | Main.java | import java.util.Scaner;
public class Main{
public static void main(String[] args){
int ans[] = new int[10000];
int n = 0;
Scanner sc = new Scanner(System.in)
while(1){
ans[n] = sc.nextInt();
if(ans[n]==0)break;
n++;
}
for(int i = 0... | Main.java:6: error: ';' expected
Scanner sc = new Scanner(System.in)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u779656282|p02396|0 | u779656282|p02396|0 | codenet | Compile Error | 407 | |
v2_s983546810 | s983546810 | s983546810 | p02396 | p02396 | u779656282 | u779656282 | 1,525,355,786 | 2018-05-03T13:56:26 | Main.java | import java.util.Scaner;
public class Main{
public static void main(String[] args){
int ans[] = new int[10000];
int n = 0;
Scanner sc = new Scanner(System.in);
while(1){
ans[n] = sc.nextInt();
if(ans[n]==0)break;
n++;
}
for(int i = ... | Main.java:1: error: cannot find symbol
import java.util.Scaner;
^
symbol: class Scaner
location: package java.util
Main.java:6: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:6: error: cannot find symbol
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u779656282|p02396|0 | u779656282|p02396|0 | codenet | Compile Error | 408 | |
v2_s800517349 | s800517349 | s800517349 | p02396 | p02396 | u779656282 | u779656282 | 1,525,355,801 | 2018-05-03T13:56:41 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
int ans[] = new int[10000];
int n = 0;
Scanner sc = new Scanner(System.in);
while(1){
ans[n] = sc.nextInt();
if(ans[n]==0)break;
n++;
}
for(int i =... | Main.java:7: error: incompatible types: int cannot be converted to boolean
while(1){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u779656282|p02396|0 | u779656282|p02396|0 | codenet | Compile Error | 409 | |
v2_s887960966 | s887960966 | s887960966 | p02396 | p02396 | u782440722 | u782440722 | 1,467,792,433 | 2016-07-06T08:07:13 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int[] a = new int[10000]
for(int i = 0 ; i<10000 ; i++){
a[i]=scan.nextInt();
if(a[i]=0) break;
}
for(int i = 0 ; i<10000 ; i++){
System.out.println("case "+(i+... | Main.java:6: error: ';' expected
int[] a = new int[10000]
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u782440722|p02396|0 | u782440722|p02396|0 | codenet | Compile Error | 365 | |
v2_s261886325 | s261886325 | s261886325 | p02396 | p02396 | u782440722 | u782440722 | 1,467,792,455 | 2016-07-06T08:07:35 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int[] a = new int[10000];
for(int i = 0 ; i<10000 ; i++){
a[i]=scan.nextInt();
if(a[i]=0) break;
}
for(int i = 0 ; i<10000 ; i++){
System.out.println("case "+(i... | Main.java:9: error: incompatible types: int cannot be converted to boolean
if(a[i]=0) break;
^
Main.java:14: error: incompatible types: int cannot be converted to boolean
if(a[i]=0) break;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u782440722|p02396|0 | u782440722|p02396|0 | codenet | Compile Error | 366 | |
v2_s234359548 | s234359548 | s234359548 | p02396 | p02396 | u787849418 | u787849418 | 1,452,226,594 | 2016-01-08T04:16:34 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner scan = new Scanner(System.in);
for (i=1; i>0; i++) {
int x = scan.nextInt();
if(x == 0) {
break;
}
else{
System.out.println("Case " + i +... | Main.java:11: error: cannot find symbol
for (i=1; i>0; i++) {
^
symbol: variable i
location: class Main
Main.java:11: error: cannot find symbol
for (i=1; i>0; i++) {
^
symbol: variable i
location: class Main
Main.java:11: error: cannot find symbol
for (i=1; i>0; i++) {
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u787849418|p02396|0 | u787849418|p02396|0 | codenet | Compile Error | 346 | |
v2_s994222864 | s994222864 | s994222864 | p02396 | p02396 | u788161760 | u788161760 | 1,527,247,314 | 2018-05-25T11:21:54 | Main.java | import java.util.*;
class Main(
public static void main(String args[]){
Sannner a = new Scanner(System.in);
int b;
int c=0;
do{
b = a.nextInt();
c++;
if(b!=0){
System.out.println("Case "+c+": "+b);
}
}w... | Main.java:3: error: '{' expected
class Main(
^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String args[]){
^
(use --enable-preview to enable unnamed classes)
Main.java:17: error: class, interface, enum, or record expect... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u788161760|p02396|0 | u788161760|p02396|0 | codenet | Compile Error | 341 | |
v2_s639454471 | s639454471 | s639454471 | p02396 | p02396 | u788161760 | u788161760 | 1,527,247,330 | 2018-05-25T11:22:10 | Main.java | import java.util.*;
class Main{
public static void main(String args[]){
Sannner a = new Scanner(System.in);
int b;
int c=0;
do{
b = a.nextInt();
c++;
if(b!=0){
System.out.println("Case "+c+": "+b);
}
}w... | Main.java:5: error: cannot find symbol
Sannner a = new Scanner(System.in);
^
symbol: class Sannner
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u788161760|p02396|0 | u788161760|p02396|0 | codenet | Compile Error | 341 | |
v2_s212820627 | s212820627 | s212820627 | p02396 | p02396 | u798339835 | u798339835 | 1,494,998,165 | 2017-05-17T05:16:05 | Main.java | import java.io.*;
import java.util.Arrays;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String input;
int count = 1;
while ((input = br.readLine()) != 0) {
System.out.println("Case " + ... | Main.java:9: error: bad operand types for binary operator '!='
while ((input = br.readLine()) != 0) {
^
first type: String
second type: int
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u798339835|p02396|1 | u798339835|p02396|1 | codenet | Compile Error | 354 | |
v2_s326738313 | s326738313 | s326738313 | p02396 | p02396 | u823513038 | u823513038 | 1,460,282,477 | 2016-04-10T10:01:17 | Main.java | import java.util.*;
class Main {
public static void main (String[] args) throws java.lang.Exception {
Scanner sc = new Scanner(System.in);
int a, c;
while(true) {
a = sc.nextInt();
if(a == 0) break;
System.out.println("Case " + (++c) + ": " + a);
}
}
} | Main.java:9: error: variable c might not have been initialized
System.out.println("Case " + (++c) + ": " + a);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u823513038|p02396|0 | u823513038|p02396|0 | codenet | Compile Error | 271 | |
v2_s795914955 | s795914955 | s795914955 | p02396 | p02396 | u834356976 | u834356976 | 1,525,685,199 | 2018-05-07T09:26:39 | Main.java |
import java.util.Scanner;
class Main{
public static void main(String [] args);
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
if(a != 0){
System.out.println("Case 1: " + a);
}else{
}
| Main.java:13: error: illegal start of type
if(a != 0){
^
Main.java:13: error: <identifier> expected
if(a != 0){
^
Main.java:15: error: illegal start of type
}else{
^
Main.java:16: error: reached end of file while parsing
}
^
4 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u834356976|p02396|0 | u834356976|p02396|0 | codenet | Compile Error | 208 | |
v2_s813525628 | s813525628 | s813525628 | p02396 | p02396 | u834356976 | u834356976 | 1,525,685,218 | 2018-05-07T09:26:58 | Main.java |
import java.util.Scanner;
class Main{
public static void main(String [] args);
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
if(a != 0){
System.out.println("Case 1: " + a);
}else{
}
}
}
| Main.java:13: error: illegal start of type
if(a != 0){
^
Main.java:13: error: <identifier> expected
if(a != 0){
^
Main.java:15: error: illegal start of type
}else{
^
Main.java:19: error: class, interface, enum, or record expected
}
^
4 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u834356976|p02396|0 | u834356976|p02396|0 | codenet | Compile Error | 212 | |
v2_s702162860 | s702162860 | s702162860 | p02396 | p02396 | u834356976 | u834356976 | 1,525,685,598 | 2018-05-07T09:33:18 | Main.java |
import java.util.Scanner;
class Main{
public static void main(String [] args);
Scanner sc = new Scanner(System.in);
int i = 1;
while(true){
int x = sc.nextInt();
if(x != 0){
System.out.println("Case " + "i" + ": " + x);
}else{
break;
}
}
}
}
| Main.java:13: error: illegal start of type
while(true){
^
Main.java:30: error: class, interface, enum, or record expected
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u834356976|p02396|0 | u834356976|p02396|0 | codenet | Compile Error | 286 | |
v2_s244564114 | s244564114 | s244564114 | p02396 | p02396 | u834356976 | u834356976 | 1,525,685,627 | 2018-05-07T09:33:47 | Main.java |
import java.util.Scanner;
class Main{
public static void main(String [] args);
Scanner sc = new Scanner(System.in);
int i = 1;
while(true){
int x = sc.nextInt();
if(x != 0){
System.out.println("Case " + "i" + ": " + x);
}else{
break;
}
i++
}
}
}
| Main.java:13: error: illegal start of type
while(true){
^
Main.java:24: error: ';' expected
i++
^
Main.java:35: error: class, interface, enum, or record expected
}
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u834356976|p02396|0 | u834356976|p02396|0 | codenet | Compile Error | 298 | |
v2_s058668618 | s058668618 | s058668618 | p02396 | p02396 | u834356976 | u834356976 | 1,525,685,650 | 2018-05-07T09:34:10 | Main.java |
import java.util.Scanner;
class Main{
public static void main(String [] args);
Scanner sc = new Scanner(System.in);
int i = 1;
while(true){
int x = sc.nextInt();
if(x != 0){
System.out.println("Case " + i + ": " + x);
}else{
break;
}
i++
}
}
}
| Main.java:13: error: illegal start of type
while(true){
^
Main.java:24: error: ';' expected
i++
^
Main.java:35: error: class, interface, enum, or record expected
}
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u834356976|p02396|0 | u834356976|p02396|0 | codenet | Compile Error | 296 | |
v2_s974972083 | s974972083 | s974972083 | p02396 | p02396 | u834356976 | u834356976 | 1,525,685,671 | 2018-05-07T09:34:31 | Main.java |
import java.util.Scanner;
class Main{
public static void main(String [] args);
Scanner sc = new Scanner(System.in);
int i = 1;
while(1){
int x = sc.nextInt();
if(x != 0){
System.out.println("Case " + i + ": " + x);
}else{
break;
}
i++
}
}
}
| Main.java:13: error: illegal start of type
while(1){
^
Main.java:24: error: ';' expected
i++
^
Main.java:35: error: class, interface, enum, or record expected
}
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u834356976|p02396|0 | u834356976|p02396|0 | codenet | Compile Error | 293 | |
v2_s651037948 | s651037948 | s651037948 | p02396 | p02396 | u834356976 | u834356976 | 1,525,685,769 | 2018-05-07T09:36:09 | Main.java |
import java.util.Scanner;
class Main{
public static void main(String [] args);
Scanner sc = new Scanner(System.in);
int i = 1;
one:while(1){
int x = sc.nextInt();
if(x != 0){
System.out.println("Case " + i + ": " + x);
}else{
break;
}
i++
}
}
}
| Main.java:13: error: <identifier> expected
one:while(1){
^
Main.java:24: error: ';' expected
i++
^
Main.java:35: error: class, interface, enum, or record expected
}
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u834356976|p02396|0 | u834356976|p02396|0 | codenet | Compile Error | 297 | |
v2_s463762256 | s463762256 | s463762256 | p02396 | p02396 | u834356976 | u834356976 | 1,525,685,802 | 2018-05-07T09:36:42 | Main.java |
import java.util.Scanner;
class Main{
public static void main(String [] args);
Scanner sc = new Scanner(System.in);
int i = 1;
while(1){
int x = sc.nextInt();
if(x != 0){
System.out.println("Case " + i + ": " + x);
}else{
break;
}
i++
}
}
}
| Main.java:13: error: illegal start of type
while(1){
^
Main.java:24: error: ';' expected
i++
^
Main.java:35: error: class, interface, enum, or record expected
}
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u834356976|p02396|0 | u834356976|p02396|0 | codenet | Compile Error | 293 | |
v2_s907990010 | s907990010 | s907990010 | p02396 | p02396 | u834356976 | u834356976 | 1,525,685,817 | 2018-05-07T09:36:57 | Main.java |
import java.util.Scanner;
class Main{
public static void main(String [] args);
Scanner sc = new Scanner(System.in);
int i = 1;
for(){
int x = sc.nextInt();
if(x != 0){
System.out.println("Case " + i + ": " + x);
}else{
break;
}
i++
}
}
}
| Main.java:13: error: illegal start of type
for(){
^
Main.java:24: error: ';' expected
i++
^
Main.java:35: error: class, interface, enum, or record expected
}
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u834356976|p02396|0 | u834356976|p02396|0 | codenet | Compile Error | 290 | |
v2_s039634296 | s039634296 | s039634296 | p02396 | p02396 | u834356976 | u834356976 | 1,525,685,853 | 2018-05-07T09:37:33 | Main.java |
import java.util.Scanner;
class Main{
public static void main(String [] args);
Scanner sc = new Scanner(System.in);
for(int i = 1;;i++){
int x = sc.nextInt();
if(x != 0){
System.out.println("Case " + i + ": " + x);
}else{
break;
}
i++
}
}
}
| Main.java:11: error: illegal start of type
for(int i = 1;;i++){
^
Main.java:11: error: <identifier> expected
for(int i = 1;;i++){
^
Main.java:22: error: ';' expected
i++
^
Main.java:33: error: class, interface, enum, or record expected
}
^
4 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u834356976|p02396|0 | u834356976|p02396|0 | codenet | Compile Error | 292 | |
v2_s623462144 | s623462144 | s623462144 | p02396 | p02396 | u834356976 | u834356976 | 1,525,685,865 | 2018-05-07T09:37:45 | Main.java |
import java.util.Scanner;
class Main{
public static void main(String [] args){
Scanner sc = new Scanner(System.in);
for(int i = 1;;i++){
int x = sc.nextInt();
if(x != 0){
System.out.println("Case " + i + ": " + x);
}else{
break;
}
i++
}
}
}
| Main.java:22: error: ';' expected
i++
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u834356976|p02396|0 | u834356976|p02396|0 | codenet | Compile Error | 292 | |
v2_s362201163 | s362201163 | s362201163 | p02396 | p02396 | u843641610 | u843641610 | 1,516,248,768 | 2018-01-18T04:12:48 | Main.java | class Main{
public static void main(String[] args){
while(true){
Scanner in = new Scanner(System.in);
int x = in.nextInt();
if(x == 0){
break;
}
}
}
}
| Main.java:4: error: cannot find symbol
Scanner in = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner in = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u843641610|p02396|0 | u843641610|p02396|0 | codenet | Compile Error | 173 | |
v2_s187821463 | s187821463 | s187821463 | p02396 | p02396 | u843641610 | u843641610 | 1,516,249,102 | 2018-01-18T04:18:22 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
while(true){
int i = 1;
int x = in.nextInt();
if(x == 0){
break;
}
System.out.println("Case" + i" + :" + x);
i++;
}
}
}
| Main.java:11: error: ')' or ',' expected
System.out.println("Case" + i" + :" + x);
^
Main.java:11: error: not a statement
System.out.println("Case" + i" + :" + x);
^
Main.java:11: error: ';' expected
System.out.println("Case" + i" + :" + ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u843641610|p02396|0 | u843641610|p02396|0 | codenet | Compile Error | 285 | |
v2_s720063691 | s720063691 | s720063691 | p02396 | p02396 | u848559856 | u848559856 | 1,393,149,857 | 2014-02-23T10:04:17 | Main.java | import java.util.Scanner;
class Main{
public static void main(String [] args){
Scanner scan = new Scanner(System.in);
int i = 1;
while(scan.hasNext()){
int x = Integer.parseInt(scan.next());
... | Main.java:13: error: illegal character: '\u3000'
???????????i++;
^
Main.java:13: error: illegal character: '\u3000'
???????????i++;
^
Main.java:13: error: illegal character: '\u3000'
???????????i++;
^
Main.java:13: error: illegal character: '\u3000'
???????????i++;
^
Main.java:13: error: illegal character: '\u300... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u848559856|p02396|0 | u848559856|p02396|0 | codenet | Compile Error | 540 | |
v2_s337496750 | s337496750 | s337496750 | p02396 | p02396 | u853919639 | u853919639 | 1,460,958,532 | 2016-04-18T05:48:52 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
int i = 1;
while (true) {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
if (num == 0) break;
System.out.println("Case %d: %d", i, num);
i ++;
}
}
} | Main.java:10: error: no suitable method found for println(String,int,int)
System.out.println("Case %d: %d", i, num);
^
method PrintStream.println() is not applicable
(actual and formal argument lists differ in length)
method PrintStream.println(boolean) is not applicable
(actual and ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u853919639|p02396|0 | u853919639|p02396|0 | codenet | Compile Error | 272 | |
v2_s604655338 | s604655338 | s604655338 | p02396 | p02396 | u869688911 | u869688911 | 1,503,825,223 | 2017-08-27T09:13:43 | Main.java | import java.io.FileReader;
import java.io.BufferedReader;
import java.io.IOException;
class Main{
public static void main(String[] args){
BufferedReader br=new BufferedReader(new FileReader(System.in));
int x,i =1;
while((x=br.readLine()) != 0){
System.out.println("Case "+i+": "+x);
i++;
}
br.close();
}} | Main.java:6: error: no suitable constructor found for FileReader(InputStream)
BufferedReader br=new BufferedReader(new FileReader(System.in));
^
constructor FileReader.FileReader(String) is not applicable
(argument mismatch; InputStream cannot be converted to String)
c... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u869688911|p02396|1 | u869688911|p02396|1 | codenet | Compile Error | 306 | |
v2_s285970491 | s285970491 | s285970491 | p02396 | p02396 | u869688911 | u869688911 | 1,503,826,321 | 2017-08-27T09:32:01 | Main.java | import java.io.*;
class Main {
public static void main(String[] args){
BufferedReader input = new BufferedReader(new FileReader(System.in));
int i=0;
int x;
while((x=Integer.parseInt(br.readLine())) != 0){
i++;
System.out.println("Case " +i+ ": " + x);
}
}
} | Main.java:4: error: no suitable constructor found for FileReader(InputStream)
BufferedReader input = new BufferedReader(new FileReader(System.in));
^
constructor FileReader.FileReader(String) is not applicable
(argument mismatch; InputStream cannot be converted to Str... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u869688911|p02396|1 | u869688911|p02396|1 | codenet | Compile Error | 259 | |
v2_s883991198 | s883991198 | s883991198 | p02396 | p02396 | u869688911 | u869688911 | 1,503,826,499 | 2017-08-27T09:34:59 | Main.java | import java.io.*;
class Main {
public static void main(String[] args){
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
int i=0;
int x;
while((x=Integer.parseInt(br.readLine())) != 0){
i++;
System.out.println("Case " +i+ ": " + x);
}
}
} | Main.java:7: error: cannot find symbol
while((x=Integer.parseInt(br.readLine())) != 0){
^
symbol: variable br
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u869688911|p02396|1 | u869688911|p02396|1 | codenet | Compile Error | 266 | |
v2_s080411306 | s080411306 | s080411306 | p02396 | p02396 | u869688911 | u869688911 | 1,503,826,585 | 2017-08-27T09:36:25 | Main.java | import java.io.*;
class Main {
public static void main(String[] args){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int i=0;
int x;
while((x=Integer.parseInt(br.readLine())) != 0){
i++;
System.out.println("Case " +i+ ": " + x);
}
}
} | Main.java:7: error: unreported exception IOException; must be caught or declared to be thrown
while((x=Integer.parseInt(br.readLine())) != 0){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u869688911|p02396|1 | u869688911|p02396|1 | codenet | Compile Error | 263 | |
v2_s180268200 | s180268200 | s180268200 | p02396 | p02396 | u869688911 | u869688911 | 1,503,826,891 | 2017-08-27T09:41:31 | Main.java | import java.io.*;
class Main {
public static void main(String[] args) thrown IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int i=0;
int x;
while((x=Integer.parseInt(br.readLine())) != 0){
i++;
System.out.println("Case " +i+ ": " + x);
}
br.close();
}
} | Main.java:3: error: ';' expected
public static void main(String[] args) thrown IOException{
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u869688911|p02396|1 | u869688911|p02396|1 | codenet | Compile Error | 294 | |
v2_s552286176 | s552286176 | s552286176 | p02396 | p02396 | u869688911 | u869688911 | 1,503,829,041 | 2017-08-27T10:17:21 | Main.java | import java.io.*;
class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int i=0;
int x;
while((x=Integer.parseInt(br.read())) != 0){
i++;
System.out.println("Case " +i+ ": " + x);
}
br.close();
}
} | Main.java:7: error: incompatible types: int cannot be converted to String
while((x=Integer.parseInt(br.read())) != 0){
^
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 | u869688911|p02396|1 | u869688911|p02396|1 | codenet | Compile Error | 290 | |
v2_s907199727 | s907199727 | s907199727 | p02396 | p02396 | u869688911 | u869688911 | 1,503,837,053 | 2017-08-27T12:30:53 | Main.java | import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x, y;
while(readStrToInt()){
swapNum();
System.out.(x+" "+y);
}
br.close();
}
static boolean readStrToInt(){
String str=br.readLine();
String[] arr=str.spl... | Main.java:8: error: <identifier> expected
System.out.(x+" "+y);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u869688911|p02396|2 | u869688911|p02396|1 | codenet | Compile Error | 509 | |
v2_s769657374 | s769657374 | s769657374 | p02396 | p02396 | u869688911 | u869688911 | 1,503,837,083 | 2017-08-27T12:31:23 | Main.java | import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x, y;
while(readStrToInt()){
swapNum();
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(){
String str=br.readLine();
String[] arr=... | Main.java:13: error: cannot find symbol
String str=br.readLine();
^
symbol: variable br
location: class Main
Main.java:15: error: cannot find symbol
x=Integer.parseInt(arr[0]);
^
symbol: variable x
location: class Main
Main.java:16: error: cannot find symbol
y=Integer.parseInt(arr[1]);
^
symbol... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u869688911|p02396|2 | u869688911|p02396|1 | codenet | Compile Error | 516 | |
v2_s767321770 | s767321770 | s767321770 | p02396 | p02396 | u869688911 | u869688911 | 1,503,837,194 | 2017-08-27T12:33:14 | Main.java | import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x, y;
while(readStrToInt(br)){
swapNum();
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(String br){
String str=br.readLine();
St... | Main.java:6: error: incompatible types: BufferedReader cannot be converted to String
while(readStrToInt(br)){
^
Main.java:13: error: cannot find symbol
String str=br.readLine();
^
symbol: method readLine()
location: variable br of type String
Main.java:15: error: cannot find symbol... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u869688911|p02396|2 | u869688911|p02396|1 | codenet | Compile Error | 527 | |
v2_s102053427 | s102053427 | s102053427 | p02396 | p02396 | u869688911 | u869688911 | 1,503,837,306 | 2017-08-27T12:35:06 | Main.java | import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x, y;
while(readStrToInt(br)){
swapNum();
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(Bufferedreader br){
String str=br.readLi... | Main.java:12: error: cannot find symbol
static boolean readStrToInt(Bufferedreader br){
^
symbol: class Bufferedreader
location: class Main
Main.java:15: error: cannot find symbol
x=Integer.parseInt(arr[0]);
^
symbol: variable x
location: class Main
Main.java:16: error: cannot fi... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u869688911|p02396|2 | u869688911|p02396|1 | codenet | Compile Error | 535 | |
v2_s858051607 | s858051607 | s858051607 | p02396 | p02396 | u869688911 | u869688911 | 1,503,837,384 | 2017-08-27T12:36:24 | Main.java | import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x, y;
while(readStrToInt(br)){
swapNum(x,y);
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(Bufferedreader br){
String str=br.rea... | Main.java:12: error: cannot find symbol
static boolean readStrToInt(Bufferedreader br){
^
symbol: class Bufferedreader
location: class Main
Main.java:15: error: cannot find symbol
x=Integer.parseInt(arr[0]);
^
symbol: variable x
location: class Main
Main.java:16: error: cannot fi... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u869688911|p02396|2 | u869688911|p02396|1 | codenet | Compile Error | 549 | |
v2_s627334757 | s627334757 | s627334757 | p02396 | p02396 | u869688911 | u869688911 | 1,503,837,452 | 2017-08-27T12:37:32 | Main.java | import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x, y;
while(readStrToInt(br, x, y)){
swapNum(x,y);
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(Bufferedreader br){
String str=... | Main.java:12: error: cannot find symbol
static boolean readStrToInt(Bufferedreader br){
^
symbol: class Bufferedreader
location: class Main
Main.java:6: error: method readStrToInt in class Main cannot be applied to given types;
while(readStrToInt(br, x, y)){
^
required: Buffere... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u869688911|p02396|2 | u869688911|p02396|1 | codenet | Compile Error | 555 | |
v2_s722412717 | s722412717 | s722412717 | p02396 | p02396 | u869688911 | u869688911 | 1,503,837,616 | 2017-08-27T12:40:16 | Main.java | import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x, y;
while(readStrToInt(br, x, y)){
swapNum(x,y);
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(BufferedReader br){
String str=... | Main.java:6: error: method readStrToInt in class Main cannot be applied to given types;
while(readStrToInt(br, x, y)){
^
required: BufferedReader
found: BufferedReader,int,int
reason: actual and formal argument lists differ in length
Main.java:15: error: cannot find symbol
x=Integer.parseInt(arr[0]);
^
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u869688911|p02396|2 | u869688911|p02396|1 | codenet | Compile Error | 555 | |
v2_s460121486 | s460121486 | s460121486 | p02396 | p02396 | u869688911 | u869688911 | 1,503,837,690 | 2017-08-27T12:41:30 | Main.java | import java.io.*;
class Main{
int x,y;
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
while(readStrToInt(br)){
swapNum();
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(BufferedReader br){
String str=br.readLin... | Main.java:8: error: non-static variable x cannot be referenced from a static context
System.out.println(x+" "+y);
^
Main.java:8: error: non-static variable y cannot be referenced from a static context
System.out.println(x+" "+y);
^
Main.java:15: error: non-static variable x c... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u869688911|p02396|2 | u869688911|p02396|1 | codenet | Compile Error | 534 | |
v2_s679868955 | s679868955 | s679868955 | p02396 | p02396 | u869688911 | u869688911 | 1,503,838,188 | 2017-08-27T12:49:48 | Main.java | import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x,y;
while(readStrToInt(br, x, y)){
swapNum(x, y);
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(BufferedReader br, int x, int y... | Main.java:6: error: variable x might not have been initialized
while(readStrToInt(br, x, y)){
^
Main.java:6: error: variable y might not have been initialized
while(readStrToInt(br, x, y)){
^
Main.java:13: error: unreported exception IOException; must be caught or declar... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u869688911|p02396|2 | u869688911|p02396|1 | codenet | Compile Error | 570 | |
v2_s446360775 | s446360775 | s446360775 | p02396 | p02396 | u869688911 | u869688911 | 1,503,838,243 | 2017-08-27T12:50:43 | Main.java | import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x,y;
while(readStrToInt(br, x, y)){
swapNum(x, y);
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(BufferedReader br, int x, int y... | Main.java:6: error: variable x might not have been initialized
while(readStrToInt(br, x, y)){
^
Main.java:6: error: variable y might not have been initialized
while(readStrToInt(br, x, y)){
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u869688911|p02396|2 | u869688911|p02396|1 | codenet | Compile Error | 588 | |
v2_s522117925 | s522117925 | s522117925 | p02396 | p02396 | u873575627 | u873575627 | 1,442,681,700 | 2015-09-19T16:55:00 | Main.java | import java.io.*;
public class Main{
public static void main(String[] args){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String ans ="";
int i =1;
while(true){
String y = br.readLine();
int x = Integer.parseInt(y);
if (x==0) {
break;
}
ans += "Case " + i + ": " + ... | Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown
String y = br.readLine();
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u873575627|p02396|0 | u873575627|p02396|0 | codenet | Compile Error | 369 | |
v2_s484299354 | s484299354 | s484299354 | p02396 | p02396 | u873575627 | u873575627 | 1,442,682,044 | 2015-09-19T17:00:44 | 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();
int i =1;
while(true){
int x = Integer.parseInt(br.readLine());
if (x==0) {
break;
}
... | Main.java:14: error: illegal start of expression
}
^
Main.java:13: error: not a statement
sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n")+
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u873575627|p02396|0 | u873575627|p02396|0 | codenet | Compile Error | 458 | |
v2_s843895455 | s843895455 | s843895455 | p02396 | p02396 | u873575627 | u873575627 | 1,442,682,107 | 2015-09-19T17:01:47 | 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 = "";
int i =1;
while(true){
int x = Integer.parseInt(br.readLine());
if (x==0) {
break;
}
sb.append("Case ... | Main.java:14: error: illegal start of expression
}
^
Main.java:13: error: not a statement
sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n")+
^
Main.java:18... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u873575627|p02396|0 | u873575627|p02396|0 | codenet | Compile Error | 443 | |
v2_s414646882 | s414646882 | s414646882 | p02396 | p02396 | u873575627 | u873575627 | 1,442,682,211 | 2015-09-19T17:03:31 | 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 = "";
int i =1;
while(true){
int x = Integer.parseInt(br.readLine());
if (x==0) {
break;
}
sb.append("Case ... | Main.java:18: error: class, interface, enum, or record expected
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u873575627|p02396|0 | u873575627|p02396|0 | codenet | Compile Error | 443 | |
v2_s194083321 | s194083321 | s194083321 | p02396 | p02396 | u873575627 | u873575627 | 1,442,682,236 | 2015-09-19T17:03:56 | 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 = "";
int i =1;
while(true){
int x = Integer.parseInt(br.readLine());
if (x==0) {
break;
}
sb.append("Case ... | Main.java:6: error: incompatible types: String cannot be converted to StringBuilder
StringBuilder sb = "";
^
Main.java:15: error: no suitable method found for printf(StringBuilder)
System.out.printf(sb);
^
method PrintStream.printf(String,Object...) is not applicable
(argu... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u873575627|p02396|0 | u873575627|p02396|0 | codenet | Compile Error | 441 | |
v2_s532821492 | s532821492 | s532821492 | p02396 | p02396 | u895256226 | u895256226 | 1,492,916,337 | 2017-04-23T02:58:57 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
for(int i = 1;; i++){
int x = sc.nextInt();
if(x == 0){
break;
}
System.out.println("Case" + I + ":" + x);
}
}
} | Main.java:11: error: cannot find symbol
System.out.println("Case" + I + ":" + x);
^
symbol: variable I
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u895256226|p02396|1 | u895256226|p02396|1 | codenet | Compile Error | 259 | |
v2_s379786184 | s379786184 | s379786184 | p02396 | p02396 | u895275311 | u895275311 | 1,491,210,841 | 2017-04-03T09:14:01 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
for(; i<10000 ;i++){
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
if(x==0){
break;
}
else{
System.out.println("Case "+i+": "+x);
}
}
}
} | Main.java:4: error: cannot find symbol
for(; i<10000 ;i++){
^
symbol: variable i
location: class Main
Main.java:4: error: cannot find symbol
for(; i<10000 ;i++){
^
symbol: variable i
location: class Main
Main.java:11: error: cannot find symbol
System.out.println("Case "+i+":... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u895275311|p02396|0 | u895275311|p02396|0 | codenet | Compile Error | 264 | |
v2_s507808629 | s507808629 | s507808629 | p02396 | p02396 | u895275311 | u895275311 | 1,491,210,858 | 2017-04-03T09:14:18 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
for(; i<10000 ;i++){
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
if(x==0){
break;
}
else{
System.out.println("Case "+i+": "+x);
}
}
}
} | Main.java:4: error: cannot find symbol
for(; i<10000 ;i++){
^
symbol: variable i
location: class Main
Main.java:4: error: cannot find symbol
for(; i<10000 ;i++){
^
symbol: variable i
location: class Main
Main.java:11: error: cannot find symbol
System.out.println("Case "+i+":... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u895275311|p02396|0 | u895275311|p02396|0 | codenet | Compile Error | 264 | |
v2_s420032203 | s420032203 | s420032203 | p02396 | p02396 | u895275311 | u895275311 | 1,491,212,777 | 2017-04-03T09:46:17 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
int i = 1;
Scanner scan = new Scanner(System.in);
while(i==0){
S
int x = scan.nextInt();
if(x == 0){
break;
}
else{
System.out.println("Case "+i+": "+x);
}
i += 1;
}
}
} | Main.java:7: error: not a statement
S
^
Main.java:7: error: ';' expected
S
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u895275311|p02396|0 | u895275311|p02396|0 | codenet | Compile Error | 284 | |
v2_s546863060 | s546863060 | s546863060 | p02396 | p02396 | u895275311 | u895275311 | 1,491,215,592 | 2017-04-03T10:33:12 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
int i = 0;
int x[];
while(i>0){
Scanner scan = new Scanner(System.in).useDelimiter("\n");
x = scan.nextInt();
if(x == 0){
break;
}
else{
System.out.println("Case "+i+": "+x);
}
}
}
} | Main.java:8: error: incompatible types: int cannot be converted to int[]
x = scan.nextInt();
^
Main.java:9: error: bad operand types for binary operator '=='
if(x == 0){
^
first type: int[]
second type: int
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u895275311|p02396|0 | u895275311|p02396|0 | codenet | Compile Error | 294 | |
v2_s978561263 | s978561263 | s978561263 | p02396 | p02396 | u895275311 | u895275311 | 1,491,270,587 | 2017-04-04T01:49:47 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
public static void main(String[] args){
int i = 1;
//int[] x = new int[10000];
while(i>0){
BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
String text = in.readLine();
int x = Integer.parseInt(text);
... | Main.java:9: error: cannot find symbol
String text = in.readLine();
^
symbol: variable in
location: class Main
Main.java:18: error: array required, but int found
System.out.println("Case "+i+": "+x[i]);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u895275311|p02396|1 | u895275311|p02396|1 | codenet | Compile Error | 429 | |
v2_s091069733 | s091069733 | s091069733 | p02396 | p02396 | u895275311 | u895275311 | 1,491,270,706 | 2017-04-04T01:51:46 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
public static void main(String[] args){
int i = 1;
//int[] x = new int[10000];
while(i>0){
BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
String text = in.readLine();
int x = Integer.parseInt(text);
... | Main.java:9: error: cannot find symbol
String text = in.readLine();
^
symbol: variable in
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u895275311|p02396|1 | u895275311|p02396|1 | codenet | Compile Error | 426 | |
v2_s769885755 | s769885755 | s769885755 | p02396 | p02396 | u895275311 | u895275311 | 1,491,270,780 | 2017-04-04T01:53:00 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
public static void main(String[] args){
int i = 1;
//int[] x = new int[10000];
while(i>0){
BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
String line;
int x = Integer.parseInt(line);
if... | Main.java:10: error: variable line might not have been initialized
int x = Integer.parseInt(line);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u895275311|p02396|1 | u895275311|p02396|1 | codenet | Compile Error | 410 | |
v2_s020204301 | s020204301 | s020204301 | p02396 | p02396 | u895275311 | u895275311 | 1,491,270,828 | 2017-04-04T01:53:48 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
public static void main(String[] args){
int i = 1;
//int[] x = new int[10000];
int x =0;
while(i>0){
BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
String line;
x = Integer.parseInt(line);
... | Main.java:11: error: variable line might not have been initialized
x = Integer.parseInt(line);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u895275311|p02396|1 | u895275311|p02396|1 | codenet | Compile Error | 417 | |
v2_s443177483 | s443177483 | s443177483 | p02396 | p02396 | u895275311 | u895275311 | 1,491,270,893 | 2017-04-04T01:54:53 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
public static void main(String[] args){
int i = 1;
//int[] x = new int[10000];
int x =0;
while(i>0){
BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
String line = 0;
x = Integer.parseInt(line);
... | Main.java:10: error: incompatible types: int cannot be converted to String
String line = 0;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u895275311|p02396|1 | u895275311|p02396|1 | codenet | Compile Error | 421 | |
v2_s223667746 | s223667746 | s223667746 | p02396 | p02396 | u895275311 | u895275311 | 1,491,271,524 | 2017-04-04T02:05:24 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
public static void main(String[] args){
int x =0;
Scanner scan = new Scanner(System.in);
ArrayList<Integer> list = new ArrayList<Integer>();
while(i>0){
x = scan.nextInt();
if(x == 0){
break;
}
else... | Main.java:9: error: cannot find symbol
while(i>0){
^
symbol: variable i
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u895275311|p02396|1 | u895275311|p02396|1 | codenet | Compile Error | 445 | |
v2_s138434264 | s138434264 | s138434264 | p02396 | p02396 | u895275311 | u895275311 | 1,491,271,573 | 2017-04-04T02:06:13 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
public static void main(String[] args){
int x =0;
Scanner scan = new Scanner(System.in);
ArrayList<Integer> list = new ArrayList<Integer>();
int i = 0;
while(i>0){
x = scan.nextInt();
if(x == 0){
break;
... | Main.java:19: error: variable i is already defined in method main(String[])
for(int i=0;i<list.size();i++){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u895275311|p02396|1 | u895275311|p02396|1 | codenet | Compile Error | 457 | |
v2_s965573237 | s965573237 | s965573237 | p02396 | p02396 | u895275311 | u895275311 | 1,491,271,824 | 2017-04-04T02:10:24 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
public static void main(String[] args){
int x =0;
Scanner scan = new Scanner(System.in);
ArrayList<Integer> list = new ArrayList<Integer>();
int ii = 0;
while((scan.hasNextInt()){
x = scan.nextInt();
if(x ==... | Main.java:10: error: ')' expected
while((scan.hasNextInt()){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u895275311|p02396|1 | u895275311|p02396|1 | codenet | Compile Error | 473 | |
v2_s242663971 | s242663971 | s242663971 | p02396 | p02396 | u898063668 | u898063668 | 1,495,501,271 | 2017-05-23T01:01:11 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args) throws Exception{
int num = 10000;
Scanner sc = new Scanner(System.in);
for (int i = 1; i <= num; i++) {
int x = sc.nextInt();
if(x == 0){
break;
}
... | Main.java:15: error: array required, but int found
System.out.println("Case "+ i + ": " + x[i]);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u898063668|p02396|0 | u898063668|p02396|0 | codenet | Compile Error | 386 | |
v2_s769734481 | s769734481 | s769734481 | p02396 | p02396 | u900101313 | u900101313 | 1,461,323,041 | 2016-04-22T11:04:01 | Cases.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Cases {
public static void main(String[] args) {
//java.util.Scanner scan = new java.util.Scanner(System.in);
//int x = scan.nextInt();
int i = 1;
while(i != 0){
System.out.println("Case " + i +": " +... | Cases.java:12: error: cannot find symbol
System.out.println("Case " + i +": " + n);
^
symbol: variable n
location: class Cases
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u900101313|p02396|0 | u900101313|p02396|0 | codenet | Compile Error | 352 | |
v2_s922922887 | s922922887 | s922922887 | p02396 | p02396 | u900764118 | u900764118 | 1,527,241,284 | 2018-05-25T09:41:24 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()) {
int a = sc.nextInt();
if(a==0)
break;
}
int i=1;
System.out.printf("case %d:%d\n",i,a);
i++;
}
}
| Main.java:14: error: cannot find symbol
System.out.printf("case %d:%d\n",i,a);
^
symbol: variable a
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u900764118|p02396|0 | u900764118|p02396|0 | codenet | Compile Error | 273 | |
v2_s533818709 | s533818709 | s533818709 | p02396 | p02396 | u901080241 | u901080241 | 1,488,634,780 | 2017-03-04T13:39:40 | Main.java | public class Main {
public static void main(String[] args){
Scanner std = new Scanner(System.in);
int num = 1;
while(true){
int n = Integer.parseInt(std.next());
if(n!=0){
System.out.println("Case "+num+": "+n);
num++;
}else{
break;
}
}
}
} | Main.java:3: error: cannot find symbol
Scanner std = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner std = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u901080241|p02396|0 | u901080241|p02396|0 | codenet | Compile Error | 307 | |
v2_s389371980 | s389371980 | s389371980 | p02396 | p02396 | u901150644 | u901150644 | 1,523,719,668 | 2018-04-14T15:27:48 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int i, N;
int Case[];
Case = new int[10];
for(i = 1; i < 100 ; i++) {
int x = sc.nextInt();
N = i;
Case[i] = x;
... | Main.java:15: error: variable N might not have been initialized
for(i = 1; i < N; i++) {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u901150644|p02396|0 | u901150644|p02396|0 | codenet | Compile Error | 470 | |
v2_s356672680 | s356672680 | s356672680 | p02396 | p02396 | u902605499 | u902605499 | 1,556,002,041 | 2019-04-23T06:47:21 | Main.java | import java.util.Scanner;
class Main
{
public static void main(String[] args)
{
Scanner x = new Scanner(System.in);
for(int i = 0; i<x.length; i++){
System.out.printf("%c %d: %d\n", 'Case', x, x[i]);
}
}
}
| Main.java:8: error: unclosed character literal
System.out.printf("%c %d: %d\n", 'Case', x, x[i]);
^
Main.java:8: error: unclosed character literal
System.out.printf("%c %d: %d\n", 'Case', x, x[i]);
^
Main.java:8: erro... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u902605499|p02396|0 | u902605499|p02396|0 | codenet | Compile Error | 244 | |
v2_s847756372 | s847756372 | s847756372 | p02396 | p02396 | u902605499 | u902605499 | 1,556,002,172 | 2019-04-23T06:49:32 | Main.java | import java.util.Scanner;
class Main
{
public static void main(String[] args)
{
Scanner x = new Scanner(System.in);
for(int i = 0; i<x.length; i++){
System.out.printf("%s %d: %d\n", "Case", x, x[i]);
}
}
}
| Main.java:7: error: cannot find symbol
for(int i = 0; i<x.length; i++){
^
symbol: variable length
location: variable x of type Scanner
Main.java:8: error: array required, but Scanner found
System.out.printf("%s %d: %d\n", "Case", x, x[i]);
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u902605499|p02396|0 | u902605499|p02396|0 | codenet | Compile Error | 244 | |
v2_s218942715 | s218942715 | s218942715 | p02396 | p02396 | u902605499 | u902605499 | 1,556,002,227 | 2019-04-23T06:50:27 | Main.java | import java.util.Scanner;
class Main
{
public static void main(String[] args)
{
Scanner x = new Scanner(System.in);
for(int i = x; i<x.length; i++){
System.out.printf("%s %d: %d\n", "Case", x, x[i]);
}
}
}
| Main.java:7: error: incompatible types: Scanner cannot be converted to int
for(int i = x; i<x.length; i++){
^
Main.java:7: error: cannot find symbol
for(int i = x; i<x.length; i++){
^
symbol: variable length
location: variable x of type Scanner
Main.java:8: er... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u902605499|p02396|0 | u902605499|p02396|0 | codenet | Compile Error | 244 | |
v2_s245188815 | s245188815 | s245188815 | p02396 | p02396 | u902605499 | u902605499 | 1,556,002,371 | 2019-04-23T06:52:51 | Main.java | import java.util.Scanner;
class Main
{
public static void main(String[] args)
{
Scanner x = new Scanner(System.in);
x = x.nextInt();
for(int i = x; i<x.length; i++){
System.out.printf("%s %d: %d\n", "Case", x, x[i]);
}
}
}
| Main.java:7: error: incompatible types: int cannot be converted to Scanner
x = x.nextInt();
^
Main.java:8: error: incompatible types: Scanner cannot be converted to int
for(int i = x; i<x.length; i++){
^
Main.java:8: error: cannot find symbol
for(int i = x; i<x.len... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u902605499|p02396|0 | u902605499|p02396|0 | codenet | Compile Error | 267 | |
v2_s522871968 | s522871968 | s522871968 | p02396 | p02396 | u902605499 | u902605499 | 1,556,002,448 | 2019-04-23T06:54:08 | Main.java | import java.util.Scanner;
class Main
{
public static void main(String[] args)
{
Scanner y = new Scanner(System.in);
int x;
x = y.nextInt();
for(int i = x; i<x.length; i++){
System.out.printf("%s %d: %d\n", "Case", x, x[i]);
}
}
}
| Main.java:9: error: int cannot be dereferenced
for(int i = x; i<x.length; i++){
^
Main.java:10: error: array required, but int found
System.out.printf("%s %d: %d\n", "Case", x, x[i]);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u902605499|p02396|0 | u902605499|p02396|0 | codenet | Compile Error | 280 | |
v2_s686831479 | s686831479 | s686831479 | p02396 | p02396 | u902605499 | u902605499 | 1,556,002,484 | 2019-04-23T06:54:44 | Main.java | import java.util.Scanner;
class Main
{
public static void main(String[] args)
{
Scanner y = new Scanner(System.in);
int x;
x = y.nextInt();
for(int i = 0; i<x.length; i++){
System.out.printf("%s %d: %d\n", "Case", x, x[i]);
}
}
}
| Main.java:9: error: int cannot be dereferenced
for(int i = 0; i<x.length; i++){
^
Main.java:10: error: array required, but int found
System.out.printf("%s %d: %d\n", "Case", x, x[i]);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u902605499|p02396|0 | u902605499|p02396|0 | codenet | Compile Error | 280 | |
v2_s669340253 | s669340253 | s669340253 | p02396 | p02396 | u902605499 | u902605499 | 1,556,002,926 | 2019-04-23T07:02:06 | Main.java | import java.util.Scanner;
class Main
{
public static void main(String[] args)
{
Scanner stdln = new Scanner(System.in);
int x[];
x = stdln.nextInt();
for(int i = 0; i < x.length ; i++){
System.out.printf("%s %d: %d\n", "Case", x, x[i]);
}
}
}
| Main.java:8: error: incompatible types: int cannot be converted to int[]
x = stdln.nextInt();
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u902605499|p02396|0 | u902605499|p02396|0 | codenet | Compile Error | 293 | |
v2_s462807104 | s462807104 | s462807104 | p02396 | p02396 | u902605499 | u902605499 | 1,556,003,092 | 2019-04-23T07:04:52 | Main.java | import java.util.Scanner;
class Main
{
public static void main(String[] args)
{
Scanner stdln = new Scanner(System.in);
int x[] = stdln.nextInt();
for(int i = 0; i < x.length ; i++){
System.out.printf("%s %d: %d\n", "Case", x, x[i]);
}
}
}
| Main.java:7: error: incompatible types: int cannot be converted to int[]
int x[] = stdln.nextInt();
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u902605499|p02396|0 | u902605499|p02396|0 | codenet | Compile Error | 284 | |
v2_s078177921 | s078177921 | s078177921 | p02396 | p02396 | u902605499 | u902605499 | 1,556,003,446 | 2019-04-23T07:10:46 | Main.java | import java.util.Scanner;
class Main
{
public static void main(String[] args)
{
Scanner stdln = new Scanner(System.in);
x = stdln.nextInt();
for(int i = 0; i < x.length ; i++){
System.out.printf("%s %d: %d\n", "Case", x, x[i]);
}
}
}
| Main.java:7: error: cannot find symbol
x = stdln.nextInt();
^
symbol: variable x
location: class Main
Main.java:8: error: cannot find symbol
for(int i = 0; i < x.length ; i++){
^
symbol: variable x
location: class Main
Main.java:9: error: cannot find symbol
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u902605499|p02396|0 | u902605499|p02396|0 | codenet | Compile Error | 278 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.