记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:9:24: error: 'arr' was not declared in this scope
    9 |         scanf("%d%d", &arr[i], &brr[i]);
      |                        ^~~
foo.cc:9:33: error: 'brr' was not declared in this scope
    9 |         scanf("%d%d", &arr[i], &brr[i]);
      |                                 ^~~
foo.cc:12:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   12 |     if(N=6)
      |        ~^~
foo.cc:15:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   15 |                 if(N=9)
      |                    ~^~
foo.cc:18:29: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   18 |                     printf(N*4);
      |                            ~^~
      |                             |
      |                             int
In file included from foo.cc:1:
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:356:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  356 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
foo.cc:5:9: warning: unused variable 'max' [-Wunused-variable]
    5 |     int max=0;
      |         ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

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