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)提供评测服务