记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:2: error: variable-sized object may not be initialized
  int a[n],c[n]={};
  ^~~
foo.c:12:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   {if(j=k) continue;
       ^
foo.c:19:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  if(a[n-1]=a[p]) break;
     ^
foo.c:20:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  else if(p=0) c[n-1]=a[n-1];
          ^
foo.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ^~~~~~~~~~~~~~
foo.c:8:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&a[i]);
   ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
语言
C
递交时间
2021-09-23 10:26:08
评测时间
2021-09-23 10:26:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes