pipes.cpp:8:1: error: 'vector' does not name a type; did you mean 'wctob'?
vector<short> AdjList[MAX_N];
^~~~~~
wctob
pipes.cpp: In function 'void dfs(short int, short int, short int)':
pipes.cpp:21:16: error: 'AdjList' was not declared in this scope
for(int v: AdjList[u]){
^~~~~~~
pipes.cpp: In function 'int main()':
pipes.cpp:46:9: error: 'AdjList' was not declared in this scope
AdjList[a].push_back(b);
^~~~~~~
pipes.cpp:53:9: warning: unused variable 'temp' [-Wunused-variable]
int temp = 0;
^~~~
pipes.cpp:41:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &M);
~~~~~^~~~~~~~~~~~~~~~
pipes.cpp:45:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~