QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#746403#9566. Topologyucup-team4946#Compile Error//C++143.9kb2024-11-14 14:30:222024-11-14 14:30:22

Details

answer.code: In function ‘int main()’:
answer.code:139:56: error: expected ‘}’ at end of input
  139 |     rep (i, 1, n) printf("%d%c", ans[i], "\n "[i < n]);
      |                                                        ^
answer.code:128:12: note: to match this ‘{’
  128 | int main() {
      |            ^
answer.code:129:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  129 |     scanf("%d", &n);
      |     ~~~~~^~~~~~~~~~
answer.code:132:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  132 |         scanf("%d", &u), adj[u].push_back(i);
      |         ~~~~~^~~~~~~~~~