potion.cpp: In function 'int main()':
potion.cpp:24:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(int j=0;j<adj[i].size();j++){
| ~^~~~~~~~~~~~~~
potion.cpp:9:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | scanf("%d%d%d%d",&n,&D,&u,&q);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
potion.cpp:13:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
13 | for(int i=0;i<n;i++)scanf("%d",&h[i]);
| ~~~~~^~~~~~~~~~~~
potion.cpp:15:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
15 | scanf("%d%d",&r,&s);
| ~~~~~^~~~~~~~~~~~~~
potion.cpp:36:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
36 | scanf("%d%d%d",&a,&b,&d);
| ~~~~~^~~~~~~~~~~~~~~~~~~
/tmp/ccQErYVK.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/cc4EhL3r.o:potion.cpp:(.text.startup+0x0): first defined here
/tmp/ccQErYVK.o: In function `main':
grader.cpp:(.text.startup+0xde): undefined reference to `init(int, int, int*)'
grader.cpp:(.text.startup+0x167): undefined reference to `curseChanges(int, int*, int*)'
grader.cpp:(.text.startup+0x1c1): undefined reference to `question(int, int, int)'
collect2: error: ld returned 1 exit status