Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:5: warning: statement has no effect [-Wunused-value]
    7 | for(i;i*i<n;i++)
      |     ^
/in/foo.cc:11:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   11 | if(i*i==n)s++;cout<<s;
      | ^~
/in/foo.cc:11:15: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   11 | if(i*i==n)s++;cout<<s;
      |               ^~~~
/in/foo.cc:5:7: warning: unused variable 'm' [-Wunused-variable]
    5 | int n,m,a[100001],s=0,x,y;
      |       ^
/in/foo.cc:5:9: warning: unused variable 'a' [-Wunused-variable]
    5 | int n,m,a[100001],s=0,x,y;
      |         ^
/in/foo.cc:5:23: warning: unused variable 'x' [-Wunused-variable]
    5 | int n,m,a[100001],s=0,x,y;
      |                       ^
/in/foo.cc:5:25: warning: unused variable 'y' [-Wunused-variable]
    5 | int n,m,a[100001],s=0,x,y;
      |                         ^
# 状态 耗时 内存占用
#1 Accepted 2ms 480.0 KiB
#2 Accepted 2ms 472.0 KiB
#3 Accepted 2ms 500.0 KiB
#4 Accepted 1ms 476.0 KiB
#5 Accepted 2ms 532.0 KiB

信息

递交者
类型
递交
题目
P1830 约数 正整数的约数个数
语言
C++
递交时间
2026-04-05 09:34:00
评测时间
2026-04-05 09:34:00
评测机
分数
100
总耗时
10ms
峰值内存
532.0 KiB