Testcase AC (Beta)

제출 #47788

제출 정보

실행 실패 (제출 코드 컴파일 에러)

Main.cpp: In function ‘int main()’:
Main.cpp:26:38: error: ‘std::map<int, std::pair<int, std::__cxx11::list<std::__cxx11::basic_string<char> > > >::iterator’ {aka ‘std::_Rb_tree<int, std::pair<const int, std::pair<int, std::__cxx11::list<std::__cxx11::basic_string<char> > > >, std::_Select1st<std::pair<const int, std::pair<int, std::__cxx11::list<std::__cxx11::basic_string<char> > > > >, std::less<int>, std::allocator<std::pair<const int, std::pair<int, std::__cxx11::list<std::__cxx11::basic_string<char> > > > > >::iterator’} has no member named ‘first’
   26 |       int CurAge = mapPeople.begin().first;
      |                                      ^~~~~
Main.cpp:27:48: error: ‘std::map<int, std::pair<int, std::__cxx11::list<std::__cxx11::basic_string<char> > > >::iterator’ {aka ‘std::_Rb_tree<int, std::pair<const int, std::pair<int, std::__cxx11::list<std::__cxx11::basic_string<char> > > >, std::_Select1st<std::pair<const int, std::pair<int, std::__cxx11::list<std::__cxx11::basic_string<char> > > > >, std::less<int>, std::allocator<std::pair<const int, std::pair<int, std::__cxx11::list<std::__cxx11::basic_string<char> > > > > >::iterator’} has no member named ‘second’
   27 |       list<string> CurName = mapPeople.begin().second;
      |                                                ^~~~~~
Main.cpp:32:51: error: ‘std::__cxx11::list<std::__cxx11::basic_string<char> >::iterator’ has no member named ‘c_str’
   32 |           printf("%d %s", CurAge, CurName.begin().c_str());
      |                                                   ^~~~~
Main.cpp:12:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   12 |   scanf("%d", &iN);
      |   ~~~~~^~~~~~~~~~~
Main.cpp:19:12: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   19 |       scanf("%d %s", &Age, Name);
      |       ~~~~~^~~~~~~~~~~~~~~~~~~~~

제출 결과

정답 개수:

-

틀린 개수:

-

실행 실패 개수:

-

제출 코드

찾은 반례

반례를 발견하지 못했습니다.