실행 실패 (제출 코드 컴파일 에러)
Main.cpp:1:4: error: structured binding declaration cannot have type ‘int’ 1 | int[] F() => Array.ConvertAll(Console.ReadLine().Split(), int.Parse); | ^~ Main.cpp:1:4: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’ Main.cpp:1:4: error: empty structured binding declaration Main.cpp:1:7: error: expected initializer before ‘F’ 1 | int[] F() => Array.ConvertAll(Console.ReadLine().Split(), int.Parse); | ^ Main.cpp:2:4: error: structured binding declaration cannot have type ‘int’ 2 | int[] nm = F(), data = F(); | ^~ Main.cpp:2:4: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’ Main.cpp:2:4: error: empty structured binding declaration Main.cpp:2:7: error: expected initializer before ‘nm’ 2 | int[] nm = F(), data = F(); | ^~ Main.cpp:3:1: error: ‘byte’ does not name a type 3 | byte[] bytes = new byte[nm[0] + 1]; | ^~~~ Main.cpp:5:1: error: expected unqualified-id before ‘for’ 5 | for (int i = 1; i <= data[0]; i++) | ^~~ Main.cpp:5:17: error: ‘i’ does not name a type 5 | for (int i = 1; i <= data[0]; i++) | ^ Main.cpp:5:31: error: ‘i’ does not name a type 5 | for (int i = 1; i <= data[0]; i++) | ^ Main.cpp:7:4: error: structured binding declaration cannot have type ‘int’ 7 | int[][] arr = new int[nm[1]][]; | ^~ Main.cpp:7:4: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’ Main.cpp:7:4: error: empty structured binding declaration Main.cpp:7:6: error: expected initializer before ‘[’ token 7 | int[][] arr = new int[nm[1]][]; | ^ Main.cpp:8:1: error: expected unqualified-id before ‘for’ 8 | for (int i = 0; i < nm[1]; i++) | ^~~ Main.cpp:8:21: error: ‘nm’ was not declared in this scope 8 | for (int i = 0; i < nm[1]; i++) | ^~ Main.cpp:8:21: error: ‘nm’ was not declared in this scope Main.cpp:8:21: error: ‘nm’ was not declared in this scope Main.cpp:8:21: error: ‘nm’ was not declared in this scope Main.cpp:8:21: error: ‘nm’ was not declared in this scope Main.cpp:8:21: error: ‘nm’ was not declared in this scope Main.cpp:8:21: error: ‘nm’ was not declared in this scope Main.cpp:8:21: error: ‘nm’ was not declared in this scope Main.cpp:8:21: error: ‘nm’ was not declared in this scope Main.cpp:8:17: error: ‘i’ does not name a type 8 | for (int i = 0; i < nm[1]; i++) | ^ Main.cpp:8:28: error: ‘i’ does not name a type 8 | for (int i = 0; i < nm[1]; i++) | ^ Main.cpp:10:4: error: expected constructor, destructor, or type conversion before ‘(’ token 10 | DFS(0, 0, bytes, new bool[nm[1]]); | ^ Main.cpp:11:1: error: ‘Console’ does not name a type 11 | Console.WriteLine(answer); | ^~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.