QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#269575#7640. Colorful Cyclesucup-team1151Compile Error//C++171.7kb2023-11-29 19:41:582023-11-29 19:41:59

Details

answer.code: In function ‘int main()’:
answer.code:53:20: error: too few arguments to function ‘void dfs(int, int, int)’
   53 |       d[i] = 1; dfs(i, 0);
      |                 ~~~^~~~~~
answer.code:19:6: note: declared here
   19 | void dfs(int u, int p, int pw) {
      |      ^~~
answer.code:40:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   40 |   scanf("%d", &test);
      |   ~~~~~^~~~~~~~~~~~~
answer.code:42:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   42 |     scanf("%d%d", &n, &m);
      |     ~~~~~^~~~~~~~~~~~~~~~
answer.code:46:12: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   46 |       scanf("%d%d%d", &u, &v, &w);
      |       ~~~~~^~~~~~~~~~~~~~~~~~~~~~