记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:38:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ~~~~~^~~~~~~~~
foo.cc: In function 'int fun1(int, int, int*)':
foo.cc:30:11: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(prime(i))
      ~~~~~^~~
foo.cc: In function 'int main()':
foo.cc:30:11: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(prime(i))
      ~~~~~^~~
foo.cc:26:6: note: 'i' was declared here
  int i,k=0;
      ^
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Wrong Answer 0a1,4 > 3~5 k=5 > 11 13 17 19 0ms 256.0 KiB
#2 Wrong Answer 0a1,7 > 3~5 k=5 > 11 13 17 19 0ms 256.0 KiB
#3 Wrong Answer 0a1,16 > 3~5 k=5 > 11 13 17 1 0ms 256.0 KiB
#4 Wrong Answer 0a1,20 > 3~5 k=5 > 11 13 17 1 0ms 256.0 KiB
#5 Wrong Answer 0a1,4 > 3~5 k=5 > 11 13 17 19 0ms 256.0 KiB

信息

递交者
类型
递交
题目
8-1 改错题
语言
C++
递交时间
2020-12-05 21:34:11
评测时间
2020-12-05 21:34:11
评测机
分数
0
总耗时
4ms
峰值内存
256.0 KiB