실행 실패 (제출 코드 컴파일 에러)
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:6:1: error: expected unqualified-id before ‘for’ 6 | for (int i = 1; i <= data[0]; i++) | ^~~ Main.cpp:6:17: error: ‘i’ does not name a type 6 | for (int i = 1; i <= data[0]; i++) | ^ Main.cpp:6:31: error: ‘i’ does not name a type 6 | for (int i = 1; i <= data[0]; i++) | ^ Main.cpp:8:4: error: structured binding declaration cannot have type ‘int’ 8 | int[][] arr = new int[nm[1]][]; | ^~ Main.cpp:8:4: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’ Main.cpp:8:4: error: empty structured binding declaration Main.cpp:8:6: error: expected initializer before ‘[’ token 8 | int[][] arr = new int[nm[1]][]; | ^ Main.cpp:9:1: error: expected unqualified-id before ‘for’ 9 | for (int i = 0; i < nm[1]; i++) | ^~~ Main.cpp:9:21: error: ‘nm’ was not declared in this scope 9 | for (int i = 0; i < nm[1]; i++) | ^~ Main.cpp:9:21: error: ‘nm’ was not declared in this scope Main.cpp:9:21: error: ‘nm’ was not declared in this scope Main.cpp:9:21: error: ‘nm’ was not declared in this scope Main.cpp:9:21: error: ‘nm’ was not declared in this scope Main.cpp:9:21: error: ‘nm’ was not declared in this scope Main.cpp:9:21: error: ‘nm’ was not declared in this scope Main.cpp:9:21: error: ‘nm’ was not declared in this scope Main.cpp:9:21: error: ‘nm’ was not declared in this scope Main.cpp:9:17: error: ‘i’ does not name a type 9 | for (int i = 0; i < nm[1]; i++) | ^ Main.cpp:9:28: error: ‘i’ does not name a type 9 | for (int i = 0; i < nm[1]; i++) | ^ Main.cpp:11:30: error: ‘byte’ has not been declared 11 | void DFS(int depth, int sum, byte[] people, bool[] check) | ^~~~ Main.cpp:11:37: error: expected ‘,’ or ‘...’ before ‘people’ 11 | void DFS(int depth, int sum, byte[] people, bool[] check) | ^~~~~~ Main.cpp: In function ‘void DFS(int, int, int*)’: Main.cpp:13:18: error: ‘nm’ was not declared in this scope 13 | if (depth == nm[1]) | ^~ Main.cpp:15:18: error: ‘Math’ was not declared in this scope 15 | answer = Math.Max(sum, answer); | ^~~~ Main.cpp:18:17: error: ‘arr’ was not declared in this scope 18 | int count = arr[depth][0], n = 0; | ^~~ Main.cpp:20:5: error: ‘byte’ was not declared in this scope 20 | byte[] backup = new byte[nm[0] + 1]; | ^~~~ Main.cpp:20:10: error: expected primary-expression before ‘]’ token 20 | byte[] backup = new byte[nm[0] + 1]; | ^ Main.cpp:21:5: error: ‘Array’ was not declared in this scope 21 | Array.Copy(people, backup, people.Length); | ^~~~~ Main.cpp:21:16: error: ‘people’ was not declared in this scope 21 | Array.Copy(people, backup, people.Length); | ^~~~~~ Main.cpp:21:24: error: ‘backup’ was not declared in this scope 21 | Array.Copy(people, backup, people.Length); | ^~~~~~ Main.cpp:24:9: error: ‘n’ was not declared in this scope 24 | n |= people[arr[depth][i]]; | ^ Main.cpp:34:9: error: ‘check’ was not declared in this scope 34 | check[depth] = true; | ^~~~~ Main.cpp:40:33: error: ‘check’ was not declared in this scope 40 | DFS(depth + 1, sum, backup, check); | ^~~~~ Main.cpp: At global scope: Main.cpp:42:4: error: expected constructor, destructor, or type conversion before ‘(’ token 42 | DFS(0, 0, bytes, new bool[nm[1]]); | ^ Main.cpp:43:1: error: ‘Console’ does not name a type 43 | Console.WriteLine(answer); | ^~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.