Submission #23161


ソースコード

ステータス

項目 データ
問題 0431 - 君も始めようダイクストラ大好き厨
ユーザー名 ei1630
投稿日時 2017-07-26 12:17:05
言語 C++11
状態 Compile Error
得点 0
ソースコード長 921 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp: 関数 ‘int main()’ 内:
./Main.cpp:11:6: エラー: no match for ‘operator<<’ (operand types are ‘std::istream {aka std::basic_istream<char>}’ and ‘int’)
   cin<<n<<m;
   ~~~^~~
./Main.cpp:11:6: 備考: candidate: operator<<(int, int) <組み込み>
./Main.cpp:11:6: 備考: 第 1 引数を ‘std::istream {aka std::basic_istream<char>}’ から ‘int’ へ変換する方法が不明です
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/string:52:0,
                 from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/ios_base.h:41,
                 from /usr/local/gcc-7.1.0/include/c++/7.1.0/ios:42,
                 from /usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:38,
                 from /usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/bits/basic_string.h:6082:5: 備考: 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-7.1.0/include/c++/7.1.0/bits/basic_string.h:6082:5: 備考:   template argument deduction/substitution failed:
./Main.cpp:11:8: 備考:   ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
   cin<<n<<m;
        ^
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/ios_base.h:46:0,
                 from /usr/local/gcc-7.1.0/include/c++/7.1.0/ios:42,
                 from /usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:38,
                 from /usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/system_error:217:5: 備考: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)
     operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
     ^~~~~~~~
/usr/local/gcc-7.1.0/include/c++/7.1.0/system_error:217:5: 備考:   template argument deduction/substitution failed:
./Main.cpp:11:8: 備考:   ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
   cin<<n<<m;
        ^
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:39:0,
                 from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:497:5: 備考: 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-7.1.0/include/c++/7.1.0/ostream:497:5: 備考:   template argument deduction/substitution failed:
./Main.cpp:11:8: 備考:   ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
   cin<<n<<m;
        ^
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:39:0,
                 from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:502:5: 備考: 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-7.1.0/include/c++/7.1.0/ostream:502:5: 備考:   template argument deduction/substitution failed:
./Main.cpp:11:8: 備考:   ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
   cin<<n<<m;
        ^
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:39:0,
                 from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:508:5: 備考: 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-7.1.0/include/c++/7.1.0/ostream:508:5: 備考:   template argument deduction/substitution failed:
./Main.cpp:11:8: 備考:   ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
   cin<<n<<m;
        ^
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:39:0,
                 from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:514:5: 備考: 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-7.1.0/include/c++/7.1.0/ostream:514:5: 備考:   template argument deduction/substitution failed:
./Main.cpp:11:8: 備考:   ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
   cin<<n<<m;
        ^
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:39:0,
                 from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:519:5: 備考: 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-7.1.0/include/c++/7.1.0/ostream:519:5: 備考:   template argument deduction/substitution failed:
./Main.cpp:11:8: 備考:   ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
   cin<<n<<m;
        ^
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:39:0,
                 from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:539:5: 備考: 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-7.1.0/include/c++/7.1.0/ostream:539:5: 備考:   template argument deduction/substitution failed:
./Main.cpp:11:8: 備考:   ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
   cin<<n<<m;
        ^
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:666:0,
                 from /usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/bits/ostream.tcc:321:5: 備考: 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-7.1.0/include/c++/7.1.0/bits/ostream.tcc:321:5: 備考:   template argument deduction/substitution failed:
./Main.cpp:11:8: 備考:   ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
   cin<<n<<m;
        ^
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:39:0,
                 from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:556:5: 備考: 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-7.1.0/include/c++/7.1.0/ostream:556:5: 備考:   template argument deduction/substitution failed:
./Main.cpp:11:8: 備考:   ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
   cin<<n<<m;
        ^
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:39:0,
                 from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:569:5: 備考: 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-7.1.0/include/c++/7.1.0/ostream:569:5: 備考:   template argument deduction/substitution failed:
./Main.cpp:11:8: 備考:   ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
   cin<<n<<m;
        ^
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:39:0,
                 from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:574:5: 備考: 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-7.1.0/include/c++/7.1.0/ostream:574:5: 備考:   template argument deduction/substitution failed:
./Main.cpp:11:8: 備考:   ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
   cin<<n<<m;
        ^
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:39:0,
                 from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:656:5: 備考: candidate: template<class _Ostream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_ostream<_Ostream>, std::__is_insertable<_Ostream&, const _Tp&, void> >::value, typename std::__is_convertible_to_basic_ostream<_Tp>::ostream_type>::type std::operator<<(_Ostream&&, const _Tp&)
     operator<<(_Ostream&& __os, const _Tp& __x)
     ^~~~~~~~
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:656:5: 備考:   template argument deduction/substitution failed:
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream: In substitution of ‘template<class _Ostream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_ostream<_Ostream>, std::__is_insertable<_Ostream&, const _Tp&, void> >::value, typename std::__is_convertible_to_basic_ostream<_Tp>::ostream_type>::type std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = int]’:
./Main.cpp:11:8:   required from here
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:656:5: エラー: no type named ‘type’ in ‘struct std::enable_if<false, void>’
./Main.cpp:27:29: エラー: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
     for(int i=0;i<node[pos].size;i++){
                   ~~~~~~~~~~^~~~

セット

セット 得点 Cases

テストケース

ファイル名 状態 実行時間 メモリ使用量 #