我写了一份代码,有如下定义。
#define int long long const int INF = 0x3f3f3f3f3f3f3f3f;
然后交了 spoj 返回结果编译错误。
到 spoj 上看编译信息是
error: integer constant is too large for 'long' type
所以这个宏定义很危险,可能会导致编译错误?
吓得我要不敢用了