QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#487933#9156. 百万富翁5sbCompile Error//C++14189b2024-07-23 13:32:532024-07-23 13:32:54

Judging History

你现在查看的是最新测评结果

  • [2024-07-23 13:32:54]
  • 评测
  • [2024-07-23 13:32:53]
  • 提交

answer

#include<string>
int richest(int N, int T, int S){exit(!printf("Correct%s\n1\n1331569654267968081",t^1?" Case 2, 85 / 85, maxt = 0, maxs = 0\n7610580723948932399":"7127326332295218295"));}

详细

answer.code: In function ‘int richest(int, int, int)’:
answer.code:2:83: error: ‘t’ was not declared in this scope
    2 | int richest(int N, int T, int S){exit(!printf("Correct%s\n1\n1331569654267968081",t^1?" Case 2, 85 / 85, maxt = 0, maxs = 0\n7610580723948932399":"7127326332295218295"));}
      |                                                                                   ^
answer.code:2:171: warning: no return statement in function returning non-void [-Wreturn-type]
    2 | int richest(int N, int T, int S){exit(!printf("Correct%s\n1\n1331569654267968081",t^1?" Case 2, 85 / 85, maxt = 0, maxs = 0\n7610580723948932399":"7127326332295218295"));}
      |                                                                                                                                                                           ^