/ AOCode /

记录详情

Accepted

foo.cc:22:39: warning: bad option '-fwhole-program' to pragma 'optimize' [-Wpragmas]
   22 | #pragma GCC optimize("-fwhole-program")
      |                                       ^
foo.cc:29:41: warning: bad option '-fstrict-overflow' to pragma 'optimize' [-Wpragmas]
   29 | #pragma GCC optimize("-fstrict-overflow")
      |                                         ^
foo.cc:31:41: warning: bad option '-fcse-skip-blocks' to pragma 'optimize' [-Wpragmas]
   31 | #pragma GCC optimize("-fcse-skip-blocks")
      |                                         ^
foo.cc:44:51: warning: bad option '-funsafe-loop-optimizations' to pragma 'optimize' [-Wpragmas]
   44 | #pragma GCC optimize("-funsafe-loop-optimizations")
      |                                                   ^
foo.cc:61:16: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   61 |  void set(int x) //建立x*x的单位矩阵
      |                ^
foo.cc:61:16: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:61:16: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:61:16: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:69:13: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   69 |  void clear() //矩阵初始化
      |             ^
foo.cc:69:13: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:69:13: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:69:13: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:76:35: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   76 | matrix operator*(matrix x,matrix y) //重载运算符
      |                                   ^
foo.cc:76:35: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:76:35: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:76:35: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:91:31: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   91 | matrix operator^(matrix x,LL k) //需要矩阵乘法
      |                               ^
foo.cc:91:31: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:91:31: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:91:31: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:104:20: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  104 |  inline void flush(){fwrite(buf,1,S-buf,stdout);S=buf;}
      |                    ^
foo.cc:104:20: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:104:20: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:104:20: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:105:28: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  105 |  inline void putchar(char c){*S++=c;if(S==T)flush();}
      |                            ^
foo.cc:105:28: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:105:28: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:105:28: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:106:18: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  106 |  struct NTR{~NTR(){flush();}}ztr;
      |                  ^
