CE_034_A2_LAB_9
CE_034_A2_LAB_9
Batch : B2
LAB - 9 : -
Note: CPP Check shows all header file as unfound files for all codes
so have skipped their errors
#define MAX_NODES 10
return minIndex;
}
vector<int> path[n];
dist[src] = 0;
path[src].push_back(src + 1);
int main() {
int n;
cin >> n;
int adj_mat[MAX_NODES][MAX_NODES];
vector<vector<int>> costMatrix(n , vector<int>(n));
for(int i = 0 ; i < n ; i++){
for(int j = 0 ; j < n ; j++){
cin >> adj_mat[i][j];
}
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
costMatrix[i][j] = adj_mat[i][j];
}
}
try {
validateCostMatrix(costMatrix);
} catch (const string& str) {
cout << str << endl;
return 0;
}
int source;
cin >> source;
CPP REPORT :
Id: missingIncludeSystem
Include file: <bits/stdc++.h> not found. Please note: Cppcheck does not need
standard library headers to get proper results.
Test cases :
2. Insertion Sort
Code :
#include<bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int arr[N];
CPP REPORT :
Id: missingIncludeSystem
Include file: <bits/stdc++.h> not found. Please note: Cppcheck does not need standard
library headers to get proper results.
Test cases :