map.cpp: In function ‘int main()’:
map.cpp:46:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
map.cpp:48:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&s[i],&e[i]);
^
/tmp/ccdxiE0p.o: In function `main':
map.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/cc6Oe6rp.o:grader.cpp:(.text.startup+0x0): first defined here
/tmp/cc6Oe6rp.o: In function `main':
grader.cpp:(.text.startup+0xeb): undefined reference to `NumberOfMaps(int, int, int*, int*)'
collect2: error: ld returned 1 exit status