Compilation Error while its working fine with my LOCAL IDE

Hi,

Also why this is prompting “Submission not Judged”

Check here the code

Is there any problem with the sever (codingblocks) right now??

not the correct way to take input

fori(n){
        forj(m){
            cin>>v[i];
        }
    }

as v is vector of strings
so only one loop should run

also make ans vector of size n+1 X m+1

Modified code

1 Like

NO there is no problem with server

thanks--------->>>>>>

i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved :grinning:
if you have more doubts regarding this feel free to ask

@asaurabh_26
One thing I didn’t understood was why we have to make array n+1 x m+1 as I am not going outside anywhere!!

Done!
thank you for suggesting correct method of input ( because I initially took char vector that’s why one extra loop remained there)

I marked the doubt as resolved!!
Regards

initially i did not look at solve() and it is giving segmentation fault so i just increase the size of array
to check what is wrong

you can ignore that
it will also work with nXm

1 Like