실행 실패 (제출 코드 컴파일 에러)
Main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import<iostream> | ^~~~~~ Main.cpp:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 2 | main(int b){auto a;std::cin>>a>>b;std::cout<<stoi(a,0,b);} | ^~~~ Main.cpp:2:1: warning: ‘int main(int)’ takes only zero or two arguments [-Wmain] Main.cpp: In function ‘int main(int)’: Main.cpp:2:13: error: declaration of ‘auto a’ has no initializer 2 | main(int b){auto a;std::cin>>a>>b;std::cout<<stoi(a,0,b);} | ^~~~ Main.cpp:2:46: error: ‘stoi’ was not declared in this scope; did you mean ‘std::__cxx11::stoi’? 2 | main(int b){auto a;std::cin>>a>>b;std::cout<<stoi(a,0,b);} | ^~~~ | std::__cxx11::stoi In file included from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/basic_string.h:6750:3: note: ‘std::__cxx11::stoi’ declared here 6750 | stoi(const wstring& __str, size_t* __idx = 0, int __base = 10) | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.