QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#563190#8788. Page on vdome.comAngelinaRenCompile Error//C++14139b2024-09-14 04:30:332024-09-14 04:30:33

Judging History

你现在查看的是最新测评结果

  • [2024-09-14 04:30:33]
  • 评测
  • [2024-09-14 04:30:33]
  • 提交

answer

#include<iostream>
using namespace std;
int main()
{
  int a, b, c, d;
  cin>>a>>b>>c>>d;
  cout>>a>>b>>c>>d>>endl;
  return 0;
}

Details

answer.code: In function ‘int main()’:
answer.code:7:7: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
    7 |   cout>>a>>b>>c>>d>>endl;
      |   ~~~~^~~
      |   |     |
      |   |     int
      |   std::ostream {aka std::basic_ostream<char>}
answer.code:7:7: note: candidate: ‘operator>>(int, int)’ (built-in)
    7 |   cout>>a>>b>>c>>d>>endl;
      |   ~~~~^~~
answer.code:7:7: note:   no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/c++/13/string:55,
                 from /usr/include/c++/13/bits/locale_classes.h:40,
                 from /usr/include/c++/13/bits/ios_base.h:41,
                 from /usr/include/c++/13/ios:44,
                 from /usr/include/c++/13/ostream:40,
                 from /usr/include/c++/13/iostream:41,
                 from answer.code:1:
/usr/include/c++/13/bits/basic_string.tcc:821:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
  821 |     operator>>(basic_istream<_CharT, _Traits>& __in,
      |     ^~~~~~~~
/usr/include/c++/13/bits/basic_string.tcc:821:5: note:   template argument deduction/substitution failed:
answer.code:7:9: note:   ‘std::ostream’ {aka ‘std::basic_ostream<char>’} is not derived from ‘std::basic_istream<_CharT, _Traits>’
    7 |   cout>>a>>b>>c>>d>>endl;
      |         ^
In file included from /usr/include/c++/13/istream:1106,
                 from /usr/include/c++/13/iostream:42:
/usr/include/c++/13/bits/istream.tcc:975:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)’
  975 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
      |     ^~~~~~~~
/usr/include/c++/13/bits/istream.tcc:975:5: note:   template argument deduction/substitution failed:
answer.code:7:9: note:   ‘std::ostream’ {aka ‘std::basic_ostream<char>’} is not derived from ‘std::basic_istream<_CharT, _Traits>’
    7 |   cout>>a>>b>>c>>d>>endl;
      |         ^
/usr/include/c++/13/istream:846:5: note: candidate: ‘template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)’
  846 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
      |     ^~~~~~~~
/usr/include/c++/13/istream:846:5: note:   template argument deduction/substitution failed:
answer.code:7:9: note:   ‘std::ostream’ {aka ‘std::basic_ostream<char>’} is not derived from ‘std::basic_istream<char, _Traits>’
    7 |   cout>>a>>b>>c>>d>>endl;
      |         ^
/usr/include/c++/13/istream:851:5: note: candidate: ‘template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)’
  851 |     operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
      |     ^~~~~~~~
/usr/include/c++/13/istream:851:5: note:   template argument deduction/substitution failed:
answer.code:7:9: note:   ‘std::ostream’ {aka ‘std::basic_ostream<char>’} is not derived from ‘std::basic_istream<char, _Traits>’
    7 |   cout>>a>>b>>c>>d>>endl;
      |         ^
/usr/include/c++/13/istream:893:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)’
  893 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
      |     ^~~~~~~~
/usr/include/c++/13/istream:893:5: note:   template argument deduction/substitution failed:
answer.code:7:9: note:   ‘std::ostream’ {aka ‘std::basic_ostream<char>’} is not derived from ‘std::basic_istream<_CharT, _Traits>’
    7 |   cout>>a>>b>>c>>d>>endl;
      |         ^
/usr/include/c++/13/istream:936:5: note: candidate: ‘template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)’
  936 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
      |     ^~~~~~~~
/usr/include/c++/13/istream:936:5: note:   template argument deduction/substitution failed:
answer.code:7:9: note:   ‘std::ostream’ {aka ‘std::basic_ostream<char>’} is not derived from ‘std::basic_istream<char, _Traits>’
    7 |   cout>>a>>b>>c>>d>>endl;
      |         ^
/usr/include/c++/13/istream:942:5: note: candidate: ‘template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)’
  942 |     operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
      |     ^~~~~~~~
/usr/include/c++/13/istream:942:5: note:   template argument deduction/substitution failed:
answer.code:7:9: note:   ‘std::ostream’ {aka ‘std::basic_ostream<char>’} is not derived from ‘std::basic_istream<char, _Traits>’
    7 |   cout>>a>>b>>c>>d>>endl;
      |         ^
/usr/includ...