由于 Luogu 使用 Testlib 作为交互库的库文件,在编译的时候就会因为名字冲突而编译失败。除了 rand() 函数被直接改写之外,还有很多变量不能在全局定义。如果你定义了,程序将会编译错误。
以下为清单。
latestFeatures
__testlib_format_buffer
__testlib_format_buffer_usage_count
__TESTLIB_LONGLONG_MAX
outcomes
inf
ouf
ans
appesMode
resultName
checkerName
rnd
testlibMode
__testlib_points
validator
testlibFinalizeGuard
tout