실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:5:15: error: incomplete type ‘std::ios_base’ used in nested name specifier 5 | ios_base::sync_with_stdio(false); | ^~~~~~~~~~~~~~~ Main.cpp:6:5: error: ‘cin’ was not declared in this scope 6 | cin.tie(nullptr); | ^~~ Main.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? 1 | #include <string> +++ |+#include <iostream> 2 | using namespace std; Main.cpp:7:5: error: ‘cout’ was not declared in this scope 7 | cout.tie(nullptr); | ^~~~ Main.cpp:7:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? Main.cpp:13:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 13 | while (index < s1.size() && index < s2.size()) { | ~~~~~~^~~~~~~~~~~ Main.cpp:13:39: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 13 | while (index < s1.size() && index < s2.size()) { | ~~~~~~^~~~~~~~~~~ Main.cpp:15:20: error: expected ‘;’ before ‘}’ token 15 | ++index | ^ | ; 16 | } | ~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.