Problem dynamicdag
User PlayVoltz
Submission Time 2023-12-31 20:25:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dynamicdag.cpp: In function ‘int main()’:
dynamicdag.cpp:22:13: error: ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type’ {aka ‘class std::vector<int>’} has no member named ‘pb’
22 | graph[a].pb(b);
| ^~
dynamicdag.cpp:25:39: error: invalid operands of types ‘const char [3]’ and ‘const char [2]’ to binary ‘operator<<’
25 | else cin>>a, cout<<can[a]?"YES":"NO"<<"\n";
| ~~~~^~~~~~
| | |
| | const char [2]
| const char [3]