rotate.cpp: In function 'int main()':
rotate.cpp:80:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
80 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
rotate.cpp:84:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
84 | scanf("%d", &v[i]);
| ~~~~~^~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccU5b7pP.o: in function `rotate(std::vector<int, std::allocator<int> >, int)':
grader.cpp:(.text+0x530): multiple definition of `rotate(std::vector<int, std::allocator<int> >, int)'; /tmp/ccwGTmHZ.o:rotate.cpp:(.text+0x310): first defined here
/usr/bin/ld: /tmp/ccU5b7pP.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccwGTmHZ.o:rotate.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccwGTmHZ.o: in function `main':
rotate.cpp:(.text.startup+0x16b): undefined reference to `energy(int, std::vector<int, std::allocator<int> >)'
/usr/bin/ld: /tmp/ccU5b7pP.o: in function `main':
grader.cpp:(.text.startup+0x278): undefined reference to `energy(int, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status