QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#769536#8571. Palworlducup-team3862#Compile Error//C++202.9kb2024-11-21 18:04:282024-11-21 18:04:28

详细

answer.code: In function ‘int main()’:
answer.code:56:10: error: conflicting declaration ‘auto lcp’
   56 |     auto lcp = [&](int i, int j) {
      |          ^~~
answer.code:37:10: note: previous declaration as ‘main()::<lambda(int, int)> lcp’
   37 |     auto lcp = [&](int i, int j) {
      |          ^~~
answer.code: In lambda function:
answer.code:39:16: warning: control reaches end of non-void function [-Wreturn-type]
   39 |       i = n - i, j++;
      |       ~~~~~~~~~^~~~~