-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathleet54.cpp
More file actions
38 lines (23 loc) · 680 Bytes
/
Copy pathleet54.cpp
File metadata and controls
38 lines (23 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include<iostream>
#include<vector>
#include<map>
using namespace std;
int main(){
vector<vector<int>> matrix = { {1,2,3},{4,5,6},{7,8,9}};
map< pair<int,int> , bool> hmap;
int row_count = 3;
int col_count = 4;
int row = 0;
int col = 0;
while(true){
cout << matrix[row][col] << " " ;
if(col < col_count && hmap[make_pair(row,col)] != 1 ){
}
else if( row < row_count && hmap[make_pair(row,col)] != 1 ){
}
else if(col > 0 && hmap[make_pair(row,col)] != 1 ){
}
else if(row > 0 && hmap[make_pair(row,col)] != 1 ){
}
}
}