记录详情

Accepted

foo.cc: In function 'long long int slove()':
foo.cc:36:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   36 |     if(temp!=0) printf("%d",temp);
      |                         ~^  ~~~~
      |                          |  |
      |                          |  long long int
      |                          int
      |                         %lld
foo.cc:39:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   39 |         printf("%d",ans[i]);
      |                 ~^  ~~~~~~
      |                  |       |
      |                  int     long long int
      |                 %lld
foo.cc:13:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   13 |     scanf("%s",num);
      |     ~~~~~^~~~~~~~~~
foo.cc:19:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   19 |     scanf("%s",num);
      |     ~~~~~^~~~~~~~~~
foo.cc:11:26: warning: 'la' may be used uninitialized in this function [-Wmaybe-uninitialized]
   11 |     int a[N],b[N],ans[N],la,lb;
      |                          ^~
foo.cc:11:29: warning: 'lb' may be used uninitialized in this function [-Wmaybe-uninitialized]
   11 |     int a[N],b[N],ans[N],la,lb;
      |                             ^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 5ms 384.0 KiB
#2 Accepted 3ms 508.0 KiB
#3 Accepted 8ms 384.0 KiB
#4 Accepted 9ms 384.0 KiB
#5 Accepted 8ms 384.0 KiB
#6 Accepted 17ms 384.0 KiB
#7 Accepted 8ms 384.0 KiB
#8 Accepted 8ms 384.0 KiB
#9 Accepted 8ms 384.0 KiB
#10 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
凸包
题目数据
下载
语言
C++
递交时间
2022-03-27 13:05:47
评测时间
2022-03-27 13:05:47
评测机
分数
100
总耗时
80ms
峰值内存
508.0 KiB