Main.cpp: In function 'void solve()':
Main.cpp:107:46: warning: narrowing conversion of 'i' from 'int' to 'short int' [-Wnarrowing]
107 | if(j > 1) g[i][j].push_back({i , j-1 , 0});
| ^
Main.cpp:107:51: warning: narrowing conversion of '(j - 1)' from 'int' to 'short int' [-Wnarrowing]
107 | if(j > 1) g[i][j].push_back({i , j-1 , 0});
| ~^~
Main.cpp:108:46: warning: narrowing conversion of 'i' from 'int' to 'short int' [-Wnarrowing]
108 | if(j < m) g[i][j].push_back({i , j+1 , 0});
| ^
Main.cpp:108:51: warning: narrowing conversion of '(j + 1)' from 'int' to 'short int' [-Wnarrowing]
108 | if(j < m) g[i][j].push_back({i , j+1 , 0});
| ~^~
Main.cpp:109:47: warning: narrowing conversion of '(i - 1)' from 'int' to 'short int' [-Wnarrowing]
109 | if(i > 1) g[i][j].push_back({i-1 , j , 0});
| ~^~
Main.cpp:109:52: warning: narrowing conversion of 'j' from 'int' to 'short int' [-Wnarrowing]
109 | if(i > 1) g[i][j].push_back({i-1 , j , 0});
| ^
Main.cpp:110:47: warning: narrowing conversion of '(i + 1)' from 'int' to 'short int' [-Wnarrowing]
110 | if(i < n) g[i][j].push_back({i+1 , j , 0});
| ~^~
Main.cpp:110:52: warning: narrowing conversion of 'j' from 'int' to 'short int' [-Wnarrowing]
110 | if(i < n) g[i][j].push_back({i+1 , j , 0});
| ^
Main.cpp:119:64: warning: narrowing conversion of 'i' from 'int' to 'short int' [-Wnarrowing]
119 | if(a[i][j] == '<' && j > 1) g[i][j].push_back({i , j-1 , 0});
| ^
Main.cpp:119:69: warning: narrowing conversion of '(j - 1)' from 'int' to 'short int' [-Wnarrowing]
119 | if(a[i][j] == '<' && j > 1) g[i][j].push_back({i , j-1 , 0});
| ~^~
Main.cpp:120:64: warning: narrowing conversion of 'i' from 'int' to 'short int' [-Wnarrowing]
120 | if(a[i][j] == '>' && j < m) g[i][j].push_back({i , j+1 , 0});
| ^
Main.cpp:120:69: warning: narrowing conversion of '(j + 1)' from 'int' to 'short int' [-Wnarrowing]
120 | if(a[i][j] == '>' && j < m) g[i][j].push_back({i , j+1 , 0});
| ~^~
Main.cpp:121:65: warning: narrowing conversion of '(i - 1)' from 'int' to 'short int' [-Wnarrowing]
121 | if(a[i][j] == '^' && i > 1) g[i][j].push_back({i-1 , j , 0});
| ~^~
Main.cpp:121:70: warning: narrowing conversion of 'j' from 'int' to 'short int' [-Wnarrowing]
121 | if(a[i][j] == '^' && i > 1) g[i][j].push_back({i-1 , j , 0});
| ^
Main.cpp:122:65: warning: narrowing conversion of '(i + 1)' from 'int' to 'short int' [-Wnarrowing]
122 | if(a[i][j] == 'v' && i < n) g[i][j].push_back({i+1 , j , 0});
| ~^~
Main.cpp:122:70: warning: narrowing conversion of 'j' from 'int' to 'short int' [-Wnarrowing]
122 | if(a[i][j] == 'v' && i < n) g[i][j].push_back({i+1 , j , 0});
| ^
Main.cpp:131:40: warning: narrowing conversion of 'x' from 'int' to 'short int' [-Wnarrowing]
131 | g[i][j].push_back({x , y , 1});
| ^
Main.cpp:131:44: warning: narrowing conversion of 'y' from 'int' to 'short int' [-Wnarrowing]
131 | g[i][j].push_back({x , y , 1});
| ^