Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int scanAdj(int n, vector<vector<int>> arr) {
- bool x;
- cout << endl << "Enter data about people:" << endl;
- for (int i = 0; i < n; i++) {
- for (int j = 0; j < n; j++) {
- if (!(cin >> x)) {
- cout << "wrong data.";
- return Bad;
- }
- if (x) {
- arr[i].push_back(j);
- }
- }
- }
- return Ok;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement