QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#230163#6558. Allergen Testingucup-team1565#Compile Error//C++202.5kb2023-10-28 17:47:002023-10-28 17:47:00

Details

answer.code: In function ‘int dfs(int, int, int, std::pair<int, int>)’:
answer.code:64:14: error: ‘toRem’ was not declared in this scope
   64 |          if (toRem[i]) {
      |              ^~~~~
answer.code:65:24: error: ‘cur’ was not declared in this scope
   65 |             if (dfs(a, cur, tar, e[i].nd))
      |                        ^~~
answer.code:73:16: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   73 |    int32_t main() {
      |                ^~
answer.code:73:16: note: remove parentheses to default-initialize a variable
   73 |    int32_t main() {
      |                ^~
      |                --
answer.code:73:16: note: or replace parentheses with braces to value-initialize a variable
answer.code:73:19: error: a function-definition is not allowed here before ‘{’ token
   73 |    int32_t main() {
      |                   ^
answer.code:106:5: error: expected ‘}’ at end of input
  106 |    }
      |     ^
answer.code:54:49: note: to match this ‘{’
   54 | int dfs(int u, int par, int tar, pii lastToRem) {
      |                                                 ^
answer.code:106:5: warning: control reaches end of non-void function [-Wreturn-type]
  106 |    }
      |     ^