실행 실패 (제출 코드 컴파일 에러)
Main.java:20: error: incompatible types: String cannot be converted to int int prev = parse(str[0]);//기본값 0번째 ^ Main.java:22: error: cannot find symbol for (int i = 1; i < str.length(); i++) { ^ symbol: method length() location: variable str of type String[] Main.java:24: error: cannot find symbol diff = parse(Math.abs(str[i] - sum)); ^ symbol: variable sum location: class Main Main.java:27: error: incompatible types: String cannot be converted to int prev = str[i]; ^ Main.java:33: error: bad operand types for binary operator '-' if (Math.abs(str[i] - prev) != diff) { ^ first type: String second type: int Main.java:41: error: incompatible types: int cannot be converted to String return Integer.parseInt(i); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 6 errors
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.