/home/controller/submissions/22299/submission.cpp: In function 'void input()': /home/controller/submissions/22299/submission.cpp:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result /home/controller/submissions/22299/submission.cpp:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result /home/controller/submissions/22299/submission.cpp: In function 'int main()': /home/controller/submissions/22299/submission.cpp:89: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result /usr/include/c++/4.3/bits/stl_algo.h: In function 'const _Tp& std::__median(const _Tp&, const _Tp&, const _Tp&, _Compare) [with _Tp = Doll, _Compare = bool (*)(Doll&, Doll&)]': /usr/include/c++/4.3/bits/stl_algo.h:1952: instantiated from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = Doll*, _Size = int, _ (... omitted ..)
에러 메시지가 다음과 같이 뜨고 있는데, 어떤 부분이 에러가 나는 것인지 잘 모르겠습니다. VS2008에선 컴파일 에러 없이 잘 돌아가고 있습니다.
Leie
/home/controller/submissions/22299/submission.cpp: In function 'void input()': /home/controller/submissions/22299/submission.cpp:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result /home/controller/submissions/22299/submission.cpp:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result /home/controller/submissions/22299/submission.cpp: In function 'int main()': /home/controller/submissions/22299/submission.cpp:89: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result /usr/include/c++/4.3/bits/stl_algo.h: In function 'const _Tp& std::__median(const _Tp&, const _Tp&, const _Tp&, _Compare) [with _Tp = Doll, _Compare = bool (*)(Doll&, Doll&)]': /usr/include/c++/4.3/bits/stl_algo.h:1952: instantiated from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = Doll*, _Size = int, _ (... omitted ..)
에러 메시지가 다음과 같이 뜨고 있는데, 어떤 부분이 에러가 나는 것인지 잘 모르겠습니다. VS2008에선 컴파일 에러 없이 잘 돌아가고 있습니다.
14년 전