advisor.cpp: In function 'int main()':
advisor.cpp:76:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
76 | freopen("input.txt", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
advisor.cpp:77:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
77 | freopen("output.txt", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccLS3QEE.o: in function `main':
advisor.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccobALBB.o:advisor_grader.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccobALBB.o: in function `main':
advisor_grader.cpp:(.text.startup+0xe6): undefined reference to `ComputeAdvice(int*, int, int, int)'
collect2: error: ld returned 1 exit status
assistant.cpp: In function 'void Assist(unsigned char*, int, int, int)':
assistant.cpp:49:14: error: 'vis' was not declared in this scope; did you mean 'vii'?
49 | memset(vis,0,sizeof vis);
| ^~~
| vii