The code is showing compilation error.
CODE PROVIDING ERROR ON CodingBlocks IDE
Sir, here we are using 2-D array. But why is the code using vector not working?
hi @pratyushnitdgp19_2c287088d77b5893
there were 2 errors in your code -
- U had not included ‘algorithm’ header file, which is used for ‘max’ inbuilt function.
- U can’t directly find the max of 3 numbers by writing max(a,b,c). u will have to write like
max(a, max(a,b))
corrected code -->
https://ide.codingblocks.com/s/651590
It’s working fine now…
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.