QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#442753#8583. 팰린드롬 판별하기ZhaoZiLongCompile Error//C++201.2kb2024-06-15 13:25:322024-06-15 13:25:32

详细

answer.code: In function ‘void fopn(std::string)’:
answer.code:11:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   11 |         freopen((name+".in").c_str(),"r",stdin);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:12:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   12 |         freopen((name+".out").c_str(),"w",stdout);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccJUGMQZ.o: in function `ask()':
implementer.cpp:(.text+0x6f3): undefined reference to `guess_palindromicity(int)'
/usr/bin/ld: /tmp/ccHMHnwZ.o: in function `guess_palindromicity(long long)':
answer.code:(.text+0x99): undefined reference to `find_character(long long, std::vector<long long, std::allocator<long long> >)'
/usr/bin/ld: answer.code:(.text+0xf6): undefined reference to `count_pair(long long, long long, long long)'
/usr/bin/ld: answer.code:(.text+0x129): undefined reference to `count_pair(long long, long long, long long)'
/usr/bin/ld: answer.code:(.text+0x13c): undefined reference to `count_pair(long long, long long, long long)'
collect2: error: ld returned 1 exit status