실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.kt:3:2: error: syntax error: Expecting member declaration.\n\tstatic void main(String[]z){\n ^^^^^^\nMain.kt:3:9: error: syntax error: Expecting member declaration.\n\tstatic void main(String[]z){\n ^^^^\nMain.kt:3:14: error: syntax error: Expecting member declaration.\n\tstatic void main(String[]z){\n ^^^^\nMain.kt:3:18: error: syntax error: Expecting member declaration.\n\tstatic void main(String[]z){\n ^\nMain.kt:3:19: error: syntax error: Expecting member declaration.\n\tstatic void main(String[]z){\n ^^^^^^\nMain.kt:3:25: error: syntax error: Expecting member declaration.\n\tstatic void main(String[]z){\n ^\nMain.kt:3:26: error: syntax error: Expecting member declaration.\n\tstatic void main(String[]z){\n ^\nMain.kt:3:27: error: syntax error: Expecting member declaration.\n\tstatic void main(String[]z){\n ^\nMain.kt:3:28: error: syntax error: Expecting member declaration.\n\tstatic void main(String[]z){\n ^\nMain.kt:3:29: error: syntax error: Expecting member declaration.\n\tstatic void main(String[]z){\n ^\nMain.kt:3:29: error: function declaration must have a name.\n\tstatic void main(String[]z){\n ^\nMain.kt:4:11: error: unresolved reference 's'.\n\t\tScanner s=new Scanner(System.in);\n ^\nMain.kt:4:12: error: syntax error: Expecting an element.\n\t\tScanner s=new Scanner(System.in);\n ^\nMain.kt:4:17: error: none of the following candidates is applicable:\nconstructor(p0: Readable!, p1: Pattern!): Scanner\nconstructor(p0: File!, p1: CharsetDecoder!): Scanner\n\t\tScanner s=new Scanner(System.in);\n ^^^^^^^\nMain.kt:4:25: error: classifier 'class System : Any' does not have a companion object, so it cannot be used as an expression.\n\t\tScanner s=new Scanner(System.in);\n ^^^^^^\nMain.kt:4:32: error: syntax error: Expecting an element.\n\t\tScanner s=new Scanner(System.in);\n ^^\nMain.kt:5:10: error: unresolved reference 'a'.\n\t\tString a=s.nextLine(),b=s.nextLine();\n ^\nMain.kt:5:11: error: syntax error: Expecting an element.\n\t\tString a=s.nextLine(),b=s.nextLine();\n ^\nMain.kt:5:13: error: syntax error: Expecting an element.\n\t\tString a=s.nextLine(),b=s.nextLine();\n ^\nMain.kt:5:23: error: syntax error: Expecting an expression.\n\t\tString a=s.nextLine(),b=s.nextLine();\n ^\nMain.kt:5:24: error: syntax error: Unexpected tokens (use ';' to separate expressions on the same line).\n\t\tString a=s.nextLine(),b=s.nextLine();\n ^^^^^^^^^^^^^^^\nMain.kt:5:39: error: syntax error: Expecting an element.\n\t\tString a=s.nextLine(),b=s.nextLine();\n ^\nMain.kt:6:3: error: unresolved reference 'int'.\n\t\tint C=0,i=0,x=a.length(),y=b.length();\n ^^^\nMain.kt:6:8: error: syntax error: Expecting an element.\n\t\tint C=0,i=0,x=a.length(),y=b.length();\n ^\nMain.kt:6:9: error: syntax error: Unexpected tokens (use ';' to separate expressions on the same line).\n\t\tint C=0,i=0,x=a.length(),y=b.length();\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nMain.kt:6:40: error: syntax error: Expecting an element.\n\t\tint C=0,i=0,x=a.length(),y=b.length();\n ^\nMain.kt:7:3: error: only expressions are allowed here.\n\t\tfor(;i<=x-y;i++)if(a.substring(i,i+y).equals(b)){\n ^^^^^^\nMain.kt:7:3: error: method 'iterator()' is ambiguous for this expression. Applicable candidates:\nfun <T> Enumeration<T>.iterator(): Iterator<T>\nfun <T> Iterator<T>.iterator(): Iterator<T>\nfun <K, V> Map<out K, V>.iterator(): Iterator<Map.Entry<K, V>>\nfun <K, V> MutableMap<K, V>.iterator(): MutableIterator<MutableMap.MutableEntry<K, V>>\nfun CharSequence.iterator(): CharIterator\nfun BufferedInputStream.iter(...truncated, total 5657 characters, 1 lines)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.