Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:11:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
   scanf("%d\n",&n);
                  ^
/in/foo.cc:13:4: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
    gets(str);
    ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:13:12: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
    gets(str);
            ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:29:59: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
      printf("%03d-%04d %d\n",li[i-1]/10000,li[i-1]%10000,s);
                                                           ^
/in/foo.cc:29:59: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
/in/foo.cc:29:59: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
/tmp/ccO32ZZH.o: In function `main':
foo.cc:(.text.startup+0x60): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 1ms 220.0 KiB
#2 Accepted 78ms 1.066 MiB
#3 Accepted 1ms 220.0 KiB
#4 Accepted 1ms 220.0 KiB
#5 Accepted 1ms 220.0 KiB
#6 Accepted 1ms 348.0 KiB
#7 Accepted 31ms 1.07 MiB
#8 Accepted 28ms 1.07 MiB
#9 Accepted 25ms 1.066 MiB
#10 Accepted 25ms 1.039 MiB

信息

递交者
类型
递交
题目
P1898 电话号码
语言
C++
递交时间
2021-05-02 13:45:52
评测时间
2021-05-02 13:45:52
评测机
分数
100
总耗时
198ms
峰值内存
1.07 MiB