/ Vijos /

记录详情

Wrong Answer

foo.cc: In member function 'FastIO& FastIO::operator>>(char*)':
foo.cc:25:98: warning: no return statement in function returning non-void [-Wreturn-type]
  FastIO& operator >> (char* s){int Len=0;char ch=nc();while(ch!='\n'){*(s+Len)=ch;Len++;ch=nc();}}
                                                                                                  ^
foo.cc: In member function 'FastIO& FastIO::operator<<(T)':
foo.cc:28:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   while(stk[0]) pc('0'+stk[stk[0]--]);return *this;
   ^~~~~
foo.cc:28:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   while(stk[0]) pc('0'+stk[stk[0]--]);return *this;
                                       ^~~~~~
foo.cc: In function 'int main()':
foo.cc:37:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(!(d%pri[i])) check(pri[i]);if(!ans){puts("0");continue;} if(d^1) check(d);fout<<ans<<'\n';
   ^~
foo.cc:37:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   if(!(d%pri[i])) check(pri[i]);if(!ans){puts("0");continue;} if(d^1) check(d);fout<<ans<<'\n';
                                 ^~
foo.cc:36:74: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   fin>>a>>b>>c>>d,ans=1;if((a%b)||(d%c)||(d%b)){fout<<0<<'\n';continue;} for(register int i=1;i<=tot&&pri[i]<=sqrt(d)&&ans;i++) 
                                                                          ^~~
foo.cc:37:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   if(!(d%pri[i])) check(pri[i]);if(!ans){puts("0");continue;} if(d^1) check(d);fout<<ans<<'\n';
                                 ^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 716.0 KiB
#2 Accepted 4ms 680.0 KiB
#3 Accepted 3ms 676.0 KiB
#4 Accepted 3ms 692.0 KiB
#5 Accepted 3ms 688.0 KiB
#6 Accepted 3ms 684.0 KiB
#7 Accepted 3ms 700.0 KiB
#8 Accepted 4ms 688.0 KiB
#9 Accepted 8ms 760.0 KiB
#10 Wrong Answer 1,263d0 < 0 < 0 < 0 < 0 < 0 < 12ms 836.0 KiB

信息

递交者
类型
递交
题目
P1753 HankSon的趣味题
语言
C++
递交时间
2021-10-05 09:09:41
评测时间
2021-10-05 09:09:41
评测机
分数
90
总耗时
51ms
峰值内存
836.0 KiB