/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:21:33: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     for (int i = 0; i < n; ++i) gets(mp[i]);  
                                 ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 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:21:43: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     for (int i = 0; i < n; ++i) gets(mp[i]);  
                                           ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 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:75:40: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int64 {aka long long int}' [-Wformat=]
     printf("%I64d\n", (ans + MOD) % MOD);  
                                        ^
/tmp/ccIwPM4T.o: In function `main':
foo.cc:(.text.startup+0x4d): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 5ms 10.336 MiB
#2 Accepted 6ms 20.25 MiB
#3 Accepted 6ms 26.375 MiB
#4 Accepted 10ms 26.375 MiB
#5 Accepted 68ms 64.375 MiB
#6 Accepted 113ms 54.5 MiB
#7 Accepted 75ms 74.438 MiB
#8 Accepted 212ms 70.375 MiB
#9 Accepted 296ms 74.52 MiB
#10 Accepted 640ms 78.961 MiB

信息

递交者
类型
递交
题目
P1581 多米诺骨牌
语言
C++
递交时间
2017-09-05 16:26:03
评测时间
2017-09-05 16:26:04
评测机
分数
100
总耗时
1434ms
峰值内存
78.961 MiB