foo.cc:2:912: warning: bad option '-fwhole-program' to pragma 'optimize' [-Wpragmas]
2 | #pragma GCC optimize (1,2,3,"Ofast","inline","-fgcse","Ofast","inline","-fgcse-lm","-fipa-sra","-ftree-pre","-ftree-vrp","-fpeephole2","-ffast-math","-fsched-spec","unroll-loops","-falign-jumps","-falign-loops","-falign-labels","-fdevirtualize","-fcaller-saves","-fcrossjumping","-fthread-jumps","-funroll-loops","-fwhole-program","-freorder-blocks","-fschedule-insns","inline-functions","-ftree-tail-merge","-fschedule-insns2","-fstrict-aliasing","-fstrict-overflow","-falign-functions","-fcse-skip-blocks","-fcse-follow-jumps","-fsched-interblock","-fpartial-inlining","no-stack-protector","-freorder-functions","-findirect-inlining","-fhoist-adjacent-loads","-frerun-cse-after-loop","inline-small-functions","-finline-small-functions","-ftree-switch-conversion","-foptimize-sibling-calls","-fexpensive-optimizations","-funsafe-loop-optimizations","inline-functions-called-once","-fdelete-null-pointer-checks")
| ^
foo.cc:2:912: warning: bad option '-fstrict-overflow' to pragma 'optimize' [-Wpragmas]
foo.cc:2:912: warning: bad option '-fcse-skip-blocks' to pragma 'optimize' [-Wpragmas]
foo.cc:2:912: warning: bad option '-funsafe-loop-optimizations' to pragma 'optimize' [-Wpragmas]
foo.cc:9:12: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
9 | matrix(){
| ^
foo.cc:9:12: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:9:12: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:9:12: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:13:51: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
13 | matrix operator *(const matrix &x, const matrix &y){
| ^
foo.cc:13:51: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:13:51: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:13:51: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:25:29: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
25 | matrix __pow(matrix a, int k){
| ^
foo.cc:25:29: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:25:29: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:25:29: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:39:13: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
39 | signed main(){
| ^
foo.cc:39:13: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:39:13: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:39:13: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc: In function 'int main()':
foo.cc:65:18: error: 'x' was not declared in this scope
65 | p = __pow(y - x + 1);
| ^
[Hydro](https://hydro.ac)提供评测服务