一些奇怪的錯誤

2021-07-04 20:29:20 字數 561 閱讀 3823

無向邊陣列要開2倍!

乘法取模要開long long!

max初值應為-inf,min初值應為inf!

數學函式遞推式等數學表示式要注意特殊情況,如:x=

0,求l

og(x

) a=

1,求b

a−1 非void函式無返回值(開-wall就好)

大於 mod

的數一定要先取模再乘,比如 n≥

mod ,

ad

錯誤: a * n % mod

正確:n % mod * a % mod

各種變數一定要賦初值

應該沒人會像我這樣寫分數類吧。。。。

struct frac

};

這份**的bug很多。。。下面給乙份正常版。。。

struct frac

else y = 1;

}};

函式變數與結構體變數重名時預設是函式的。。。

C SQLite SQLite一些奇怪的問題

今天整c 的dao層,我用的2013,用的4.0的.netframework剛剛建立完helper就出現異常 connection helper.connection 引發了 system.io.fileloadexception 型別的異常 system.data.idbconnection 加入...

C SQLite SQLite一些奇怪的問題

今天整c 的dao層,我用的2013,用的4.0的.netframework剛剛建立完helper就出現異常 connection helper.connection 引發了 system.io.fileloadexception 型別的異常 system.data.idbconnection 加入...

SOLR的一些錯誤

一 oct 18,2013 11 03 27 pm org.apache.catalina.core.standardcontext start severe error filterstart oct 18,2013 11 03 27 pm org.apache.catalina.core.sta...