Bourbon_Man's blog

By Bourbon_Man, history, 11 months ago, In English

Can someone help me understand why this code works for g++ 17 but not on g++ 20?

240675477

  • Vote: I like it
  • +1
  • Vote: I do not like it

»
11 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by Bourbon_Man (previous revision, new revision, compare).

»
11 months ago, # |
  Vote: I like it +9 Vote: I do not like it

The error is at int dfs, you don't return anything. You should change it to void dfs.