catdog.cpp: In function 'void f(int)':
catdog.cpp:20:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < g[node].size(); i++){
~~^~~~~~~~~~~~~~~~
catdog.cpp: In function 'void hazirla(int, int)':
catdog.cpp:39:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < gg[node].size(); i++)
~~^~~~~~~~~~~~~~~~~
catdog.cpp: In function 'int main()':
catdog.cpp:74:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("in.txt", "r", stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
catdog.cpp:75:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("out.txt", "w", stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
catdog.cpp:77:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
catdog.cpp:80:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&a[i] ,&b[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~
catdog.cpp:81:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&q);
~~~~~^~~~~~~~~
catdog.cpp:84:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&t[i] ,&v[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~
/tmp/cc1r6PCW.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/cckXSmlv.o:catdog.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status