Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i=0; i<n; i++)
- {
- cin>>vstup[i];
- for(int j=0; j<z; j++)
- {
- if(i==0 || j==0)
- {
- if(vstup[i][j]=='#')
- res[i].push_back(0);
- else
- res[i].push_back(1);
- }
- else
- {
- if(vstup[i][j] == '#')
- res[i].push_back(0);
- else
- res[i].push_back(-1);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement