실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:2:5: error: ‘ios’ has not been declared 2 | ios::sync_with_stdio(false); | ^~~ Main.cpp:3:5: error: ‘cin’ was not declared in this scope 3 | cin.tie(NULL); | ^~~ Main.cpp:3:13: error: ‘NULL’ was not declared in this scope 3 | cin.tie(NULL); | ^~~~ Main.cpp:1:1: note: ‘NULL’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’? +++ |+#include <cstddef> 1 | int main() { Main.cpp:7:5: error: ‘string’ was not declared in this scope 7 | string s = ""; | ^~~~~~ Main.cpp:11:9: error: ‘getchar’ was not declared in this scope 11 | getchar(); | ^~~~~~~ Main.cpp:1:1: note: ‘getchar’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? +++ |+#include <cstdio> 1 | int main() { Main.cpp:12:16: error: ‘s’ was not declared in this scope 12 | cin >> s; | ^ Main.cpp:32:17: error: ‘cout’ was not declared in this scope 32 | cout << (arr[t] ? 1 : 0) << "\n"; | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.