QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#871735#8619. Interactive Casinoucup-team1123#Compile Error//C++2332.1kb2025-01-25 21:49:522025-01-25 21:49:52

Details

main.cpp: In function ‘int main()’:
main.cpp:11:25: error: reference to ‘print’ is ambiguous
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:226,
                 from library/other/template.hpp:3:
/usr/include/c++/14/print:115:5: note: candidates are: ‘template<class ... _Args> void std::print(format_string<_Args ...>, _Args&& ...)’
  115 |     print(format_string<_Args...> __fmt, _Args&&... __args)
      |     ^~~~~
/usr/include/c++/14/print:104:5: note:                 ‘template<class ... _Args> void std::print(FILE*, format_string<_Args ...>, _Args&& ...)’
  104 |     print(FILE* __stream, format_string<_Args...> __fmt, _Args&&... __args)
      |     ^~~~~
In file included from /usr/include/c++/14/bits/unique_ptr.h:43,
                 from /usr/include/c++/14/memory:78,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56:
/usr/include/c++/14/ostream:982:5: note:                 ‘template<class ... _Args> void std::print(ostream&, format_string<_Args ...>, _Args&& ...)’
  982 |     print(ostream& __os, format_string<_Args...> __fmt, _Args&&... __args)
      |     ^~~~~
library/template/out.hpp:260:11: note:                 ‘Printer<> print’
main.cpp:12:14: error: reference to ‘print’ is ambiguous
/usr/include/c++/14/print:115:5: note: candidates are: ‘template<class ... _Args> void std::print(format_string<_Args ...>, _Args&& ...)’
  115 |     print(format_string<_Args...> __fmt, _Args&&... __args)
      |     ^~~~~
/usr/include/c++/14/print:104:5: note:                 ‘template<class ... _Args> void std::print(FILE*, format_string<_Args ...>, _Args&& ...)’
  104 |     print(FILE* __stream, format_string<_Args...> __fmt, _Args&&... __args)
      |     ^~~~~
/usr/include/c++/14/ostream:982:5: note:                 ‘template<class ... _Args> void std::print(ostream&, format_string<_Args ...>, _Args&& ...)’
  982 |     print(ostream& __os, format_string<_Args...> __fmt, _Args&&... __args)
      |     ^~~~~
library/template/out.hpp:260:11: note:                 ‘Printer<> print’