Submission #00116
ソースコード
ステータス
項目 |
データ |
問題 |
0001 - 家事王VS英雄王 |
ユーザー名 |
immunity
|
投稿日時 |
2019-06-18 17:07:44 |
言語 |
C++ |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
704 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:8:7: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘long long int’)
cin << n;
~~~~^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:52,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:38,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:6314:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
operator<<(basic_ostream<_CharT, _Traits>& __os,
^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:6314:5: note: template argument deduction/substitution failed:
./Main.cpp:8:10: note: ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘std::basic_ostream<_CharT, _Traits>’
cin << n;
^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:497:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT)’
operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:497:5: note: template argument deduction/substitution failed:
./Main.cpp:8:10: note: ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘std::basic_ostream<_CharT, _Traits>’
cin << n;
^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:502:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char)’
operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:502:5: note: template argument deduction/substitution failed:
./Main.cpp:8:10: note: ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘std::basic_ostream<_CharT, _Traits>’
cin << n;
^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:508:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char)’
operator<<(basic_ostream<char, _Traits>& __out, char __c)
^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:508:5: note: template argument deduction/substitution failed:
./Main.cpp:8:10: note: ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘std::basic_ostream<char, _Traits>’
cin << n;
^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:514:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, signed char)’
operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:514:5: note: template argument deduction/substitution failed:
./Main.cpp:8:10: note: ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘std::basic_ostream<char, _Traits>’
cin << n;
^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:519:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, unsigned char)’
operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:519:5: note: template argument deduction/substitution failed:
./Main.cpp:8:10: note: ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘std::basic_ostream<char, _Traits>’
cin << n;
^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:539:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)’
operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:539:5: note: template argument deduction/substitution failed:
./Main.cpp:8:10: note: ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘std::basic_ostream<_CharT, _Traits>’
cin << n;
^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:693,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream.tcc:321:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*)’
operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream.tcc:321:5: note: template argument deduction/substitution failed:
./Main.cpp:8:10: note: ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘std::basic_ostream<_CharT, _Traits>’
cin << n;
^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:556:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)’
operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:556:5: note: template argument deduction/substitution failed:
./Main.cpp:8:10: note: ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘std::basic_ostream<char, _Traits>’
cin << n;
^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:569:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const signed char*)’
operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:569:5: note: template argument deduction/substitution failed:
./Main.cpp:8:10: note: ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘std::basic_ostream<char, _Traits>’
cin << n;
^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:574:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const unsigned char*)’
operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:574:5: note: template argument deduction/substitution failed:
./Main.cpp:8:10: note: ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘std::basic_ostream<char, _Traits>’
cin << n;
^
セット
テストケース