记录详情

Runtime Error

/in/foo.cc: In function 'bool isPrime(int)':
/in/foo.cc:11:15: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for(int i=0;i<=n;i++)
              ~^~~
/in/foo.cc: In function 'int PrimeCount(int*, int)':
/in/foo.cc:11:15: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for(int i=0;i<=n;i++)
              ~^~~
/in/foo.cc:10:6: note: 'n' was declared here
  int n;
      ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:11:15: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for(int i=0;i<=n;i++)
              ~^~~
/in/foo.cc:10:6: note: 'n' was declared here
  int n;
      ^
/in/foo.cc:11:15: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for(int i=0;i<=n;i++)
              ~^~~
/in/foo.cc:10:6: note: 'n' was declared here
  int n;
      ^
# 状态 耗时 内存占用
#1 Runtime Error 1ms 436.0 KiB
#2 Runtime Error 1ms 436.0 KiB
#3 Runtime Error 2ms 456.0 KiB
#4 Runtime Error 2ms 432.0 KiB
#5 Runtime Error 2ms 428.0 KiB

信息

递交者
类型
递交
题目
A9-1 数组中的素数个数
比赛
泰院2401程序设计基础作业赛第五场
语言
C++
递交时间
2024-11-18 17:20:48
评测时间
2024-11-18 17:20:48
评测机
分数
0
总耗时
10ms
峰值内存
456.0 KiB