/ AOCode /

记录详情

Compile Error

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:23: error: no matching function for call to '__pow(long long int)'
   65 |    p = __pow(y - n + 1);
      |                       ^
In file included from /usr/include/features.h:461,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
                 from /usr/include/c++/9/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:140:1: note: candidate: 'double __pow(double, double)'
  140 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
      | ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:140:1: note:   candidate expects 2 arguments, 1 provided
foo.cc:25:8: note: candidate: 'matrix __pow(matrix, long long int)'
   25 | matrix __pow(matrix a, int k){
      |        ^~~~~
foo.cc:25:8: note:   candidate expects 2 arguments, 1 provided
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1040 The nflsM Tokens (HARD)
语言
C++
递交时间
2022-04-29 20:52:32
评测时间
2022-04-29 20:52:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes