i_love_Lisa_'s blog

By i_love_Lisa_, history, 7 weeks ago, In English

I don't understand why using function pointers is WA. Help me!

Here is the code using function pointer: 130577608

Here is the code AC: 130578608

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

»
7 weeks ago, # |
Rev. 2   Vote: I like it +1 Vote: I do not like it

Try and submit the WA and AC code in C++20 , both are giving an error code for out of bounds.

So check the code for RTE and it should run fine.

About the error code

»
7 weeks ago, # |
  Vote: I like it +4 Vote: I do not like it