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_s278640263
s278640263
s278640263
p02909
p02909
u006658015
u006658015
1,569,255,005
2019-09-23T16:10:05
Test.java
public class Test { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String wether [] = {"Sunny","Cloudy", "Rainy","Sunny"}; String w = sc.next(); int i=0; while(!(w.equals(wether[i]))){ i++; } i++; System.out.println(wether[i]); } }
Test.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Test Test.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Test 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u006658015|p02909|0
u006658015|p02909|0
codenet
Compile Error
299
v2_s851953405
s851953405
s851953405
p02909
p02909
u012185592
u012185592
1,568,597,409
2019-09-16T01:30:09
Main.java
import java.util.Scanner; class Main{ public void main(String args[]){ Scanner scan = new Scanner(); String str = scan.Scanner(System.in); switch(str){ case "Sunny": System.out.println("Cloudy"); case "Cloudy": System.out.println("Rainy"); case "Rainy": System.out.println("Sunn...
Main.java:5: error: no suitable constructor found for Scanner(no arguments) Scanner scan = new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) is not applicable (...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u012185592|p02909|0
u012185592|p02909|0
codenet
Compile Error
336
v2_s199918426
s199918426
s199918426
p02909
p02909
u018679195
u018679195
1,601,347,974
2020-09-29T02:52:54
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String st = sc.next(); String Sunny, Cloudy, Rainy; if(st.equals(Sunny)){ System.out.print("Cloudy"); }else if(st.equals(Cloudy)){ Syste...
Main.java:8: error: variable Sunny might not have been initialized if(st.equals(Sunny)){ ^ Main.java:10: error: variable Cloudy might not have been initialized }else if(st.equals(Cloudy)){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p02909|2
u018679195|p02909|2
codenet
Compile Error
413
v2_s615357643
s615357643
s615357643
p02909
p02909
u018773111
u018773111
1,593,091,607
2020-06-25T13:26:47
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); List<String> w = new ArrayList<String>(){ add("Sunny"); add("Cloudy"); add("Rainy"); add("Sunny"); } System.out.println(w[indexOf(s)+1]...
Main.java:8: error: invalid method declaration; return type required add("Sunny"); ^ Main.java:8: error: illegal start of type add("Sunny"); ^ Main.java:9: error: invalid method declaration; return type required add("Cloudy"); ^ Main.java:9: error: illegal start of type add...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02909|0
u018773111|p02909|0
codenet
Compile Error
328
v2_s225518429
s225518429
s225518429
p02909
p02909
u018773111
u018773111
1,593,091,686
2020-06-25T13:28:06
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); List<String> w = new ArrayList<String>(){ w.add("Sunny"); w.add("Cloudy"); w.add("Rainy"); w.add("Sunny"); } System.out.println(w.get(i...
Main.java:8: error: <identifier> expected w.add("Sunny"); ^ Main.java:8: error: illegal start of type w.add("Sunny"); ^ Main.java:9: error: <identifier> expected w.add("Cloudy"); ^ Main.java:9: error: illegal start of type w.add("Cloudy"); ^ Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02909|0
u018773111|p02909|0
codenet
Compile Error
340
v2_s850558534
s850558534
s850558534
p02909
p02909
u018773111
u018773111
1,593,091,768
2020-06-25T13:29:28
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); List<String> w = new ArrayList<String>(); w.add("Sunny"); w.add("Cloudy"); w.add("Rainy"); w.add("Sunny"); System.out.println(w.get(indexOf(s)+1); ...
Main.java:12: error: ')' or ',' expected System.out.println(w.get(indexOf(s)+1); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02909|0
u018773111|p02909|0
codenet
Compile Error
326
v2_s394847269
s394847269
s394847269
p02909
p02909
u018773111
u018773111
1,593,091,798
2020-06-25T13:29:58
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); List<String> w = new ArrayList<String>(); w.add("Sunny"); w.add("Cloudy"); w.add("Rainy"); w.add("Sunny"); System.out.println(w.get(indexOf(s)+1));...
Main.java:12: error: cannot find symbol System.out.println(w.get(indexOf(s)+1)); ^ symbol: method indexOf(String) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02909|0
u018773111|p02909|0
codenet
Compile Error
326
v2_s563226969
s563226969
s563226969
p02909
p02909
u058592821
u058592821
1,570,426,799
2019-10-07T05:39:59
p2.java
import java.io.*; public class p2 throws IOException { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String weather = br.readLine(); String tomorrow_weather; if(weather.equals("Sunny")) { tomorrow_weather = "Cloudy"; } else if(weather...
p2.java:2: error: '{' expected public class p2 throws IOException { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u058592821|p02909|0
u058592821|p02909|0
codenet
Compile Error
462
v2_s440728332
s440728332
s440728332
p02909
p02909
u058592821
u058592821
1,570,430,046
2019-10-07T06:34: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)); String input = br.readLine(); String[] nums = input.split(" "); int N = Integer.parseInt(nums[0]); int K = Integer.parseInt(nums[1]); in...
Main.java:21: error: cannot find symbol if(decrement_scores[i] >= K){ ^ symbol: variable decrement_scores location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u058592821|p02909|0
u058592821|p02909|0
codenet
Compile Error
740
v2_s475210361
s475210361
s475210361
p02909
p02909
u060569392
u060569392
1,569,557,104
2019-09-27T04:05:04
Main.java
impoty java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); switch (a) { case "Sunny": System.out.println('Cloudy'); case "Cloudy": ...
Main.java:1: error: class, interface, enum, or record expected impoty java.util.*; ^ Main.java:13: error: unclosed character literal System.out.println('Cloudy'); ^ Main.java:13: error: unclosed character literal System.out.println('Cloudy'); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060569392|p02909|0
u060569392|p02909|0
codenet
Compile Error
453
v2_s728769227
s728769227
s728769227
p02909
p02909
u060569392
u060569392
1,569,557,140
2019-09-27T04:05:40
Main.java
import java.util.*; class Wandbox { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); switch (a) { case "Sunny": System.out.println('Cloudy'); case "Cloudy": ...
Main.java:13: error: unclosed character literal System.out.println('Cloudy'); ^ Main.java:13: error: unclosed character literal System.out.println('Cloudy'); ^ Main.java:13: error: not a statement ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060569392|p02909|0
u060569392|p02909|0
codenet
Compile Error
456
v2_s238235653
s238235653
s238235653
p02909
p02909
u078075110
u078075110
1,569,001,472
2019-09-20T17:44:32
Main.java
import javafx.beans.property.IntegerProperty; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) throws Exception{ BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); String s = bf.re...
Main.java:1: error: package javafx.beans.property does not exist import javafx.beans.property.IntegerProperty; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u078075110|p02909|0
u078075110|p02909|0
codenet
Compile Error
693
v2_s733964422
s733964422
s733964422
p02909
p02909
u089230684
u089230684
1,572,328,819
2019-10-29T06:00:19
captain.java
import jdk.internal.util.xml.impl.Input; import java.util.Scanner; public class captain { public static void main(String[] args) { String str = null; Scanner cin = new Scanner(System.in); str = cin.next(); if (str.equals("Sunny")) System.out.println("Cloudy"); e...
captain.java:1: error: package jdk.internal.util.xml.impl is not visible import jdk.internal.util.xml.impl.Input; ^ (package jdk.internal.util.xml.impl is declared in module java.base, which does not export it to the unnamed module) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p02909|1
u089230684|p02909|1
codenet
Compile Error
489
v2_s620412864
s620412864
s620412864
p02909
p02909
u089230684
u089230684
1,581,706,386
2020-02-14T18:53:06
public.java
import java.util.Scanner; public class public { public static void main(String[] args) { Scanner input = new Scanner(System.in); String s = input.nextLine(); if(s.equals("Sunny")){ System.out.println("Cloudy"); } else if(s.equals("Cloudy")){ System....
public.java:5: error: <identifier> expected public class public { ^ public.java:5: error: class, interface, enum, or record expected public class public { ^ public.java:6: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args)...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p02909|3
u089230684|p02909|3
codenet
Compile Error
452
v2_s818481485
s818481485
s818481485
p02909
p02909
u131957401
u131957401
1,569,001,209
2019-09-20T17:40:09
Main.java
import java.util.Scanner; class Weather{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); String S = stdIn.next(); if(S = "Sunny"){ System.out.println("Cloudy"); }else if(S = "Cloudy"){ System.out.println("Rainy"); }else{ System.out.println("Sunny"...
Main.java:7: error: incompatible types: String cannot be converted to boolean if(S = "Sunny"){ ^ Main.java:9: error: incompatible types: String cannot be converted to boolean }else if(S = "Cloudy"){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u131957401|p02909|0
u131957401|p02909|0
codenet
Compile Error
334
v2_s705298259
s705298259
s705298259
p02909
p02909
u136334998
u136334998
1,572,916,062
2019-11-05T01:07:42
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); String a = stdIn.nextString(); String s = Sunny; String c = Cloudy; String r = Rainy; if(a==s){ System.out.println("Cloudy"); }else if(a==c){ System.out....
Main.java:5: error: cannot find symbol String a = stdIn.nextString(); ^ symbol: method nextString() location: variable stdIn of type Scanner Main.java:6: error: cannot find symbol String s = Sunny; ^ symbol: variable Sunny location: class Main Main.java:7: error: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u136334998|p02909|0
u136334998|p02909|0
codenet
Compile Error
395
v2_s119482233
s119482233
s119482233
p02909
p02909
u136334998
u136334998
1,572,916,139
2019-11-05T01:08:59
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); String a = stdIn.nextString(); String s = "Sunny"; String c = "Cloudy"; String r = "Rainy"; if(a==s){ System.out.println("Cloudy"); }else if(a==c){ Syste...
Main.java:5: error: cannot find symbol String a = stdIn.nextString(); ^ symbol: method nextString() location: variable stdIn of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u136334998|p02909|0
u136334998|p02909|0
codenet
Compile Error
401
v2_s661854781
s661854781
s661854781
p02909
p02909
u167206842
u167206842
1,568,760,228
2019-09-17T22:43:48
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); String answer =""; if(S.equals("Sunny")){ answer = "Cloudy"; }else if(S.equals("Cloudy")){ answer = "Rainy"; }else{ answer = "Sunny"; ...
Main.java:15: error: <identifier> expected System.out.println(answer); ^ Main.java:15: error: <identifier> expected System.out.println(answer); ^ Main.java:22: error: unnamed classes are a preview feature and are disabled by default. static int gcd (int a, int b) {retu...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u167206842|p02909|0
u167206842|p02909|0
codenet
Compile Error
1,266
v2_s115287383
s115287383
s115287383
p02909
p02909
u219894353
u219894353
1,568,595,841
2019-09-16T01:04:01
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s = null; try { s = args[0]; // String[] s = scanner.nextLine().split(" "); } catch (NumberFormatException e) { } catch (NullPointerException e) { } if(s.equals("Sunny")) { s = "Clo...
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 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u219894353|p02909|0
u219894353|p02909|0
codenet
Compile Error
461
v2_s701879406
s701879406
s701879406
p02909
p02909
u223036928
u223036928
1,572,738,325
2019-11-02T23:45:25
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int s = sc.nextInt(); if (s = "Sunny") { System.out.print("Cloudy"); } else if (s = "Cloudy") { System.out.print("Rainy"); } else { ...
Main.java:8: error: incompatible types: String cannot be converted to int if (s = "Sunny") { ^ Main.java:8: error: incompatible types: int cannot be converted to boolean if (s = "Sunny") { ^ Main.java:10: error: incompatible types: String cannot be converted to int } el...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u223036928|p02909|0
u223036928|p02909|0
codenet
Compile Error
377
v2_s513472519
s513472519
s513472519
p02909
p02909
u223036928
u223036928
1,572,738,367
2019-11-02T23:46:07
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextInt(); if (s = "Sunny") { System.out.print("Cloudy"); } else if (s = "Cloudy") { System.out.print("Rainy"); } else { ...
Main.java:6: error: incompatible types: int cannot be converted to String String s = sc.nextInt(); ^ Main.java:8: error: incompatible types: String cannot be converted to boolean if (s = "Sunny") { ^ Main.java:10: error: incompatible types: String cannot be conve...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u223036928|p02909|0
u223036928|p02909|0
codenet
Compile Error
380
v2_s552840904
s552840904
s552840904
p02909
p02909
u223036928
u223036928
1,572,738,434
2019-11-02T23:47:14
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); if (s = "Sunny") { System.out.print("Cloudy"); } else if (s = "Cloudy") { System.out.print("Rainy"); } else { ...
Main.java:8: error: incompatible types: String cannot be converted to boolean if (s = "Sunny") { ^ Main.java:10: error: incompatible types: String cannot be converted to boolean } else if (s = "Cloudy") { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u223036928|p02909|0
u223036928|p02909|0
codenet
Compile Error
377
v2_s741567178
s741567178
s741567178
p02909
p02909
u225756889
u225756889
1,569,643,812
2019-09-28T04:10:12
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String s=sc.next(); if(s.equals("Sunny")) { System.out.println("Cloudy"); }else if(s.equals("Cloudy")){ System.out.println("Rainy"); }else if(s....
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u225756889|p02909|0
u225756889|p02909|0
codenet
Compile Error
403
v2_s883839612
s883839612
s883839612
p02909
p02909
u291402523
u291402523
1,568,596,627
2019-09-16T01:17:07
Main.java
public static void Main(String[] args) { Scanner scan=new Scanner(System.in); String S=scan.next(); String s="Sunny"; String c="Cloudy"; String r="Rainy"; if(S.equals(s)){ System.out.print("Cloudy"); } else if(S.equals(c)){ System.out.print("Rainy"); } else if(S.equals(r)){ System.out.p...
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
u291402523|p02909|0
u291402523|p02909|0
codenet
Compile Error
343
v2_s728533481
s728533481
s728533481
p02909
p02909
u292902179
u292902179
1,569,354,917
2019-09-24T19:55:17
Main.java
Scanner scanner=new Scanner(System.in); int num=scanner.nextInt(); if(num%3==0){ System.out.println("Rainy"); }else if(num%3==1){ System.out.println("Sunny"); }else if(num%%3==2){ System.out.println("Cloudy"); }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner scanner=new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:3: error: class, interface, enum, or record expected if(num%3==0){ ^ Main.java:5: error: class, interface, enum, or record expecte...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u292902179|p02909|0
u292902179|p02909|0
codenet
Compile Error
217
v2_s418807603
s418807603
s418807603
p02909
p02909
u292902179
u292902179
1,569,355,007
2019-09-24T19:56:47
Main.java
class main{ public static void Main(){ Scanner scanner=new Scanner(System.in); int num=scanner.nextInt(); if(num%3==0){ System.out.println("Rainy"); }else if(num%3==1){ System.out.println("Sunny"); }else if(num%%3==2){ System.out.println("Cloudy"); } } }
Main.java:9: error: illegal start of expression }else if(num%%3==2){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u292902179|p02909|0
u292902179|p02909|0
codenet
Compile Error
260
v2_s936864672
s936864672
s936864672
p02909
p02909
u292902179
u292902179
1,569,355,032
2019-09-24T19:57:12
Main.java
class main{ public static void Main(){ Scanner scanner=new Scanner(System.in); int num=scanner.nextInt(); if(num%3==0){ System.out.println("Rainy"); }else if(num%3==1){ System.out.println("Sunny"); }else if(num%3==2){ System.out.println("Cloudy"); } } }
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
u292902179|p02909|0
u292902179|p02909|0
codenet
Compile Error
259
v2_s342715120
s342715120
s342715120
p02909
p02909
u292902179
u292902179
1,569,355,137
2019-09-24T19:58:57
Main.java
import java.util.Scanner; class main{ public static void Main(){ Scanner scanner=new Scanner(System.in); int num=scanner.nextInt(); if(num%3==0){ System.out.println("Rainy"); }else if(num%3==1){ System.out.println("Sunny"); }else if(num%3==2){ System.out.println("Cloudy"); } } } class main{ public static void Mai...
Main.java:15: error: duplicate class: main class main{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u292902179|p02909|0
u292902179|p02909|0
codenet
Compile Error
545
v2_s006908242
s006908242
s006908242
p02909
p02909
u292902179
u292902179
1,569,359,129
2019-09-24T21:05:29
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scanner=new Scanner(System.in); String weather=scanner.nextInt(); if(weather=="Sunny"){ System.out.println("Cloudy"); }else if(weather=="Cloudy"){ System.out.println("Rainy"); }else if(weather=="Rainy"){ ...
Main.java:6: error: incompatible types: int cannot be converted to String String weather=scanner.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u292902179|p02909|0
u292902179|p02909|0
codenet
Compile Error
365
v2_s913295683
s913295683
s913295683
p02909
p02909
u292902179
u292902179
1,569,359,693
2019-09-24T21:14:53
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scanner=new Scanner(System.in); String weather=scanner.next(); if(weather.equals("Sunny")){ System.out.println("Cloudy"); } if(weather.equals("Cloudy")){ System.out.println("Rainy"); } if(weather.ewuals("...
Main.java:11: error: cannot find symbol } if(weather.ewuals("Rainy")){ ^ symbol: method ewuals(String) location: variable weather of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u292902179|p02909|0
u292902179|p02909|0
codenet
Compile Error
376
v2_s971856092
s971856092
s971856092
p02909
p02909
u365389718
u365389718
1,570,479,009
2019-10-07T20:10:09
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner (System.in); String S = sc.next(); if(S.equals("Sunny")){ System.out.println("Cloudy"); }else if(S.equals("Cloudy")){ System.out.println("Rainy"); }else { System....
Main.java:13: error: ';' expected System.out.println("Sunny") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u365389718|p02909|0
u365389718|p02909|0
codenet
Compile Error
361
v2_s819894310
s819894310
s819894310
p02909
p02909
u369712616
u369712616
1,584,257,163
2020-03-15T07:26:03
Main.java
import java.util.Scanner; class Main{ public static void main(String[] void){ Scanner sc = new Scanner(System.in); String today = sc.next(); if(today.equals("Sunny"){ System.out.println("Cloudy"); }else if(today.equlas("Cloudy"){ System.out.println("Rainy"); }else{ System.out.pri...
Main.java:3: error: <identifier> expected public static void main(String[] void){ ^ Main.java:3: error: <identifier> expected public static void main(String[] void){ ^ Main.java:6: error: ')' expected if(today.equals("Sunny"){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02909|0
u369712616|p02909|0
codenet
Compile Error
346
v2_s928086802
s928086802
s928086802
p02909
p02909
u381460455
u381460455
1,594,875,570
2020-07-16T04:59:30
Main.java
import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.*; public class Main { static InputStream is; static PrintWriter out; static String INPUT = ""; static void solve() { String s = ns(); if (s.equals...
Main.java:17: error: incompatible types: String cannot be converted to boolean } else if ("Cloudy") { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u381460455|p02909|0
u381460455|p02909|0
codenet
Compile Error
7,861
v2_s276084585
s276084585
s276084585
p02909
p02909
u427571081
u427571081
1,570,726,106
2019-10-10T16:48:26
Main.java
import java.util.Scanner; public class Main { String[] ans={"Sunny","Cloudy","Rainy"}; public static void main(String args[]){ Scanner sc=new Scanner(System.in); String s=sc.next(); for(int i=0;i<3;i++) if(s.equals(ans[i])) { System.out.println(ans[(i+1)%3]); break; } } }
Main.java:11: error: non-static variable ans cannot be referenced from a static context if(s.equals(ans[i])) ^ Main.java:13: error: non-static variable ans cannot be referenced from a static context System.out.println(ans[(i+1)%3]); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u427571081|p02909|0
u427571081|p02909|0
codenet
Compile Error
310
v2_s390512559
s390512559
s390512559
p02909
p02909
u448324500
u448324500
1,568,688,566
2019-09-17T02:49:26
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int S = sc.next(); if(S.equals(Sunny)){ System.out.println("Cloudy"); } else if(S.equals(Cloudy)){ System.out.println("Rainy"); } else{ System.out.println("Sunny"); } } }
Main.java:9: error: incompatible types: String cannot be converted to int int S = sc.next(); ^ Main.java:11: error: cannot find symbol if(S.equals(Sunny)){ ^ symbol: variable Sunny location: class Main Main.java:11: error: int cannot be dereferenced if(S.equals(Sunny)){ ^ Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u448324500|p02909|0
u448324500|p02909|0
codenet
Compile Error
313
v2_s437684088
s437684088
s437684088
p02909
p02909
u448324500
u448324500
1,568,688,603
2019-09-17T02:50:03
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); if(S.equals(Sunny)){ System.out.println("Cloudy"); } else if(S.equals(Cloudy)){ System.out.println("Rainy"); } else{ System.out.println("Sunny"); } } }
Main.java:11: error: cannot find symbol if(S.equals(Sunny)){ ^ symbol: variable Sunny location: class Main Main.java:17: error: cannot find symbol else if(S.equals(Cloudy)){ ^ symbol: variable Cloudy location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u448324500|p02909|0
u448324500|p02909|0
codenet
Compile Error
316
v2_s166673040
s166673040
s166673040
p02909
p02909
u455379185
u455379185
1,568,599,890
2019-09-16T02:11:30
Main.java
import java.util.*; public class Main{ public static void main(String args[]) { Scanner sc = new Scanner(System.in); println(sc.next()); } }
Main.java:5: error: cannot find symbol println(sc.next()); ^ symbol: method println(String) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u455379185|p02909|0
u455379185|p02909|0
codenet
Compile Error
153
v2_s278706619
s278706619
s278706619
p02909
p02909
u477706124
u477706124
1,568,831,000
2019-09-18T18:23:20
A.java
import java.util.Scanner; public class A { public static void main(String args[]){ Scanner sc = new Scanner(System.in); String S = sc.next(); System.out.println("Sunny") ? "Cloudy" : s.equals("Cloudy") ? "Rainy" : "Sunny"); } }
A.java:7: error: not a statement System.out.println("Sunny") ? "Cloudy" : s.equals("Cloudy") ? "Rainy" : "Sunny"); ^ A.java:7: error: ';' expected System.out.println("Sunny") ? "Cloudy" : s.equals("Cloudy") ? "Rainy" : "Sunny"); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u477706124|p02909|0
u477706124|p02909|0
codenet
Compile Error
248
v2_s588065913
s588065913
s588065913
p02909
p02909
u487433273
u487433273
1,568,595,734
2019-09-16T01:02:14
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String N = sc.nextInt(); if (N == "Sunny") System.out.println("Cloudy"); else if (N == "Cloudy") System.out.println("Rainy"); else if (N == "Rainy") System.out.println("Sunny")...
Main.java:5: error: incompatible types: int cannot be converted to String String N = sc.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p02909|0
u487433273|p02909|0
codenet
Compile Error
341
v2_s053198840
s053198840
s053198840
p02909
p02909
u520480375
u520480375
1,587,499,261
2020-04-21T20:01:01
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); Sunny, Cloudy, Rainy if(a.equals("Sunny"){ System.out.println("Cloudy") }else if(a.equals("Cloudy")){ System.out.println("Rainy"); }else{...
Main.java:9: error: not a statement Sunny, Cloudy, Rainy ^ Main.java:9: error: ';' expected Sunny, Cloudy, Rainy ^ Main.java:9: error: not a statement Sunny, Cloudy, Rainy ^ Main.java:9: error: ';' expected Sunny, Cloudy, Rainy ^ Main.java:9: error: not a stateme...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u520480375|p02909|0
u520480375|p02909|0
codenet
Compile Error
368
v2_s310326009
s310326009
s310326009
p02909
p02909
u522628393
u522628393
1,568,599,447
2019-09-16T02:04:07
Main.java
import java.util.Scanner public class Main { public static void main(String[] args){ Scanner scn = new Scanner(System.in); String s = scn.nextLine(); if(s.equals("Sunny")){ System.out.println("Cloudy"); } else if(s.equals("Rainy"){ System.out.println("Sunny"); ...
Main.java:1: error: ';' expected import java.util.Scanner ^ Main.java:9: error: ')' expected } else if(s.equals("Rainy"){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u522628393|p02909|0
u522628393|p02909|0
codenet
Compile Error
385
v2_s811153430
s811153430
s811153430
p02909
p02909
u522628393
u522628393
1,568,599,552
2019-09-16T02:05:52
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scn = new Scanner(System.in); String s = scn.nextLine(); if(s.equals("Sunny")){ System.out.println("Cloudy"); } else if(s.equals("Rainy"){ System.out.println("Sunny"); ...
Main.java:9: error: ')' expected } else if(s.equals("Rainy"){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u522628393|p02909|0
u522628393|p02909|0
codenet
Compile Error
387
v2_s644772655
s644772655
s644772655
p02909
p02909
u523698212
u523698212
1,582,792,117
2020-02-27T08:28:37
Main.java
import java.util.*; class Main(){ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); if(s=="Sunny"){ System.out.println("Cloudy"); }else if(s == "Cloudy"){ System.out.println("Rainy"); }else{ System.out.println("Sunny"); } } ...
Main.java:3: error: '{' expected class Main(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523698212|p02909|0
u523698212|p02909|0
codenet
Compile Error
322
v2_s354685653
s354685653
s354685653
p02909
p02909
u547167033
u547167033
1,568,657,249
2019-09-16T18:07:29
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.nextInt(); if(s.equals("Sunny"))System.out.println("Cloudy"); else if(s.equals("Cloudy"))System.out.println("Rainy"); else System.out.println("Sunny"); } }
Main.java:5: error: incompatible types: int cannot be converted to String String s = sc.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p02909|0
u547167033|p02909|0
codenet
Compile Error
319
v2_s157054799
s157054799
s157054799
p02909
p02909
u552730117
u552730117
1,568,595,704
2019-09-16T01:01:44
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int s = sc.next(); if (s.equals("Sunny")) { System.out.println("Cloudy"); } else if (s.equals("Cloudy")) { System.out.println("Rainy"); } else { System.out.println("Sunny") ...
Main.java:13: error: ';' expected System.out.println("Sunny") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u552730117|p02909|0
u552730117|p02909|0
codenet
Compile Error
337
v2_s822304289
s822304289
s822304289
p02909
p02909
u552730117
u552730117
1,568,595,748
2019-09-16T01:02:28
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int s = sc.next(); if (s.equals("Sunny")) { System.out.println("Cloudy"); } else if (s.equals("Cloudy")) { System.out.println("Rainy"); } else { System.out.println("Sunny");...
Main.java:6: error: incompatible types: String cannot be converted to int int s = sc.next(); ^ Main.java:8: error: int cannot be dereferenced if (s.equals("Sunny")) { ^ Main.java:10: error: int cannot be dereferenced } else if (s.equals("Cloudy")) { ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u552730117|p02909|0
u552730117|p02909|0
codenet
Compile Error
338
v2_s481826669
s481826669
s481826669
p02909
p02909
u553462852
u553462852
1,568,736,513
2019-09-17T16:08:33
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String wether = "Sunny"; if (s.equals(Sunny)) { wether = "Cloudy" } else (s.equals(Cloudy) { wether = "Rainy"; } ...
Main.java:9: error: ';' expected wether = "Cloudy" ^ Main.java:10: error: ')' expected } else (s.equals(Cloudy) { ^ Main.java:10: error: not a statement } else (s.equals(Cloudy) { ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u553462852|p02909|0
u553462852|p02909|0
codenet
Compile Error
369
v2_s526581860
s526581860
s526581860
p02909
p02909
u553462852
u553462852
1,568,736,565
2019-09-17T16:09:25
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String wether = "Sunny"; if (s.equals(Sunny)) { wether = "Cloudy"; } else (s.equals(Cloudy) { wether = "Rainy"; } ...
Main.java:10: error: ')' expected } else (s.equals(Cloudy) { ^ Main.java:10: error: not a statement } else (s.equals(Cloudy) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u553462852|p02909|0
u553462852|p02909|0
codenet
Compile Error
370
v2_s103651501
s103651501
s103651501
p02909
p02909
u553462852
u553462852
1,568,736,619
2019-09-17T16:10:19
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String wether = "Sunny"; if (s.equals(Sunny)) { wether = "Cloudy"; } else if (s.equals(Cloudy) { wether = "Rainy"; } ...
Main.java:10: error: ')' expected } else if (s.equals(Cloudy) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u553462852|p02909|0
u553462852|p02909|0
codenet
Compile Error
373
v2_s431911091
s431911091
s431911091
p02909
p02909
u553462852
u553462852
1,568,736,645
2019-09-17T16:10:45
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String wether = "Sunny"; if (s.equals(Sunny)) { wether = "Cloudy"; } else if (s.equals(Cloudy)) { wether = "Rainy"; } ...
Main.java:8: error: cannot find symbol if (s.equals(Sunny)) { ^ symbol: variable Sunny location: class Main Main.java:10: error: cannot find symbol } else if (s.equals(Cloudy)) { ^ symbol: variable Cloudy location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u553462852|p02909|0
u553462852|p02909|0
codenet
Compile Error
374
v2_s389431204
s389431204
s389431204
p02909
p02909
u607135645
u607135645
1,568,668,551
2019-09-16T21:15:51
Main.java
import java.util.*; class Main { public static void main(String[] args) throws java.lang.Exception { Scanner sc = new Scanner(System.in); String s = sc.next(); sc.close(); String ret = ""; if (s.equlas("Sunny")) { ret = "Cloudy"; } else if (s.equals("Clou...
Main.java:9: error: cannot find symbol if (s.equlas("Sunny")) { ^ symbol: method equlas(String) location: variable s of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u607135645|p02909|0
u607135645|p02909|0
codenet
Compile Error
450
v2_s147481407
s147481407
s147481407
p02909
p02909
u676443149
u676443149
1,568,596,028
2019-09-16T01:07:08
Main.java
public static void main(String[] args){ String S; if(S.equals(Sunny)){ System.out.println("Cloudy"); }else if(S.equals(Cloudy)){ System.out.println("Rainy"); } else{ System.out.println("Sunny"); } }
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
u676443149|p02909|0
u676443149|p02909|0
codenet
Compile Error
225
v2_s543519551
s543519551
s543519551
p02909
p02909
u683353739
u683353739
1,593,031,016
2020-06-24T20:36:56
Main.java
import java.util.Scanner; public class Main { public static void main ( String[] args ) { Scanner sc = new Scanner ( System.in ); String S = sc.next(); if( "Sunny".equals(S)){ System.out.println("Cloudy"); }else if ( "Cloudy".equals(S)){ System.out.println("Rainy"); }else( "...
Main.java:14: error: not a statement }else( "Rainy".equals(S)){ ^ Main.java:14: error: ';' expected }else( "Rainy".equals(S)){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u683353739|p02909|1
u683353739|p02909|1
codenet
Compile Error
385
v2_s322111621
s322111621
s322111621
p02909
p02909
u687188289
u687188289
1,568,750,191
2019-09-17T19:56:31
Main.java
import java.util.*; public class Main { public static void main (String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String[] Weather = {"Sunny","Cloudy","Rainy"}; for(int i = 0, i < 3 , i++) { if(weather[i].equals(s)){ if(i < 2 ){ System.out.p...
Main.java:10: error: ';' expected for(int i = 0, i < 3 , i++) { ^ Main.java:10: error: illegal start of type for(int i = 0, i < 3 , i++) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u687188289|p02909|0
u687188289|p02909|0
codenet
Compile Error
433
v2_s093665479
s093665479
s093665479
p02909
p02909
u709751610
u709751610
1,570,468,869
2019-10-07T17:21:09
Main.java
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; if(s == "Sunny") cout << "Cloudy" << endl; else if(s == "Cloudy") cout << "Rainy" <<endl; else cout << "Sunny" << endl; }
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:6: error: not a statement cin >> s; ^ Main.java:8: error: not a statement if(s == "Sunny") cout << "Cloudy" << endl; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u709751610|p02909|0
u709751610|p02909|0
codenet
Compile Error
209
v2_s895176976
s895176976
s895176976
p02909
p02909
u720439461
u720439461
1,572,633,422
2019-11-01T18:37:02
Main.java
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); string s=sc next(); if(s==Sunny){ System.out.println("Cloudy"); } else if(s==Cloudy){ System.out.println("Rainy"); } else{ System.out.println("Sunny"); } } }
Main.java:7: error: ';' expected string s=sc next(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u720439461|p02909|0
u720439461|p02909|0
codenet
Compile Error
303
v2_s309151049
s309151049
s309151049
p02909
p02909
u720439461
u720439461
1,572,633,461
2019-11-01T18:37:41
Main.java
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); string s=sc.next(); if(s==Sunny){ System.out.println("Cloudy"); } else if(s==Cloudy){ System.out.println("Rainy"); } else{ System.out.println("Sunny"); } } }
Main.java:7: error: cannot find symbol string s=sc.next(); ^ symbol: class string location: class Main Main.java:9: error: cannot find symbol if(s==Sunny){ ^ symbol: variable Sunny location: class Main Main.java:12: error: cannot find symbol else if(s==Cloudy){ ^ symbol: var...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u720439461|p02909|0
u720439461|p02909|0
codenet
Compile Error
303
v2_s558023557
s558023557
s558023557
p02909
p02909
u720439461
u720439461
1,572,633,527
2019-11-01T18:38:47
Main.java
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); String s=sc.next(); if(s==Sunny){ System.out.println("Cloudy"); } else if(s==Cloudy){ System.out.println("Rainy"); } else{ System.out.println("Sunny"); } } }
Main.java:9: error: cannot find symbol if(s==Sunny){ ^ symbol: variable Sunny location: class Main Main.java:12: error: cannot find symbol else if(s==Cloudy){ ^ symbol: variable Cloudy location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u720439461|p02909|0
u720439461|p02909|0
codenet
Compile Error
303
v2_s455651310
s455651310
s455651310
p02909
p02909
u720439461
u720439461
1,572,633,694
2019-11-01T18:41:34
Main.java
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); String s=sc.next(); if(s.equals(Sunny)){ System.out.println("Cloudy"); } else if(s.equals(Cloudy)){ System.out.println("Rainy"); } else{ System.out.println("Sunny"); } } }
Main.java:9: error: cannot find symbol if(s.equals(Sunny)){ ^ symbol: variable Sunny location: class Main Main.java:12: error: cannot find symbol else if(s.equals(Cloudy)){ ^ symbol: variable Cloudy location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u720439461|p02909|0
u720439461|p02909|0
codenet
Compile Error
317
v2_s754920172
s754920172
s754920172
p02909
p02909
u747666335
u747666335
1,568,595,893
2019-09-16T01:04:53
Main.java
public class Main { public static void main(String[] args) throws Exception { String todayWeather = args[0]; if(todayWeather.equals("Sunny")){ System.out.println("Cloudy"); }else if(todayWeather.equals(Cloudy)){ System.out.println("Rainy"); } else{ ...
Main.java:6: error: cannot find symbol }else if(todayWeather.equals(Cloudy)){ ^ symbol: variable Cloudy location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u747666335|p02909|0
u747666335|p02909|0
codenet
Compile Error
367
v2_s190971671
s190971671
s190971671
p02909
p02909
u760238629
u760238629
1,568,595,829
2019-09-16T01:03:49
Main.java
public class Main{ public static void main(String [] args){ Scanner sc = new Scanner(System.in); String weather = sc.next(); if(weather.equals(Sunny)){ System.out.println("Cloudy"); }else if(weather.equals(Cloudy)){ System.out.println("Rainy"); }else if(weather.equals(Rainy...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760238629|p02909|0
u760238629|p02909|0
codenet
Compile Error
377
v2_s098739245
s098739245
s098739245
p02909
p02909
u760238629
u760238629
1,568,595,875
2019-09-16T01:04:35
Main.java
import java.util.*; public class Main{ public static void main(String [] args){ Scanner sc = new Scanner(System.in); String weather = sc.next(); if(weather.equals(Sunny)){ System.out.println("Cloudy"); }else if(weather.equals(Cloudy)){ System.out.println("Rainy"); }else if...
Main.java:7: error: cannot find symbol if(weather.equals(Sunny)){ ^ symbol: variable Sunny location: class Main Main.java:9: error: cannot find symbol }else if(weather.equals(Cloudy)){ ^ symbol: variable Cloudy location: class Main Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760238629|p02909|0
u760238629|p02909|0
codenet
Compile Error
399
v2_s489704627
s489704627
s489704627
p02909
p02909
u760718569
u760718569
1,572,127,202
2019-10-26T22:00:02
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String = a = sc.next(); if(a == "Sunny"){ System.out.println("Cloudy"); }else if(a == "Cloudy"){ System.out.println("Rainy"); }else if(a == "Rainy"){ System...
Main.java:5: error: cannot find symbol String = a = sc.next(); ^ symbol: variable String location: class Main Main.java:5: error: cannot find symbol String = a = sc.next(); ^ symbol: variable a location: class Main Main.java:6: error: cannot find symbol if(a == "Sunny"){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02909|0
u760718569|p02909|0
codenet
Compile Error
354
v2_s603830076
s603830076
s603830076
p02909
p02909
u760718569
u760718569
1,572,128,658
2019-10-26T22:24:18
Main.java
public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String a = sc.next(); char[] b = a.toCharArray(); String c = "Yes"; for(i = 0;i < b.length;i++){ if(i % 2 == 0 && b[i] != 'L' || b[i] != 'U' || b[i] != 'D' ){ c = "No"; }else if(i ...
Main.java:15: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02909|0
u760718569|p02909|0
codenet
Compile Error
437
v2_s399433902
s399433902
s399433902
p02909
p02909
u760718569
u760718569
1,572,128,701
2019-10-26T22:25:01
Main.java
public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String a = sc.next(); char[] b = a.toCharArray(); String c = "Yes"; for(i = 0;i < b.length;i++){ if(i % 2 == 0 && b[i] != 'L' || b[i] != 'U' || b[i] != 'D' ){ c = "No"; }else if(i ...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:7: error: cannot find s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02909|0
u760718569|p02909|0
codenet
Compile Error
445
v2_s802848175
s802848175
s802848175
p02909
p02909
u760718569
u760718569
1,572,128,768
2019-10-26T22:26:08
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String a = sc.next(); char[] b = a.toCharArray(); String c = "Yes"; for(i = 0;i < b.length;i++){ if(i % 2 == 0 && b[i] != 'L' || b[i] != 'U' || b[i] != 'D' ){ c...
Main.java:9: error: cannot find symbol for(i = 0;i < b.length;i++){ ^ symbol: variable i location: class Main Main.java:9: error: cannot find symbol for(i = 0;i < b.length;i++){ ^ symbol: variable i location: class Main Main.java:9: error: cannot find symbol for(i = 0;i < b...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02909|0
u760718569|p02909|0
codenet
Compile Error
472
v2_s618742990
s618742990
s618742990
p02909
p02909
u771486044
u771486044
1,568,667,851
2019-09-16T21:04:11
Main.java
import java.util.Scanner; public static void main(String[] args){ public static void main{ Scanner sc = new Scanner(System.in); String str = sc.nextInt(); switch (str){ case "Sunnny": System.out.println("Cloudy"); break; case "Cloudy": System.out.println("Rainy"); ...
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args){ ^ (use --enable-preview to enable unnamed classes) Main.java:4: error: illegal start of expression public static void main{ ^ Main.java:4: error: class, interface, enum, or ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771486044|p02909|0
u771486044|p02909|0
codenet
Compile Error
411
v2_s798252494
s798252494
s798252494
p02909
p02909
u787005274
u787005274
1,569,562,541
2019-09-27T05:35:41
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String S = sc.nextLine(); if(S.equals("Sunny")) { System.out.println("Cloud"); }else if(S.equals("Cloud")) { System.out.println("Rainy"); }else if(S.equals("Rainy")...
Main.java:11: error: cannot find symbol System.out.prinltn("Sunny"); ^ symbol: method prinltn(String) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787005274|p02909|0
u787005274|p02909|0
codenet
Compile Error
373
v2_s837316848
s837316848
s837316848
p02909
p02909
u800067314
u800067314
1,569,442,919
2019-09-25T20:21:59
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String weth = sc.nextLine(); String out = null; if(weth.equals("Sunny")){ out = Cloudy; }else if(weth.equals("Cloudy")){ out = Rainy; }else{ o...
Main.java:9: error: cannot find symbol out = Cloudy; ^ symbol: variable Cloudy location: class Main Main.java:11: error: cannot find symbol out = Rainy; ^ symbol: variable Rainy location: class Main Main.java:13: error: cannot find symbol out = Sunny; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u800067314|p02909|0
u800067314|p02909|0
codenet
Compile Error
378
v2_s626658695
s626658695
s626658695
p02909
p02909
u804197006
u804197006
1,571,005,155
2019-10-13T22:19:15
Main.java
import java.util.*; public class Main { public static void main(String[] args){ String S; if(S.equals("Sunny")){ System.out.println(S); }elseif(S.equals("Cloudy")){ System.out.println(S); }elseif(S.equals("Rainy")){ System.out.println(S); } } }
Main.java:8: error: ';' expected }elseif(S.equals("Cloudy")){ ^ Main.java:10: error: ';' expected }elseif(S.equals("Rainy")){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u804197006|p02909|0
u804197006|p02909|0
codenet
Compile Error
266
v2_s416808502
s416808502
s416808502
p02909
p02909
u804197006
u804197006
1,571,005,966
2019-10-13T22:32:46
Main.java
public class Main { public static void main(String[] args){ String today; String S; if(today.equals("Sunny")){ S = Cloudy; System.out.println(S); }else if(today.equals("Cloudy")){ S = Rainy; System.out.println(S); }else if(today.equals("Rainy")){ S = Sunny; System.out.println(S); } } }
Main.java:6: error: cannot find symbol S = Cloudy; ^ symbol: variable Cloudy location: class Main Main.java:9: error: cannot find symbol S = Rainy; ^ symbol: variable Rainy location: class Main Main.java:12: error: cannot find symbol S = Sunny; ^ symbol: variable Sunny lo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u804197006|p02909|0
u804197006|p02909|0
codenet
Compile Error
318
v2_s066699684
s066699684
s066699684
p02909
p02909
u804197006
u804197006
1,571,006,046
2019-10-13T22:34:06
Main.java
import java.util.*; public class Main { public static void main(String[] args){ String today; String S; if(today.equals("Sunny")){ S = "Cloudy"; System.out.println(S); }else if(today.equals("Cloudy")){ S = "Rainy"; System.out.println(S); }else if(today.equals("Rainy")){ S = "Sunny"; System....
Main.java:6: error: variable today might not have been initialized if(today.equals("Sunny")){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u804197006|p02909|0
u804197006|p02909|0
codenet
Compile Error
344
v2_s909552653
s909552653
s909552653
p02909
p02909
u804197006
u804197006
1,571,006,135
2019-10-13T22:35:35
Main.java
import java.util.*; public class Main { public static void main(String[] args){ String today = Sunny; String S; if(today.equals("Sunny")){ S = "Cloudy"; System.out.println(S); }else if(today.equals("Cloudy")){ S = "Rainy"; System.out.println(S); }else if(today.equals("Rainy")){ S = "Sunny"; ...
Main.java:4: error: cannot find symbol String today = Sunny; ^ symbol: variable Sunny location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u804197006|p02909|0
u804197006|p02909|0
codenet
Compile Error
352
v2_s276776697
s276776697
s276776697
p02909
p02909
u834042999
u834042999
1,568,596,086
2019-09-16T01:08:06
Main.java
public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String S = s.next(); String answer = null; if (S.equals("Sunny")) { answer = "Cloudy"; } else if (S.equals("Cloudy")) { answer = "Rainy"; } else i...
Main.java:4: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u834042999|p02909|0
u834042999|p02909|0
codenet
Compile Error
429
v2_s491751534
s491751534
s491751534
p02909
p02909
u863370423
u863370423
1,579,517,177
2020-01-20T10:46:17
Main.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * @param args the command line arguments */ public static void main(String[] args) { String x; S...
Main.java:10: 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
u863370423|p02909|3
u863370423|p02909|2
codenet
Compile Error
605
v2_s521856830
s521856830
s521856830
p02909
p02909
u863370423
u863370423
1,579,517,923
2020-01-20T10:58:43
Main.java
#include <stdio.h> #include <stdlib.h> int main() { char x[10]; scanf("%s",&x); if(x=="Sunny") printf("Cloudy"); else if(x=="Cloudy") printf("Rainy"); else if(x=="Rainy") printf("Sunny"); return 0; }
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:2: error: illegal character: '#' #include <stdlib.h> ^ Main.java:6: error: class, interface, enum, or record expected scanf("%s",&x); ^ M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p02909|3
u863370423|p02909|2
codenet
Compile Error
280
v2_s398872235
s398872235
s398872235
p02909
p02909
u863370423
u863370423
1,593,937,366
2020-07-05T08:22:46
Main1.java
import java.util.Scanner; public class Main1.java { public static void main(String[] args){ Scanner reader = new Scanner(System.in); String []d={"Sunny","Cloudy","Rainy"}; String input=reader.next(); switch(input){ case "Sunny": { System...
Main1.java:3: error: '{' expected public class Main1.java { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p02909|5
u863370423|p02909|4
codenet
Compile Error
680
v2_s209273897
s209273897
s209273897
p02909
p02909
u863544548
u863544548
1,589,056,593
2020-05-09T20:36:33
Main.java
public class Main{ public static void main(String args[]){ Scanner Weather=new Scanner(System.in); String str0=Weather; String str1="Sunny"; String str2="Cloudy"; String str3="Rainy"; if(str0==str1){ System.out.println("Cloudy"); }else if(str0==str2){ System.out....
Main.java:3: error: cannot find symbol Scanner Weather=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner Weather=new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863544548|p02909|0
u863544548|p02909|0
codenet
Compile Error
397
v2_s162258423
s162258423
s162258423
p02909
p02909
u863544548
u863544548
1,589,056,772
2020-05-09T20:39:32
Main.java
public class Main{ public static void main(String args[]){ Scanner Weather=new Scanner(System.in); String str0=Weather.nextLine(); String str1="Sunny"; String str2="Cloudy"; String str3="Rainy"; if(str0==str1){ System.out.println("Cloudy"); }else if(str0==str2){ ...
Main.java:3: error: cannot find symbol Scanner Weather=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner Weather=new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863544548|p02909|0
u863544548|p02909|0
codenet
Compile Error
408
v2_s205268901
s205268901
s205268901
p02909
p02909
u863544548
u863544548
1,589,056,818
2020-05-09T20:40:18
Main.java
public class Main{ public static void main(String args[]){ Scanner Weather=new Scanner(System.in); String str0=Weather.nextLine(); System.out.println("str0"); String str1="Sunny"; String str2="Cloudy"; String str3="Rainy"; if(str0==str1){ System.out.println("Cloud...
Main.java:3: error: cannot find symbol Scanner Weather=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner Weather=new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863544548|p02909|0
u863544548|p02909|0
codenet
Compile Error
445
v2_s922973440
s922973440
s922973440
p02909
p02909
u866462771
u866462771
1,569,335,520
2019-09-24T14:32:00
Main.java
import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner scan=new Scanner(System.in); String S=scanner.next(); if(S=="Sunny"){ System.out.println("Cloudy"); if(S=="Cloudy"){ System.out.println("Rainy"); if(S=="Rainy"){ System.out.println("Sunny"); ...
Main.java:6: error: cannot find symbol String S=scanner.next(); ^ symbol: variable scanner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866462771|p02909|0
u866462771|p02909|0
codenet
Compile Error
338
v2_s837565894
s837565894
s837565894
p02909
p02909
u866462771
u866462771
1,569,335,563
2019-09-24T14:32:43
Main.java
import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner scan=new Scanner(System.in); String S=Scanner.next(); if(S=="Sunny"){ System.out.println("Cloudy"); if(S=="Cloudy"){ System.out.println("Rainy"); if(S=="Rainy"){ System.out.println("Sunny"); ...
Main.java:6: error: non-static method next() cannot be referenced from a static context String S=Scanner.next(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866462771|p02909|0
u866462771|p02909|0
codenet
Compile Error
338
v2_s213415364
s213415364
s213415364
p02909
p02909
u866462771
u866462771
1,569,335,624
2019-09-24T14:33:44
Main.java
import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner scan=new Scanner(System.in); String S=scann.next(); if(S=="Sunny"){ System.out.println("Cloudy"); if(S=="Cloudy"){ System.out.println("Rainy"); if(S=="Rainy"){ System.out.println("Sunny"); }...
Main.java:6: error: cannot find symbol String S=scann.next(); ^ symbol: variable scann location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866462771|p02909|0
u866462771|p02909|0
codenet
Compile Error
336
v2_s614771348
s614771348
s614771348
p02909
p02909
u866462771
u866462771
1,569,359,168
2019-09-24T21:06:08
Main.java
import java.util.InputStreamReader; import java.util.BufferedReader; public class Main{ public static void main(String[]args){ InputStreamReader isr=new InputStreamReader(System.in); BufferedReader br=new BufferedReader(isr); String str=br.readLine(); if(str.equals("Sunny"){ System.out.println(...
Main.java:9: error: ')' expected if(str.equals("Sunny"){ ^ Main.java:12: error: ')' expected if(str.equals("Cloudy"){ ^ Main.java:15: error: ')' expected if(str.equals("Rainy"){ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866462771|p02909|1
u866462771|p02909|0
codenet
Compile Error
503
v2_s489545708
s489545708
s489545708
p02909
p02909
u866462771
u866462771
1,569,359,225
2019-09-24T21:07:05
Main.java
import java.util.InputStreamReader; import java.util.BufferedReader; public class Main{ public static void main(String[]args){ InputStreamReader isr=new InputStreamReader(System.in); BufferedReader br=new BufferedReader(isr); String str=br.readLine(); if(str.equals("Sunny")){ System.out.println...
Main.java:1: error: cannot find symbol import java.util.InputStreamReader; ^ symbol: class InputStreamReader location: package java.util Main.java:2: error: cannot find symbol import java.util.BufferedReader; ^ symbol: class BufferedReader location: package java.util Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866462771|p02909|1
u866462771|p02909|0
codenet
Compile Error
506
v2_s852030009
s852030009
s852030009
p02909
p02909
u866462771
u866462771
1,569,359,337
2019-09-24T21:08:57
Main.java
import java.io.InputStreamReader; import java.io.BufferedReader; public class Main{ public static void main(String[]args){ InputStreamReader isr=new InputStreamReader(System.in); BufferedReader br=new BufferedReader(isr); String str=br.readLine(); if(str.equals("Sunny")){ System.out.println("Cl...
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown String str=br.readLine(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866462771|p02909|1
u866462771|p02909|0
codenet
Compile Error
502
v2_s933731340
s933731340
s933731340
p02909
p02909
u866462771
u866462771
1,569,359,411
2019-09-24T21:10:11
Main.java
import java.io.InputStreamReader; import java.io.BufferedReader; public class Main{ public static void main(String[]args){ InputStreamReader isr=new InputStreamReader(System.in); BufferedReader br=new BufferedReader(isr); String str=null; str=br.readLine(); if(str.equals("Sunny")){ System...
Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown str=br.readLine(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866462771|p02909|1
u866462771|p02909|0
codenet
Compile Error
518
v2_s335317382
s335317382
s335317382
p02909
p02909
u866462771
u866462771
1,569,359,441
2019-09-24T21:10:41
Main.java
import java.io.InputStreamReader; import java.io.BufferedReader; public class Main{ public static void main(String[]args){ InputStreamReader isr=new InputStreamReader(System.in); BufferedReader br=new BufferedReader(isr); String str=null; str=br.readLine; if(str.equals("Sunny")){ System.o...
Main.java:9: error: cannot find symbol str=br.readLine; ^ symbol: variable readLine location: variable br of type BufferedReader 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866462771|p02909|1
u866462771|p02909|0
codenet
Compile Error
516
v2_s945362123
s945362123
s945362123
p02909
p02909
u866462771
u866462771
1,569,359,508
2019-09-24T21:11:48
Main.java
import java.io.InputStreamReader; import java.io.BufferedReader; public class Main{ public static void main(String[]args){ InputStreamReader isr=new InputStreamReader(System.in); BufferedReader br=new BufferedReader(isr); String str=null; str=br.readLine(); if(str.equals("Sunny")){ System...
Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown str=br.readLine(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866462771|p02909|1
u866462771|p02909|0
codenet
Compile Error
518
v2_s032458264
s032458264
s032458264
p02909
p02909
u866462771
u866462771
1,569,445,796
2019-09-25T21:09:56
Main.java
import java.io.InputStreamReader; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStream; public class Main{ public enum whether{ //天気を列挙 Sunny, Cloudy, Rainy } public static void main(String[]args){ InputStreamReader...
Main.java:24: error: cannot find symbol case Sunny: ^ symbol: variable Sunny location: class Main Main.java:27: error: cannot find symbol case Cloudy: ^ symbol: variable Cloudy location: class Main Main.java:30: error: cannot find symbol case Rainy: ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866462771|p02909|2
u866462771|p02909|1
codenet
Compile Error
1,015
v2_s772374707
s772374707
s772374707
p02909
p02909
u870915337
u870915337
1,568,595,949
2019-09-16T01:05:49
Main.java
import java.util.*; public class Main{ public static void main(String [] args){ Scanner sc = new Scanner(System.in); int S = sc.nextLine(); int N; if(S == Cloudy) N = Rainy; if(S == Rainy) N = Sunny; if(S == Sunny) N = Cloudy; System.out.println(N); } }
Main.java:5: error: incompatible types: String cannot be converted to int int S = sc.nextLine(); ^ Main.java:7: error: cannot find symbol if(S == Cloudy) N = Rainy; ^ symbol: variable Cloudy location: class Main Main.java:7: error: cannot find symbol if...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u870915337|p02909|0
u870915337|p02909|0
codenet
Compile Error
316
v2_s508675792
s508675792
s508675792
p02909
p02909
u874000404
u874000404
1,568,653,515
2019-09-16T17:05:15
Main.java
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); HashMap<String, String> weather = new Map(); weather.put("Sunny", "Cloudy"); weather.put("Cloudy", "Rainy"); ...
Main.java:8: error: Map is abstract; cannot be instantiated HashMap<String, String> weather = new Map(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u874000404|p02909|0
u874000404|p02909|0
codenet
Compile Error
1,129
v2_s018892380
s018892380
s018892380
p02909
p02909
u899530879
u899530879
1,570,352,486
2019-10-06T09:01:26
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); if(S.equals(Sunny)) { System.out.println("Cloudy"); } else if (S.equals(Cloudy)) { System.out.println("Rainy"); } else if (S.equals(Rainy)) { ...
Main.java:8: error: cannot find symbol if(S.equals(Sunny)) { ^ symbol: variable Sunny location: class Main Main.java:10: error: cannot find symbol } else if (S.equals(Cloudy)) { ^ symbol: variable Cloudy location: class Main Main.java:12: error: cannot find sy...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u899530879|p02909|0
u899530879|p02909|0
codenet
Compile Error
362
v2_s011526782
s011526782
s011526782
p02909
p02909
u902482201
u902482201
1,590,723,635
2020-05-29T03:40:35
Main.java
import java.util.Scanner; import java.util.List; import java.util.ArrayList; import java.util.Comparator; import java.util.Arrays; import java.util.Collections; import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int S = scan.next(); if(S.equals("...
Main.java:11: error: incompatible types: String cannot be converted to int int S = scan.next(); ^ Main.java:12: error: int cannot be dereferenced if(S.equals("Sunny")){ ^ Main.java:15: error: int cannot be dereferenced else if(S.equals("Cloudy")){ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u902482201|p02909|0
u902482201|p02909|0
codenet
Compile Error
502
v2_s289198281
s289198281
s289198281
p02909
p02909
u903557324
u903557324
1,568,865,761
2019-09-19T04:02:41
Main.java
import java.util.* class Main{ public static void main(String[] args){ Map<String,String> tommorowWeatherMap = new HashMap<String, String>(){ { put("Sunny", "Cloudy"); put("Cloudy", "Rainy"); put("Rainy", "Sunny"); } } Scanner s...
Main.java:1: error: ';' expected import java.util.* ^ Main.java:12: error: ';' expected } ^ Main.java:15: error: ';' expected System.out.println(tommorowWeatherMap.get(todayWeather)) ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u903557324|p02909|0
u903557324|p02909|0
codenet
Compile Error
461
v2_s496602954
s496602954
s496602954
p02909
p02909
u903557324
u903557324
1,568,865,796
2019-09-19T04:03:16
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Map<String,String> tommorowWeatherMap = new HashMap<String, String>(){ { put("Sunny", "Cloudy"); put("Cloudy", "Rainy"); put("Rainy", "Sunny"); } } Scanner ...
Main.java:12: error: ';' expected } ^ Main.java:15: error: ';' expected System.out.println(tommorowWeatherMap.get(todayWeather)) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u903557324|p02909|0
u903557324|p02909|0
codenet
Compile Error
463
v2_s448490523
s448490523
s448490523
p02909
p02909
u903557324
u903557324
1,568,865,837
2019-09-19T04:03:57
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Map<String,String> tommorowWeatherMap = new HashMap<String, String>(){ { put("Sunny", "Cloudy"); put("Cloudy", "Rainy"); put("Rainy", "Sunny"); } }; Scanner...
Main.java:15: error: ';' expected System.out.println(tommorowWeatherMap.get(todayWeather)) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u903557324|p02909|0
u903557324|p02909|0
codenet
Compile Error
464
v2_s537068528
s537068528
s537068528
p02909
p02909
u915981080
u915981080
1,568,595,766
2019-09-16T01:02:46
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); String T; if ("Sunny".equals(S)) { T = "Cloudy"; } else if ("Cloudy".equals(S)) { T = "Rainy"; } else if ("Rainly".equals(S)) { ...
Main.java:16: error: variable T might not have been initialized System.out.println(T); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u915981080|p02909|0
u915981080|p02909|0
codenet
Compile Error
372
v2_s394170579
s394170579
s394170579
p02909
p02909
u921681484
u921681484
1,568,595,782
2019-09-16T01:03:02
MainTest.java
import org.junit.Test; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.assertThat; public class MainTest { @Test public void test1() { String input = "Sunny"; ...
MainTest.java:1: error: package org.junit does not exist import org.junit.Test; ^ MainTest.java:7: error: package org.hamcrest does not exist import static org.hamcrest.CoreMatchers.is; ^ MainTest.java:7: error: static import only from classes and interfaces import static org.h...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u921681484|p02909|0
u921681484|p02909|0
codenet
Compile Error
897
v2_s249954187
s249954187
s249954187
p02909
p02909
u946973499
u946973499
1,572,553,390
2019-10-31T20:23:10
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); String S = sc.nextLine(); if(S =="Sunny"){ System.out.println("Cloudy"); } if(S=="Cloudy"){ System.out.println("Rainy"); } if(S=="Rainy"){ ...
Main.java:17: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u946973499|p02909|0
u946973499|p02909|0
codenet
Compile Error
382