Main.cc: In function ‘int test(int*, int)’:
Main.cc:4:5: error: expected primary-expression before ‘)’ token
if()
^
Main.cc: In function ‘int main()’:
Main.cc:25:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
~~~~~^~~~~~~~~~~~~~
Main.cc:33:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&t[i],&xe[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~