실행 실패 (제출 코드 컴파일 에러)
Main.cpp:1:2: error: invalid preprocessing directive #incldue; did you mean #include? 1 | #incldue <iostream> | ^~~~~~~ | include Main.cpp: In function ‘int factorial(int)’: Main.cpp:6:6: error: expected ‘(’ before ‘n’ 6 | if n == 0 return 1; | ^ | ( Main.cpp:7:3: error: ‘else’ without a previous ‘if’ 7 | else return (n * factorial(n - 1) ) % 1000000000; | ^~~~ Main.cpp: In function ‘int main()’: Main.cpp:11:3: error: ‘ios_base’ has not been declared 11 | ios_base::sync_with_stdio(false); | ^~~~~~~~ Main.cpp:12:3: error: ‘cin’ was not declared in this scope 12 | cin.tie(nullptr); cout.tie(nullptr); | ^~~ Main.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? +++ |+#include <iostream> 1 | #incldue <iostream> Main.cpp:12:21: error: ‘cout’ was not declared in this scope 12 | cin.tie(nullptr); cout.tie(nullptr); | ^~~~ Main.cpp:12:21: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? Main.cpp:21:3: error: ‘string’ was not declared in this scope 21 | string s = to_string(ans); | ^~~~~~ Main.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’? +++ |+#include <string> 1 | #incldue <iostream> Main.cpp:23:15: error: ‘s’ was not declared in this scope 23 | for(int i = s.size() - 1; i >= 0 ; i-- ){ | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.