tre.cpp: In function 'int main()':
tre.cpp:28:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &n, &m, &A, &B);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
tre.cpp:30:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1; i<=n; i++) scanf("%d%d", x+i, y+i);
~~~~~^~~~~~~~~~~~~~~~~~
tre.cpp:31:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=0; i<m; i++) scanf("%d%d%d", c+i, d+i, k+i);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/cc9MY5Lh.o: In function `main':
tregrader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccJ820Rd.o:tre.cpp:(.text.startup+0x0): first defined here
/tmp/cc9MY5Lh.o: In function `main':
tregrader.cpp:(.text.startup+0x16): undefined reference to `init()'
tregrader.cpp:(.text.startup+0x61): undefined reference to `path(int, int)'
tregrader.cpp:(.text.startup+0xbd): undefined reference to `dig(int, int)'
collect2: error: ld returned 1 exit status