记录详情

Compile Error

foo.c:2:16: error: expected ';' before 'int'
    2 | int arr[500000]
      |                ^
      |                ;
    3 | int brr[500000]
      | ~~~             
foo.c:3:16: error: expected ';' before 'int'
    3 | int brr[500000]
      |                ^
      |                ;
    4 | 
    5 | int main()
      | ~~~             
foo.c: In function 'main':
foo.c:11:24: error: 'arr' undeclared (first use in this function)
   11 |         scanf("%d%d", &arr[i], &brr[i]);
      |                        ^~~
foo.c:11:24: note: each undeclared identifier is reported only once for each function it appears in
foo.c:11:33: error: 'brr' undeclared (first use in this function)
   11 |         scanf("%d%d", &arr[i], &brr[i]);
      |                                 ^~~
foo.c:13:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   13 |     if(N=6)
      |        ^
foo.c:16:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   16 |                 if(N=9)
      |                    ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1534 Problem 4E. 最大社交深度和
语言
C
递交时间
2023-11-02 10:20:39
评测时间
2023-11-02 10:20:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes