실행 실패 (제출 코드 컴파일 에러)
Main.cpp:1:7: error: expected nested-name-specifier before ‘var’ 1 | using var R = new StreamReader(Console.OpenStandardInput()); | ^~~ Main.cpp:2:7: error: expected nested-name-specifier before ‘var’ 2 | using var W = new StreamWriter(Console.OpenStandardOutput()); | ^~~ Main.cpp:3:4: error: structured binding declaration cannot have type ‘int’ 3 | int[] F() => Array.ConvertAll(R.ReadLine().Split(), int.Parse); | ^~ Main.cpp:3:4: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’ Main.cpp:3:4: error: empty structured binding declaration Main.cpp:3:7: error: expected initializer before ‘F’ 3 | int[] F() => Array.ConvertAll(R.ReadLine().Split(), int.Parse); | ^ Main.cpp:4:4: error: structured binding declaration cannot have type ‘int’ 4 | int[] arr; | ^~ Main.cpp:4:4: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’ Main.cpp:4:4: error: empty structured binding declaration Main.cpp:4:7: error: expected initializer before ‘arr’ 4 | int[] arr; | ^~~ Main.cpp:5:1: error: expected unqualified-id before ‘while’ 5 | while ((arr = F())[0] != 0) | ^~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.