### Maze Traversal

Hello I'm having a little problem here
please visit this site to read full description of the problem
http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=1318

the code is not working properly....
and here is the code :

 ``123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123`` ``````# include # include # include using namespace std ; int main () { int T , row1 , col1 , IniROW , IniCOL , Prow , Pcol ; char matrix [70][70] ; char directions [1000000] ; cin >> T ; cout << endl; for (int i=0 ; i> row1 >> col1 ; cin.ignore (); for (int row=0 ; row> IniROW >> IniCOL ; int counter = 0 ; cin.ignore () ; for (int j=0 ; j<100000 ; j++) { cin >> directions [j] ; counter ++ ; if (directions [j] == 'Q') { break ; } if ( (directions [j] =='\n' && directions [j] !='Q') || (directions [j] ==' ' && directions [j] !='Q') ) { continue ; } } string head = "north"; Prow = IniROW-1 ; Pcol = IniCOL-1 ; for (int j=0 ;j
Last edited on
Topic archived. No new replies allowed.