/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:18:2: error: 'memset' was not declared in this scope
  memset(ismost,max,false);
  ^~~~~~
/in/foo.cc:18:2: note: suggested alternative: 'wmemset'
  memset(ismost,max,false);
  ^~~~~~
  wmemset
/in/foo.cc:27:8: warning: unused variable 't' [-Wunused-variable]
    int t=a[i];a[i]=a[k];a[k]=i;
        ^
/in/foo.cc:31:6: error: 'k' was not declared in this scope
  for(k=1;k<=3;k++)
      ^
/in/foo.cc:33:8: error: 'i' was not declared in this scope
   for (i=1;i<=n;i++)
        ^
/in/foo.cc:6:36: warning: unused variable 'most' [-Wunused-variable]
  int n,a[max],num[max],sum,top,ave,most;
                                    ^~~~

信息

递交者
类型
自测
题目
P1742 数据统计
语言
C++
递交时间
2018-10-28 14:25:15
评测时间
2018-10-28 14:25:15
评测机
分数
0
总耗时
275ms
峰值内存
30.176 MiB