/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:10:10: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int' [-Wformat=]
   10 |  scanf("%d",L);
      |         ~^  ~
      |          |  |
      |          |  long long int
      |          int*
foo.cc:14:12: warning: format '%c' expects argument of type 'int', but argument 2 has type 'const char*' [-Wformat=]
   14 |   printf("%c","impossible");
      |           ~^  ~~~~~~~~~~~~
      |            |  |
      |            |  const char*
      |            int
      |           %s
foo.cc:17:8: warning: unused variable 'b' [-Wunused-variable]
   17 |   long b=a+L;
      |        ^
foo.cc:24:12: warning: format '%c' expects argument of type 'int', but argument 2 has type 'const char*' [-Wformat=]
   24 |   printf("%c","impossible");
      |           ~^  ~~~~~~~~~~~~
      |            |  |
      |            |  const char*
      |            int
      |           %s
foo.cc:27:8: warning: unused variable 'b' [-Wunused-variable]
   27 |   long b=a+L;
      |        ^
foo.cc:7:13: warning: unused variable 'b' [-Wunused-variable]
    7 |  long a=d*m,b=d*n;
      |             ^
foo.cc:10:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   10 |  scanf("%d",L);
      |  ~~~~~^~~~~~~~
foo.cc:7:9: warning: 'd' is used uninitialized in this function [-Wuninitialized]
    7 |  long a=d*m,b=d*n;
      |         ^
foo.cc:7:10: warning: 'm' is used uninitialized in this function [-Wuninitialized]
    7 |  long a=d*m,b=d*n;
      |         ~^~
foo.cc:7:16: warning: 'n' is used uninitialized in this function [-Wuninitialized]
    7 |  long a=d*m,b=d*n;
      |               ~^~
foo.cc:10:7: warning: 'L' is used uninitialized in this function [-Wuninitialized]
   10 |  scanf("%d",L);
      |  ~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 3ms 384.0 KiB
#2 Runtime Error Segmentation fault 4ms 384.0 KiB
#3 Runtime Error Segmentation fault 3ms 384.0 KiB
#4 Runtime Error Segmentation fault 3ms 384.0 KiB
#5 Runtime Error Segmentation fault 3ms 384.0 KiB
#6 Runtime Error Segmentation fault 3ms 384.0 KiB
#7 Runtime Error Segmentation fault 2ms 384.0 KiB
#8 Runtime Error Segmentation fault 2ms 384.0 KiB
#9 Runtime Error Segmentation fault 2ms 400.0 KiB
#10 Runtime Error Segmentation fault 2ms 512.0 KiB

信息

递交者
类型
递交
题目
P1009 清帝之惑之康熙
语言
C++
递交时间
2022-07-06 21:36:02
评测时间
2022-07-06 21:36:02
评测机
分数
0
总耗时
33ms
峰值内存
512.0 KiB