/ Vijos /

记录详情

Accepted

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){fout<<0<<'\n';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){fout<<0<<'\n';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){fout<<0<<'\n';continue;} if(d^1) check(d);fout<<ans<<'\n';
                                 ^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 664.0 KiB
#2 Accepted 3ms 624.0 KiB
#3 Accepted 3ms 640.0 KiB
#4 Accepted 3ms 640.0 KiB
#5 Accepted 3ms 640.0 KiB
#6 Accepted 3ms 660.0 KiB
#7 Accepted 3ms 716.0 KiB
#8 Accepted 4ms 680.0 KiB
#9 Accepted 7ms 748.0 KiB
#10 Accepted 12ms 820.0 KiB

信息

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