/ Vijos /

记录详情

Accepted

/in/foo.cc:2:25: warning: extra tokens at end of #include directive
 #include<bits/stdc++.h> Fuko Ibuki
                         ^~~~
/in/foo.cc: In function 'int chtholly::read(double&)':
/in/foo.cc:10:284: warning: no return statement in function returning non-void [-Wreturn-type]
 int read(double &r){double x=0,t=0;int s=0,f=1;char c=getchar();for (;!isdigit(c);c=getchar()){if (c=='-') f=-1;if (c=='.') goto readt;}for (;isdigit(c)&&c!='.';c=getchar()) x=x*10+c-'0';readt:for (;c=='.';c=getchar());for (;isdigit(c);c=getchar()) t=t*10+c-'0',++s;r=(x+t/ten[s])*f;}
                                                                                                                                                                                                                                                                                            ^
/in/foo.cc: In function 'int chtholly::read(long long int&)':
/in/foo.cc:11:112: warning: no return statement in function returning non-void [-Wreturn-type]
 int read(ll &x){x=0;char c=getchar();for (;!isdigit(c);c=getchar());for (;isdigit(c);c=getchar()) x=x*10+c-'0';}
                                                                                                                ^
/in/foo.cc: In function 'boss operator/(boss, boss)':
/in/foo.cc:118:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 for (c.len=a.len-b.len+1;c.len<4000&&c.num[c.len]!=0;++c.len);c.len--;
 ^~~
/in/foo.cc:118:63: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
 for (c.len=a.len-b.len+1;c.len<4000&&c.num[c.len]!=0;++c.len);c.len--;
                                                               ^
/in/foo.cc: In function 'int chtholly::write(int)':
/in/foo.cc:9:128: warning: control reaches end of non-void function [-Wreturn-type]
 int write(int x){if (!x) return putchar('0');int bit[20],i,p=0;for (;x;x/=10) bit[++p]=x%10;for (i=p;i;--i) putchar(bit[i]+48);}
                                                                                                                                ^
/in/foo.cc: In function 'int chtholly::dwrite(long long int)':
/in/foo.cc:12:131: warning: control reaches end of non-void function [-Wreturn-type]
 int dwrite(ll x){if (x==0) return putchar(48);int bit[20],p=0,i;for (;x;x/=10) bit[++p]=x%10;for (i=p;i>0;--i) putchar(bit[i]+48);}
                                                                                                                                   ^
/in/foo.cc: In function 'int chtholly::write(double, int)':
/in/foo.cc:13:293: warning: control reaches end of non-void function [-Wreturn-type]
 int write(double x,int k=6){static int n=ten[k];if (x==0) {putchar('0'),putchar('.');for (int i=1;i<=k;++i) putchar('0');return 0;}if (x<0) putchar('-'),x=-x;ll y=(ll)(x*n)%n;x=(ll)x;dwrite(x),putchar('.');int bit[20],p=0,i;for (;p<k;y/=10) bit[++p]=y%10;for (i=p;i>0;--i) putchar(bit[i]+48);}
                                                                                                                                                                                                                                                                                                     ^
# 状态 耗时 内存占用
#1 Accepted 3ms 372.0 KiB
#2 Accepted 3ms 256.0 KiB
#3 Accepted 3ms 340.0 KiB
#4 Accepted 3ms 376.0 KiB
#5 Accepted 3ms 256.0 KiB
#6 Accepted 1ms 340.0 KiB
#7 Accepted 2ms 364.0 KiB
#8 Accepted 2ms 364.0 KiB
#9 Accepted 3ms 368.0 KiB
#10 Accepted 1ms 336.0 KiB

信息

递交者
类型
递交
题目
P1047 最小公倍数
语言
C++
递交时间
2018-05-23 20:45:59
评测时间
2018-05-23 20:45:59
评测机
分数
100
总耗时
29ms
峰值内存
376.0 KiB