记录详情

Accepted

/in/foo.cc:31:2: warning: "/*" within comment [-Wcomment]
  /*
   
/in/foo.cc: In function 'void add(int*, int)':
/in/foo.cc:62:6: warning: unused variable 'x' [-Wunused-variable]
  int x=1;
      ^
/in/foo.cc: In function 'void chengfa(int*, int*, int*, int, int)':
/in/foo.cc:81:21: warning: 'sizeof' on array function parameter 'c' will return size of 'int*' [-Wsizeof-array-argument]
  memset(c,0,sizeof(c));
                     ^
/in/foo.cc:79:36: note: declared here
 void chengfa(int a[],int b[],int c[],int lena,int lenb){
                                    ^
/in/foo.cc:81:19: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
  memset(c,0,sizeof(c));
                   ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:178:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(s);
        ^
In file included from /usr/include/c++/7/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__;
              ^~~~
/tmp/ccXq3inR.o: In function `main':
foo.cc:(.text.startup+0x1a): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 1ms 572.0 KiB
#2 Accepted 1ms 588.0 KiB
#3 Accepted 12ms 572.0 KiB
#4 Accepted 13ms 576.0 KiB
#5 Accepted 12ms 588.0 KiB
#6 Accepted 13ms 572.0 KiB
#7 Accepted 12ms 572.0 KiB
#8 Accepted 12ms 588.0 KiB
#9 Accepted 11ms 572.0 KiB
#10 Accepted 1ms 572.0 KiB

信息

递交者
类型
递交
题目
完全平方数 (square.*)
题目数据
下载
语言
C++
递交时间
2018-10-27 16:28:35
评测时间
2018-10-27 16:28:35
评测机
分数
100
总耗时
93ms
峰值内存
588.0 KiB