/ AOCode /

记录详情

Wrong Answer

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:53:20: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   53 |  inline void flush(){fwrite(buf,1,S-buf,stdout);S=buf;}
      |                    ^
foo.cc:53:20: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:53:20: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:53:20: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:54:28: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   54 |  inline void putchar(char c){*S++=c;if(S==T)flush();}
      |                            ^
foo.cc:54:28: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:54:28: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:54:28: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:55:18: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   55 |  struct NTR{~NTR(){flush();}}ztr;
      |                  ^
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:59:43: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   59 |  template<typename T>Reader&operator>>(T&x){
      |                                           ^
foo.cc:59:43: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:59:43: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:59:43: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:67:28: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   67 |  Reader&operator>>(double&x){
      |                            ^
foo.cc:67:28: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:67:28: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:67:28: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:75:33: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   75 |  Reader&operator>>(long double&x){
      |                                 ^
foo.cc:75:33: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:75:33: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:75:33: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:83:32: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   83 |  Reader&operator>>(__float128&x){
      |                                ^
foo.cc:83:32: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:83:32: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:83:32: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:91:26: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   91 |  Reader&operator>>(char&c){
      |                          ^
foo.cc:91:26: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:91:26: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:91:26: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:95:28: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   95 |  Reader&operator>>(char*str){
      |                            ^
foo.cc:95:28: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:95:28: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:95:28: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:101:30: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  101 |  Reader&operator>>(string&str){
      |                              ^
foo.cc:101:30: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:101:30: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:101:30: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:107:54: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  107 |  template<class _Tp>Reader&operator>>(vector<_Tp>&vec){for(unsigned i=0;i<vec.size();i++)cin>>vec[i];return*this;}
      |                                                      ^
foo.cc:107:54: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:107:54: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:107:54: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:108:64: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  108 |  template<class _Tp,class _tp>Reader&operator>>(pair<_Tp,_tp>&a){cin>>a.first>>a.second;return*this;}
      |                                                                ^
foo.cc:108:64: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:108:64: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:108:64: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:109:9: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  109 |  Reader(){}
      |         ^
foo.cc:109:9: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:109:9: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:109:9: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc: In member function 'Fastio::Reader& Fastio::Reader::operator>>(double&)':
foo.cc:73:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   73 |   while(s--)t/=10.0;x=(x+t)*f;return*this;
      |   ^~~~~
foo.cc:73:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   73 |   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:81:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   81 |   while(s--)t/=10.0;x=(x+t)*f;return*this;
      |   ^~~~~
foo.cc:81:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   81 |   while(s--)t/=10.0;x=(x+t)*f;return*this;
      |                     ^
foo.cc: In member function 'Fastio::Reader& Fastio::Reader::operator>>(__float128&)':
foo.cc:89:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   89 |   while(s--)t/=10.0;x=(x+t)*f;return*this;
      |   ^~~~~
foo.cc:89:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   89 |   while(s--)t/=10.0;x=(x+t)*f;return*this;
      |                     ^
foo.cc: At global scope:
foo.cc:115:43: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  115 |  template<typename T>Writer&operator<<(T x){
      |                                           ^
foo.cc:115:43: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:115:43: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:115:43: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:123:28: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  123 |  Writer&operator<<(double x){
      |                            ^
foo.cc:123:28: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:123:28: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:123:28: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:134:33: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  134 |  Writer&operator<<(long double x){
      |                                 ^
foo.cc:134:33: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:134:33: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:134:33: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:145:32: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  145 |  Writer&operator<<(__float128 x){
      |                                ^
foo.cc:145:32: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:145:32: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:145:32: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:156:26: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  156 |  Writer&operator<<(char c){putchar(c);return*this;}
      |                          ^
foo.cc:156:26: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:156:26: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:156:26: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:157:29: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  157 |  Writer& operator<<(char*str){
      |                             ^
foo.cc:157:29: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:157:29: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:157:29: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:161:34: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  161 |  Writer&operator<<(const char*str){
      |                                  ^
foo.cc:161:34: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:161:34: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:161:34: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:165:30: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  165 |  Writer&operator<<(string str){
      |                              ^
foo.cc:165:30: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:165:30: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:165:30: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:170:53: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  170 |  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:170:53: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:170:53: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:170:53: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:171:63: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  171 |  template<class _Tp,class _tp>Writer&operator<<(pair<_Tp,_tp>a){cout<<a.first<<" "<<a.second;return*this;}
      |                                                               ^
foo.cc:171:63: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:171:63: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:171:63: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc:172:9: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  172 |  Writer(){}
      |         ^
foo.cc:172:9: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:172:9: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:172:9: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.cc: In member function 'Fastio::Writer& Fastio::Writer::operator<<(double)':
foo.cc:126:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  126 |   while(_)sta[++top]=_%10,_/=10;if(!top)putchar('0');
      |   ^~~~~
foo.cc:126:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  126 |   while(_)sta[++top]=_%10,_/=10;if(!top)putchar('0');
      |                                 ^~
foo.cc:127:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  127 |   while(top)putchar(sta[top]+'0'),--top;putchar('.');
      |   ^~~~~
foo.cc:127:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  127 |   while(top)putchar(sta[top]+'0'),--top;putchar('.');
      |                                         ^~~~~~~
foo.cc: In member function 'Fastio::Writer& Fastio::Writer::operator<<(long double)':
foo.cc:137:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  137 |   while(_)sta[++top]=_%10,_/=10;if(!top)putchar('0');
      |   ^~~~~
foo.cc:137:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  137 |   while(_)sta[++top]=_%10,_/=10;if(!top)putchar('0');
      |                                 ^~
foo.cc:138:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  138 |   while(top)putchar(sta[top]+'0'),--top;putchar('.');
      |   ^~~~~
foo.cc:138:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  138 |   while(top)putchar(sta[top]+'0'),--top;putchar('.');
      |                                         ^~~~~~~
foo.cc: In member function 'Fastio::Writer& Fastio::Writer::operator<<(__float128)':
foo.cc:148:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  148 |   while(_)sta[++top]=_%10,_/=10;if(!top)putchar('0');
      |   ^~~~~
foo.cc:148:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  148 |   while(_)sta[++top]=_%10,_/=10;if(!top)putchar('0');
      |                                 ^~
foo.cc:149:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  149 |   while(top)putchar(sta[top]+'0'),--top;putchar('.');
      |   ^~~~~
foo.cc:149:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  149 |   while(top)putchar(sta[top]+'0'),--top;putchar('.');
      |                                         ^~~~~~~
foo.cc: At global scope:
foo.cc:191:13: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
  191 | signed main(){
      |             ^
foo.cc:191:13: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.cc:191:13: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.cc:191:13: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Wrong Answer User output longer than standard answer. 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Wrong Answer User output longer than standard answer. 3ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Wrong Answer User output longer than standard answer. 4ms 384.0 KiB
#8 Wrong Answer User output longer than standard answer. 4ms 384.0 KiB
#9 Wrong Answer User output longer than standard answer. 2ms 384.0 KiB
#10 Wrong Answer User output longer than standard answer. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1041 The Maze Tokens
比赛
AOCode Round #4
语言
C++
递交时间
2022-04-29 19:48:04
评测时间
2022-04-29 19:48:04
评测机
分数
40
总耗时
30ms
峰值内存
384.0 KiB