prison.cpp: In function 'int doDFS(int)':
prison.cpp:19:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | for (i = 0; i < adjList[u].size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~~
prison.cpp: In function 'int doDFS2(int, int)':
prison.cpp:27:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for (i = 0; i < adjList[u].size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~~
prison.cpp: In function 'int main()':
prison.cpp:51:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for (i = 0; i < in.size(); i++) {
| ~~^~~~~~~~~~~
prison.cpp:58:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | for (i = 0; i < S2.size(); i++) {
| ~~^~~~~~~~~~~
prison.cpp:38:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%d %d %d",&N,&D,&T);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
prison.cpp:39:34: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | for (i = 0; i < N; i++) scanf("%d",&t[i]),t[i] -= i;
| ~~~~~^~~~~~~~~~~~