실행 실패 (제출 코드 컴파일 에러)
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:30: error: ‘byte’ has not been declared 10 | void DFS(int depth, int sum, byte[] people, bool[] check) | ^~~~ Main.cpp:10:37: error: expected ‘,’ or ‘...’ before ‘people’ 10 | void DFS(int depth, int sum, byte[] people, bool[] check) | ^~~~~~ Main.cpp: In function ‘void DFS(int, int, int*)’: Main.cpp:12:18: error: ‘nm’ was not declared in this scope 12 | if (depth == nm[1]) | ^~ Main.cpp:14:18: error: ‘Math’ was not declared in this scope 14 | answer = Math.Max(sum, answer); | ^~~~ Main.cpp:17:17: error: ‘arr’ was not declared in this scope 17 | int count = arr[depth][0], n = 0; | ^~~ Main.cpp:19:5: error: ‘byte’ was not declared in this scope 19 | byte[] backup = new byte[nm[0] + 1]; | ^~~~ Main.cpp:19:10: error: expected primary-expression before ‘]’ token 19 | byte[] backup = new byte[nm[0] + 1]; | ^ Main.cpp:20:5: error: ‘Array’ was not declared in this scope 20 | Array.Copy(people, backup, people.Length); | ^~~~~ Main.cpp:20:16: error: ‘people’ was not declared in this scope 20 | Array.Copy(people, backup, people.Length); | ^~~~~~ Main.cpp:20:24: error: ‘backup’ was not declared in this scope 20 | Array.Copy(people, backup, people.Length); | ^~~~~~ Main.cpp:23:9: error: ‘n’ was not declared in this scope 23 | n |= people[arr[depth][i]]; | ^ Main.cpp:33:9: error: ‘check’ was not declared in this scope 33 | check[depth] = true; | ^~~~~ Main.cpp:39:33: error: ‘check’ was not declared in this scope 39 | 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); | ^~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.