/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
    8 |         scanf("%d",&n);
      |                ~^  ~~
      |                 |  |
      |                 |  long int*
      |                 int*
      |                %ld
/in/foo.cc:13:34: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
   13 |                         printf("%d",n/ans);
      |                                 ~^  ~~~~~
      |                                  |   |
      |                                  int long int
      |                                 %ld
# 状态 耗时 内存占用
#1 Accepted 1ms 324.0 KiB
#2 Accepted 1ms 328.0 KiB
#3 Accepted 1ms 396.0 KiB
#4 Accepted 1ms 324.0 KiB
#5 Accepted 1ms 284.0 KiB
#6 Accepted 1ms 320.0 KiB
#7 Accepted 1ms 372.0 KiB
#8 Accepted 1ms 344.0 KiB
#9 Accepted 1ms 420.0 KiB
#10 Accepted 1ms 324.0 KiB

信息

递交者
类型
递交
题目
P1786 质因数分解
语言
C++
递交时间
2025-02-15 16:09:54
评测时间
2025-02-15 16:09:54
评测机
分数
100
总耗时
12ms
峰值内存
420.0 KiB