foo.cc:106:18: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:106:18: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:106:18: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:110:43: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  110 |  template<typename T>Reader&operator>>(T&x){
      |                                           ^
foo.cc:110:43: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:110:43: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:110:43: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:118:28: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  118 |  Reader&operator>>(double&x){
      |                            ^
foo.cc:118:28: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:118:28: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:118:28: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:126:33: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  126 |  Reader&operator>>(long double&x){
      |                                 ^
foo.cc:126:33: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:126:33: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:126:33: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:134:32: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  134 |  Reader&operator>>(__float128&x){
      |                                ^
foo.cc:134:32: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:134:32: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:134:32: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:142:26: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  142 |  Reader&operator>>(char&c){
      |                          ^
foo.cc:142:26: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:142:26: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:142:26: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:146:28: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  146 |  Reader&operator>>(char*str){
      |                            ^
foo.cc:146:28: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:146:28: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:146:28: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:152:30: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  152 |  Reader&operator>>(string&str){
      |                              ^
foo.cc:152:30: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:152:30: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:152:30: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:158:54: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  158 |  template<class _Tp>Reader&operator>>(vector<_Tp>&vec){for(unsigned i=0;i<vec.size();i++)cin>>vec[i];return*this;}
      |                                                      ^
foo.cc:158:54: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:158:54: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:158:54: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:159:64: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  159 |  template<class _Tp,class _tp>Reader&operator>>(pair<_Tp,_tp>&a){cin>>a.first>>a.second;return*this;}
      |                                                                ^
foo.cc:159:64: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:159:64: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:159:64: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:160:9: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  160 |  Reader(){}
      |         ^
foo.cc:160:9: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:160:9: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:160:9: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc: In member function 'Fastio::Reader& Fastio::Reader::operator>>(double&)':
foo.cc:124:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  124 |   while(s--)t/=10.0;x=(x+t)*f;return*this;
      |   ^~~~~
foo.cc:124:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  124 |   while(s--)t/=10.0;x=(x+t)*f;return*this;
      |                     ^
foo.cc: In member function 'Fastio::Reader& Fastio::Reader::operator>>(long double&)':
foo.cc:132:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  132 |   while(s--)t/=10.0;x=(x+t)*f;return*this;
      |   ^~~~~
foo.cc:132:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  132 |   while(s--)t/=10.0;x=(x+t)*f;return*this;
      |                     ^
foo.cc: In member function 'Fastio::Reader& Fastio::Reader::operator>>(__float128&)':
foo.cc:140:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  140 |   while(s--)t/=10.0;x=(x+t)*f;return*this;
      |   ^~~~~
foo.cc:140:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  140 |   while(s--)t/=10.0;x=(x+t)*f;return*this;
      |                     ^
foo.cc: At global scope:
foo.cc:166:43: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  166 |  template<typename T>Writer&operator<<(T x){
      |                                           ^
foo.cc:166:43: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:166:43: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:166:43: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:174:28: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  174 |  Writer&operator<<(double x){
      |                            ^
foo.cc:174:28: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:174:28: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:174:28: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:185:33: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  185 |  Writer&operator<<(long double x){
      |                                 ^
foo.cc:185:33: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:185:33: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:185:33: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:196:32: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  196 |  Writer&operator<<(__float128 x){
      |                                ^
foo.cc:196:32: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:196:32: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:196:32: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:207:26: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  207 |  Writer&operator<<(char c){putchar(c);return*this;}
      |                          ^
foo.cc:207:26: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:207:26: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:207:26: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:208:29: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  208 |  Writer& operator<<(char*str){
      |                             ^
foo.cc:208:29: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:208:29: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:208:29: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:212:34: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  212 |  Writer&operator<<(const char*str){
      |                                  ^
foo.cc:212:34: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:212:34: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:212:34: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:216:30: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  216 |  Writer&operator<<(string str){
      |                              ^
foo.cc:216:30: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:216:30: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:216:30: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:221:53: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  221 |  template<class _Tp>Writer&operator<<(vector<_Tp>vec){for(unsigned i=0;i<vec.size()-1;i++)cout<<vec[i]<<" ";cout<<vec[vec.size()-1];return*this;}
      |                                                     ^
foo.cc:221:53: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:221:53: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:221:53: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:222:63: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  222 |  template<class _Tp,class _tp>Writer&operator<<(pair<_Tp,_tp>a){cout<<a.first<<" "<<a.second;return*this;}
      |                                                               ^
foo.cc:222:63: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:222:63: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:222:63: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:223:9: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  223 |  Writer(){}
      |         ^
foo.cc:223:9: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:223:9: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:223:9: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc: In member function 'Fastio::Writer& Fastio::Writer::operator<<(double)':
foo.cc:177:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  177 |   while(_)sta[++top]=_%10,_/=10;if(!top)putchar('0');
      |   ^~~~~
foo.cc:177:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  177 |   while(_)sta[++top]=_%10,_/=10;if(!top)putchar('0');
      |                                 ^~
foo.cc:178:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  178 |   while(top)putchar(sta[top]+'0'),--top;putchar('.');
      |   ^~~~~
foo.cc:178:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  178 |   while(top)putchar(sta[top]+'0'),--top;putchar('.');
      |                                         ^~~~~~~
foo.cc: In member function 'Fastio::Writer& Fastio::Writer::operator<<(long double)':
foo.cc:188:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  188 |   while(_)sta[++top]=_%10,_/=10;if(!top)putchar('0');
      |   ^~~~~
foo.cc:188:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  188 |   while(_)sta[++top]=_%10,_/=10;if(!top)putchar('0');
      |                                 ^~
foo.cc:189:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  189 |   while(top)putchar(sta[top]+'0'),--top;putchar('.');
      |   ^~~~~
foo.cc:189:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  189 |   while(top)putchar(sta[top]+'0'),--top;putchar('.');
      |                                         ^~~~~~~
foo.cc: In member function 'Fastio::Writer& Fastio::Writer::operator<<(__float128)':
foo.cc:199:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  199 |   while(_)sta[++top]=_%10,_/=10;if(!top)putchar('0');
      |   ^~~~~
foo.cc:199:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  199 |   while(_)sta[++top]=_%10,_/=10;if(!top)putchar('0');
      |                                 ^~
foo.cc:200:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  200 |   while(top)putchar(sta[top]+'0'),--top;putchar('.');
      |   ^~~~~
foo.cc:200:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  200 |   while(top)putchar(sta[top]+'0'),--top;putchar('.');
      |                                         ^~~~~~~
foo.cc: At global scope:
foo.cc:230:10: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  230 | void sol()
      |          ^
foo.cc:230:10: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:230:10: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:230:10: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:249:13: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  249 | signed main(){
      |             ^
foo.cc:249:13: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:249:13: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:249:13: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 8ms 384.0 KiB
#2 Accepted 11ms 396.0 KiB
#3 Accepted 28ms 512.0 KiB
#4 Accepted 13ms 384.0 KiB
#5 Accepted 13ms 384.0 KiB
#6 Accepted 27ms 384.0 KiB
#7 Accepted 16ms 384.0 KiB
#8 Accepted 19ms 384.0 KiB
#9 Accepted 22ms 384.0 KiB
#10 Accepted 22ms 384.0 KiB
#11 Accepted 39ms 452.0 KiB
#12 Accepted 8ms 384.0 KiB
#13 Accepted 31ms 512.0 KiB
#14 Accepted 32ms 384.0 KiB
#15 Accepted 7ms 384.0 KiB
#16 Accepted 17ms 384.0 KiB
#17 Accepted 21ms 384.0 KiB
#18 Accepted 13ms 512.0 KiB
#19 Accepted 8ms 384.0 KiB
#20 Accepted 16ms 384.0 KiB
#21 Accepted 40ms 508.0 KiB
#22 Accepted 9ms 384.0 KiB
#23 Accepted 35ms 512.0 KiB
#24 Accepted 8ms 384.0 KiB
#25 Accepted 4ms 384.0 KiB
#26 Accepted 36ms 504.0 KiB
#27 Accepted 41ms 504.0 KiB
#28 Accepted 32ms 512.0 KiB
#29 Accepted 16ms 384.0 KiB
#30 Accepted 39ms 512.0 KiB
#31 Accepted 50ms 504.0 KiB
#32 Accepted 21ms 384.0 KiB
#33 Accepted 33ms 384.0 KiB
#34 Accepted 25ms 384.0 KiB
#35 Accepted 47ms 384.0 KiB
#36 Accepted 7ms 384.0 KiB
#37 Accepted 6ms 384.0 KiB
#38 Accepted 10ms 384.0 KiB
#39 Accepted 9ms 384.0 KiB
#40 Accepted 33ms 384.0 KiB
#41 Accepted 14ms 384.0 KiB
#42 Accepted 19ms 384.0 KiB
#43 Accepted 6ms 384.0 KiB
#44 Accepted 39ms 384.0 KiB
#45 Accepted 19ms 384.0 KiB
#46 Accepted 47ms 384.0 KiB
#47 Accepted 23ms 384.0 KiB
#48 Accepted 35ms 504.0 KiB
#49 Accepted 18ms 384.0 KiB
#50 Accepted 34ms 384.0 KiB

信息

递交者
类型
递交
题目
P1039 The nflsM Tokens (EASY) (Fib3 Queue 2)
语言
C++
递交时间
2022-04-30 15:06:19
评测时间
2022-04-30 15:06:19
评测机
分数
100
总耗时
1148ms
峰值内存
512.0 KiB