---欢迎dalao补充---^_^
CE (Compile Error)(他实在可怕,尤其是编译器不显示编译错时QAQ)
(1)变量为int读入别用lld,编译给过,实测WA0;
(2)会编译错误的变量名称:end,hash,fail,next,y1,ws
(3)初始化数组时整体赋值,例:int a[maxn]={1};
交上去显示:“Your source code compiled to 16013336 bytes which is too big, too thick, too long for us..” 嗯,你对于编译器too big too thick,too long……qwq咱也不知道,咱也不敢问
玄学错误:
RE (Runtime Error) (还可能WA或MLE,不知到为什么)
(1)数组开小
(2)超了int 应开long long #define int long long
(3)精度不对 应用double
(4)队列,栈,vector等用前应判断是否为空,及!a.empty();
(5)数组下标出负,当下标前判断一下
(6)/0或%0 --所谓nan
(7)运算符顺序先后不明,最好带括号
玄学错误:
(1)for循环超出
原文地址:https://www.cnblogs.com/qwertyuiopasdfghjklzxcvbnm/p/11305722.html
时间: 2024-10-06 20:28:48