amusementpark.cpp: In function 'int main()':
amusementpark.cpp:106:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0 ; j < curNodes.size() ; j++)
~~^~~~~~~~~~~~~~~~~
amusementpark.cpp:109:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int a = 0 ; a < curNodes.size() ; a++)
~~^~~~~~~~~~~~~~~~~
amusementpark.cpp:111:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int b = 0 ; b < curNodes.size() ; b++)
~~^~~~~~~~~~~~~~~~~
amusementpark.cpp:131:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i < allSz.size() ; i++)
~~^~~~~~~~~~~~~~
amusementpark.cpp:137:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i < allDP.size() ; i++)
~~^~~~~~~~~~~~~~
amusementpark.cpp:72:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
~~~~~^~~~~~~~~~~~~~~
amusementpark.cpp:85:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&U,&V);
~~~~~^~~~~~~~~~~~~~~
amusementpark.cpp:104:17: warning: iteration 20 invokes undefined behavior [-Waggressive-loop-optimizations]
dp[mask][j] = -1;
~~~~~~~~~~~~^~~~
amusementpark.cpp:103:22: note: within this loop
for(int j = 0 ; j < MAXS ; j++)
~~^~~~~~