记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:5:7: warning: comparison of constant '10000000' with boolean expression is always true [-Wbool-compare]
    5 |   3<=n<=10000000;
      |       ^~
/in/foo.c:5:4: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
    5 |   3<=n<=10000000;
      |   ~^~~
/in/foo.c:5:3: warning: statement with no effect [-Wunused-value]
    5 |   3<=n<=10000000;
      |   ^
/in/foo.c:6:4: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
    6 |   2<i<n;
      |   ~^~
/in/foo.c:6:6: warning: statement with no effect [-Wunused-value]
    6 |   2<i<n;
      |   ~~~^~
/in/foo.c:6:4: warning: 'i' is used uninitialized [-Wuninitialized]
    6 |   2<i<n;
      |   ~^~
/in/foo.c:4:9: note: 'i' was declared here
    4 | { int n,i;
      |         ^
/in/foo.c:8:13: warning: 'n' is used uninitialized [-Wuninitialized]
    8 |         if(n%i==0)
      |            ~^~
/in/foo.c:4:7: note: 'n' was declared here
    4 | { int n,i;
      |       ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 284.0 KiB

信息

递交者
类型
自测
语言
C
递交时间
2025-11-13 15:19:46
评测时间
2025-11-13 15:19:46
评测机
分数
0
总耗时
1ms
峰值内存
284.0 KiB