encoder.cpp: In function 'void encode(int, int, int, int*, int*)':
encoder.cpp:7:12: error: 'N' was not declared in this scope
7 | int grid[N][N];
| ^
encoder.cpp:10:9: error: 'grid' was not declared in this scope
10 | grid[i][j]=2000;
| ^~~~
encoder.cpp:12:5: error: 'grid' was not declared in this scope
12 | grid[i][i]=0;
| ^~~~
encoder.cpp:15:5: error: 'grid' was not declared in this scope
15 | grid[a[i]][b[i]]=1;
| ^~~~
encoder.cpp:22:17: error: 'grid' was not declared in this scope
22 | int tmp=grid[i][k]+grid[k][j];
| ^~~~
encoder.cpp:29:14: error: 'grid' was not declared in this scope
29 | int nm=grid[i][j];
| ^~~~
/usr/bin/ld: /tmp/ccXknB5w.o: in function `main':
grader_decoder.c:(.text.startup+0x126): undefined reference to `decode(int, int)'
collect2: error: ld returned 1 exit status