실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:3:5: error: ‘string’ was not declared in this scope 3 | string str; | ^~~~~~ Main.cpp:4:13: error: ‘cin’ was not declared in this scope 4 | getline(cin, str); | ^~~ Main.cpp:4:18: error: ‘str’ was not declared in this scope; did you mean ‘std’? 4 | getline(cin, str); | ^~~ | std Main.cpp:4:5: error: ‘getline’ was not declared in this scope 4 | getline(cin, str); | ^~~~~~~ Main.cpp:8:9: error: ‘size_t’ was not declared in this scope 8 | for(size_t i = 0; i < str.length(); i++){ | ^~~~~~ Main.cpp:1:1: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’? +++ |+#include <cstddef> 1 | Main.cpp:8:23: error: ‘i’ was not declared in this scope 8 | for(size_t i = 0; i < str.length(); i++){ | ^ Main.cpp:15:5: error: ‘cout’ was not declared in this scope; did you mean ‘count’? 15 | cout << count << '\n'; | ^~~~ | count
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.