/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'void primes(int)':
/in/foo.cc:18:19: warning: left operand of comma operator has no effect [-Wunused-value]
       for(ll j=1;j<=num1,i*prime[j]<=n;++j){
                  ~^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:36:15: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=]
  scanf("%d",&n);primes(maxx);
             ~~^
/in/foo.cc:39:46: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll {aka long long int}' [-Wformat=]
  for(int i=1;i<=num2;++i)printf("%d\n",ans[i]);
                                        ~~~~~~^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 320.0 KiB
#2 Wrong Answer 1ms 332.0 KiB
#3 Wrong Answer 1ms 320.0 KiB
#4 Wrong Answer 1ms 316.0 KiB
#5 Wrong Answer 1ms 336.0 KiB

信息

递交者
类型
递交
题目
P1359 Superprime
语言
C++
递交时间
2018-11-03 15:24:05
评测时间
2018-11-03 15:24:05
评测机
分数
0
总耗时
8ms
峰值内存
336.0 KiB