실행 실패 (제출 코드 컴파일 에러)
Main.cpp:1:7: error: expected nested-name-specifier before ‘System’ 1 | using System; | ^~~~~~ Main.cpp:5:22: error: ‘string’ has not been declared 5 | static void Main(string[] args) | ^~~~~~ Main.cpp:5:31: error: expected ‘,’ or ‘...’ before ‘args’ 5 | static void Main(string[] args) | ^~~~ Main.cpp:42:2: error: expected ‘;’ after class definition 42 | } | ^ | ; Main.cpp: In static member function ‘static void WriteLiterally::Main(int*)’: Main.cpp:10:14: error: ‘string’ was not declared in this scope 10 | List<string> outputs = new List<string>(); | ^~~~~~ Main.cpp:10:9: error: ‘List’ was not declared in this scope 10 | List<string> outputs = new List<string>(); | ^~~~ Main.cpp:10:22: error: ‘outputs’ was not declared in this scope 10 | List<string> outputs = new List<string>(); | ^~~~~~~ Main.cpp:10:36: error: ‘List’ does not name a type 10 | List<string> outputs = new List<string>(); | ^~~~ Main.cpp:10:49: error: expected primary-expression before ‘)’ token 10 | List<string> outputs = new List<string>(); | ^ Main.cpp:15:20: error: expected ‘;’ before ‘input’ 15 | string input = Console.ReadLine(); | ^~~~~ Main.cpp:22:17: error: ‘input’ was not declared in this scope; did you mean ‘int’? 22 | if (input != "" && input.Substring(0, 1) != " " && input.Substring(input.Length - 1, 1) != " " && input.Length <= 100) | ^~~~~ | int Main.cpp:31:33: error: expected ‘)’ before ‘output’ 31 | foreach (string output in outputs) | ^~~~~~ Main.cpp:31:25: note: to match this ‘(’ 31 | foreach (string output in outputs) | ^ Main.cpp:31:17: error: ‘foreach’ was not declared in this scope 31 | foreach (string output in outputs) | ^~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.