실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘std::string add(std::string, std::string)’: Main.cpp:59:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 59 | for (int i = 0; i < result.size(); i++) | ~~^~~~~~~~~~~~~~~ Main.cpp:80:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 80 | if (i < s1.size()) | ~~^~~~~~~~~~~ Main.cpp:101:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 101 | if (i < s2.size()) | ~~^~~~~~~~~~~ Main.cpp: In function ‘bool isFormerBiggerThanLatter(std::string, std::string)’: Main.cpp:236:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 236 | for (int i = 0; i < s1.length(); i++) | ~~^~~~~~~~~~~~~ Main.cpp: In function ‘std::string subtract(std::string, std::string)’: Main.cpp:366:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 366 | for (int i = 0; i < result.size(); i++) | ~~^~~~~~~~~~~~~~~ Main.cpp:428:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 428 | if (i < s2.size()) | ~~^~~~~~~~~~~ Main.cpp:551:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 551 | for (int i = 0; i < result.size(); i++) | ~~^~~~~~~~~~~~~~~ Main.cpp:597:37: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 597 | if (firstNonZeroIdx == result.size()) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ Main.cpp: At global scope: Main.cpp:848:5: error: found ‘:’ in nested-name-specifier, expected ‘::’ 848 | 출처: https://jaimemin.tistory.com/1547 [꾸준함:티스토리] | ^ | :: Main.cpp:848:1: error: ‘출처’ does not name a type 848 | 출처: https://jaimemin.tistory.com/1547 [꾸준함:티스토리] | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.