记录详情

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:24:14:
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 536.0 KiB
#2 Accepted 3ms 324.0 KiB
#3 Accepted 4ms 532.0 KiB
#4 Accepted 133ms 560.0 KiB
#5 Accepted 134ms 536.0 KiB

信息

递交者
类型
递交
比赛
2024程序设计与竞赛作业赛第一场(喜相逢)
语言
C++
递交时间
2024-09-26 22:38:01
评测时间
2024-09-26 22:38:01
评测机
分数
100
总耗时
278ms
峰值内存
560.0 KiB