Submission #66457
ソースコード
ステータス
コンパイルメッセージ
./Main.cpp:47:1: error: invalid use of template-name ‘std::vector’ without an argument list
vector edge(100010, vector<int>{});
^~~~~~
./Main.cpp:47:1: note: class template argument deduction is only available with -std=c++17 or -std=gnu++17
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 ./Main.cpp:13:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_vector.h:339:11: note: ‘template<class _Tp, class _Alloc> class std::vector’ declared here
class vector : protected _Vector_base<_Tp, _Alloc>
^~~~~~
./Main.cpp:47:34: error: expected unqualified-id before ‘)’ token
vector edge(100010, vector<int>{});
^
./Main.cpp: In function ‘void dfs(int, int, i64, i64)’:
./Main.cpp:56:18: error: ‘edge’ was not declared in this scope
for(auto v : edge[u])
^~~~
./Main.cpp: In function ‘int main()’:
./Main.cpp:73:9: error: ‘edge’ was not declared in this scope
edge[u].push_back(v);
^~~~
セット
テストケース