실행 실패 (제출 코드 컴파일 에러)
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[] info = 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 ‘info’ 2 | int[] info = F(); | ^~~~ Main.cpp:3:1: error: ‘List’ does not name a type 3 | List<int> arr = F().OrderByDescending(x => x).ToList(); | ^~~~ Main.cpp:4:12: error: ‘arr’ was not declared in this scope 4 | int prev = arr[0]; | ^~~ Main.cpp:6:1: error: expected unqualified-id before ‘if’ 6 | if (info[0] == 1) | ^~ Main.cpp:8:1: error: expected unqualified-id before ‘else’ 8 | else | ^~~~ Main.cpp:22:1: error: ‘Console’ does not name a type 22 | Console.WriteLine(prev); | ^~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.