Wrong Answer

foo.cc: In function 'int main()':
foo.cc:28:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  ll n;  scanf("%lld",&n);
         ~~~~~^~~~~~~~~~~
foo.cc:26:39: warning: iteration 10 invokes undefined behavior [-Waggressive-loop-optimizations]
     rep(i,1,11) ans[i]=ans[i-1]*prim[i];
                                 ~~~~~~^
foo.cc:8:32: note: within this loop
 #define rep(i,a,b) for(ll i=a;i<=b;++i)
foo.cc:26:9:
     rep(i,1,11) ans[i]=ans[i-1]*prim[i];
         ~~~~~                   
foo.cc:26:5: note: in expansion of macro 'rep'
     rep(i,1,11) ans[i]=ans[i-1]*prim[i];
     ^~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Wrong Answer Read 840, expect 5040. 1ms 384.0 KiB
#2 Wrong Answer Read 7560, expect 15120. 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Wrong Answer Read 1081080, expect 7207200. 2ms 384.0 KiB
#5 Wrong Answer Read 17297280, expect 43243200. 2ms 384.0 KiB
#6 Wrong Answer Read 17297280, expect 73513440. 2ms 384.0 KiB
#7 Wrong Answer 0a1 > 294053760 \ No newline a 2ms 384.0 KiB
#8 Wrong Answer 0a1 > 551350800 \ No newline a 2ms 384.0 KiB
#9 Wrong Answer 0a1 > 735134400 \ No newline a 2ms 384.0 KiB
#10 Wrong Answer 0a1 > 1396755360 \ No newline 2ms 384.0 KiB

信息

递交者
类型
递交
题目
「一本通 6.3 例 1」反素数 Antiprime
语言
C++
递交时间
2021-04-15 19:35:10
评测时间
2021-04-15 19:35:10
评测机
分数
10
总耗时
22ms
峰值内存
384.0 KiB