记录详情

Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:12:26: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   12 |                         {if (n%i==0)
      |                          ^~
foo.cc:14:38: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
   14 |                                      cout<<"No"<<endl;
      |                                      ^~~~
foo.cc:7:17: warning: ‘n’ is used uninitialized [-Wuninitialized]
    7 |         while (n>1)
      |                ~^~
foo.cc:6:13: note: ‘n’ was declared here
    6 |         int n;
      |             ^
# 状态 耗时 内存占用
#1 Accepted 2ms 504.0 KiB
#2 Accepted 2ms 504.0 KiB
#3 Wrong Answer On line 1: Read Yes, expect No. 2ms 760.0 KiB
#4 Wrong Answer On line 1: Read Yes, expect No. 2ms 504.0 KiB
#5 Wrong Answer On line 1: Read Yes, expect No. 1ms 504.0 KiB

信息

递交者
类型
递交
题目
A5-1 超级素数判断
语言
C++
递交时间
2025-08-08 20:52:20
评测时间
2025-08-08 20:52:20
评测机
分数
40
总耗时
10ms
峰值内存
760.0 KiB