QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#786224#9156. 百万富翁jimmyFCompile Error//C++14753b2024-11-26 20:47:502024-11-26 20:47:51

Details

answer.code:5:8: error: size of array ‘id’ is not an integral constant-expression
    5 | int id[V],tmp[V];
      |        ^
answer.code:5:15: error: size of array ‘tmp’ is not an integral constant-expression
    5 | int id[V],tmp[V];
      |               ^
answer.code:6:10: error: size of array ‘vis’ is not an integral constant-expression
    6 | bool vis[V];
      |          ^
answer.code: In function ‘int richest(int, int, int)’:
answer.code:20:17: error: ‘R’ was not declared in this scope
   20 |                 R=0;
      |                 ^
answer.code:31:1: warning: no return statement in function returning non-void [-Wreturn-type]
   31 | }
      | ^