Submission #00090


ソースコード

ステータス

項目 データ
問題 0004 - 脱出ゲーム
ユーザー名 ei1725
投稿日時 2019-04-23 17:53:36
言語 C++11
状態 Compile Error
得点 0
ソースコード長 1110 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp: In function ‘int main()’:
./Main.cpp:72:23: error: no match for ‘operator=’ (operand types are ‘std::vector<edge>’ and ‘<brace-enclosed initializer list>’)
     G[s[i]]={t[i],c[i]};
                       ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/vector:69,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/queue:61,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:86,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/vector.tcc:186:5: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = edge; _Alloc = std::allocator<edge>]’
     vector<_Tp, _Alloc>::
     ^~~~~~~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/vector.tcc:186:5: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const std::vector<edge>&’
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/vector:64,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/queue:61,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:86,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_vector.h:596:7: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = edge; _Alloc = std::allocator<edge>]’
       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_vector.h:596:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<edge>&&’
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_vector.h:617:7: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = edge; _Alloc = std::allocator<edge>]’
       operator=(initializer_list<value_type> __l)
       ^~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_vector.h:617:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::initializer_list<edge>’

セット

セット 得点 Cases

テストケース

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