/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:29:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   29 |   scanf("%d %s",&n,Time+1);
      |          ~^     ~~
      |           |     |
      |           int*  long long int*
      |          %lld
foo.cc:35:15: warning: array subscript has type 'char' [-Wchar-subscripts]
   35 |     vis[jl[cnt]]=0,--cnt;
      |         ~~~~~~^
foo.cc:48:12: warning: array subscript has type 'char' [-Wchar-subscripts]
   48 |     if(vis[c]&&!flag){
      |            ^
foo.cc:52:9: warning: array subscript has type 'char' [-Wchar-subscripts]
   52 |     vis[c]=1,jl[++cnt]=c;
      |         ^
foo.cc:29:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   29 |   scanf("%d %s",&n,Time+1);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:32:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   32 |    scanf("\n%c",&c);
      |    ~~~~~^~~~~~~~~~~
foo.cc:47:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   47 |     scanf(" %c",&c);
      |     ~~~~~^~~~~~~~~~
foo.cc:53:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   53 |     scanf(" %c",&c);
      |     ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 376.0 KiB
#2 Accepted 5ms 384.0 KiB
#3 Accepted 4ms 384.0 KiB
#4 Accepted 4ms 512.0 KiB
#5 Accepted 3ms 512.0 KiB
#6 Accepted 3ms 436.0 KiB
#7 Accepted 5ms 384.0 KiB
#8 Accepted 2ms 512.0 KiB
#9 Accepted 4ms 512.0 KiB
#10 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P2029 时间复杂度
语言
C++
递交时间
2022-05-04 16:29:43
评测时间
2022-05-04 16:29:43
评测机
分数
100
总耗时
40ms
峰值内存
512.0 KiB