记录详情

Compile Error

foo.cc:1:30: warning: '-std=c++11' is not an option that controls warnings [-Wpragmas]
    1 | #pragma GCC diagnostic error "-std=c++11"
      |                              ^~~~~~~~~~~~
foo.cc:25:39: warning: bad option '-fwhole-program' to pragma 'optimize' [-Wpragmas]
   25 | #pragma GCC optimize("-fwhole-program")
      |                                       ^
foo.cc:32:41: warning: bad option '-fstrict-overflow' to pragma 'optimize' [-Wpragmas]
   32 | #pragma GCC optimize("-fstrict-overflow")
      |                                         ^
foo.cc:34:41: warning: bad option '-fcse-skip-blocks' to pragma 'optimize' [-Wpragmas]
   34 | #pragma GCC optimize("-fcse-skip-blocks")
      |                                         ^
foo.cc:48:51: warning: bad option '-funsafe-loop-optimizations' to pragma 'optimize' [-Wpragmas]
   48 | #pragma GCC optimize("-funsafe-loop-optimizations")
      |                                                   ^
foo.cc:55:18: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   55 | inline void work()
      |                  ^
foo.cc:55:18: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:55:18: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:55:18: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc: In function 'void work()':
foo.cc:60:30: error: conflicting specifiers in declaration of 'i'
   60 |     for (static register int i = 0; i < n - 1; i ++ )
      |                              ^
foo.cc:60:37: error: 'i' was not declared in this scope
   60 |     for (static register int i = 0; i < n - 1; i ++ )
      |                                     ^
foo.cc: At global scope:
foo.cc:68:14: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   68 | int main(void)
      |              ^
foo.cc:68:14: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:68:14: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:68:14: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc: In function 'void work()':
foo.cc:58:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   58 |     scanf("%d%d", &n, &front);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:62:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   62 |         scanf("%d", &x);
      |         ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
1-3 序列循环左移
语言
C++
递交时间
2022-08-09 18:58:26
评测时间
2022-08-09 18:58:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes