실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:15:21: warning: comparison of integer expressions of different signedness: ‘ll’ {aka ‘long long int’} and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 15 | for(ll i = 1; i <= op.length(); i++){ | ~~^~~~~~~~~~~~~~ Main.cpp:18:59: error: ‘d’ was not declared in this scope 18 | else if(i > 1 && op[i-1] == op[i-2] && op[i-1] == d[0]) arr[s.size()] = arr[s.size()-1]; | ^ Main.cpp:21:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 21 | if(arr[s.size()] == b.length()) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ Main.cpp:22:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 22 | for(int i = 0; i < b.length(); i++) s.pop(); | ~~^~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.