记录详情

Accepted

foo.cc: In function ‘int isprime(int)’:
foo.cc:13:9: warning: ‘k’ may be used uninitialized [-Wmaybe-uninitialized]
   13 |         if(k==n) return 1;
      |         ^~
foo.cc:5:13: note: ‘k’ was declared here
    5 |         int k;
      |             ^
In function ‘int isprime(int)’,
    inlined from ‘int main()’ at foo.cc:21:13:
foo.cc:13:9: warning: ‘k’ may be used uninitialized [-Wmaybe-uninitialized]
   13 |         if(k==n) return 1;
      |         ^~
foo.cc: In function ‘int main()’:
foo.cc:5:13: note: ‘k’ was declared here
    5 |         int k;
      |             ^
# 状态 耗时 内存占用
#1 Accepted 2ms 760.0 KiB
#2 Accepted 2ms 324.0 KiB
#3 Accepted 3ms 536.0 KiB
#4 Accepted 3ms 536.0 KiB
#5 Accepted 2ms 320.0 KiB

信息

递交者
类型
递交
题目
A5-1 超级素数判断
比赛
2024程序设计与竞赛作业赛第一场(喜相逢)
语言
C++
递交时间
2024-09-26 22:21:39
评测时间
2024-09-26 22:21:39
评测机
分数
100
总耗时
15ms
峰值内存
760.0 KiB