/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:1: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
 gets(a1);
 ^~~~
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:5:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
 gets(a1);
        ^
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:6:24: error: cannot convert 'long long int*' to 'const char*' for argument '1' to 'size_t strlen(const char*)'
 for(int i=0;i<=strlen(a);i++)
                        ^
/in/foo.cc:4:23: warning: unused variable 'p' [-Wunused-variable]
 char a1[90];long long p,a[90];
                       ^

信息

递交者
类型
递交
题目
P1375 大整数
语言
C++
递交时间
2018-06-02 11:36:47
评测时间
2018-06-02 11:36:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes