不只是AT_abc040_c,为什么好多题目使用了这样的宏定义都会报错?
#define min(p,q) ((p)<(q))?(p):(q)
#define abs(x) ((x)>=0)?(x):(-(x))
记录:
https://www.luogu.com.cn/record/123492831
改成对应的函数就AC了
int min(int p, int q){return p<q?p:q;}
int abs(int x){return x>=0?x:-x;}
记录:
https://www.luogu.com.cn/record/123493113