問題本人也不明白原因,還請路過高手指教。
問題1:
error: constant expression evaluates to -126 which cannot be narrowed to type 'unsigned char' [-Wc++11-narrowing]
13,0,-128,0,13,0,-127,0,13,0,-126,0,13,0,-125,0,13,0,-124,0,
^~~~
意思是-127不能轉爲unsigned char類型
解決方法:
C++ Language Dialect 設置爲"C++ 98" 可以編譯通過,但是設置C++ 11就有問題。