Xoractive.cpp: In function 'int main()':
Xoractive.cpp:85:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
85 | freopen("file.txt", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Xoractive.cpp:87:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
87 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
Xoractive.cpp:90:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
90 | scanf("%d", &x);
| ~~~~~^~~~~~~~~~
/usr/bin/ld: /tmp/ccau7XCb.o: in function `ask(int)':
grader.cpp:(.text+0x470): multiple definition of `ask(int)'; /tmp/cckOmHDe.o:Xoractive.cpp:(.text+0x380): first defined here
/usr/bin/ld: /tmp/ccau7XCb.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cckOmHDe.o:Xoractive.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status