izlet.cpp: In function 'int main()':
izlet.cpp:52:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
52 | for (int j = 0; j < tren.size(); j++) {
| ~~^~~~~~~~~~~~~
izlet.cpp:63:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | for (int i = 0; i < v.size(); i++) {
| ~~^~~~~~~~~~
izlet.cpp:66:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | for (int j = 0; j < tren.size(); j++) {
| ~~^~~~~~~~~~~~~
izlet.cpp:73:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
73 | for (int i = 0; i < s.size(); i++) {
| ~~^~~~~~~~~~
izlet.cpp:74:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
74 | for (int j = i + 1; j < s.size(); j++) {
| ~~^~~~~~~~~~
izlet.cpp:83:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
83 | for (int k = j + 1; k < s.size(); k++) {
| ~~^~~~~~~~~~
izlet.cpp:97:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
97 | for (int k = 1; k < tren.size(); k++) add(tren[0], tren[k]);
| ~~^~~~~~~~~~~~~
izlet.cpp:98:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
98 | for (int k = 0; k < tren.size(); k++) {
| ~~^~~~~~~~~~~~~
izlet.cpp:100:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
100 | for (int l = k + 1; l < tren.size(); l++) {
| ~~^~~~~~~~~~~~~
izlet.cpp:117:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
117 | for (int i = 0; i < graph[x].size(); i++) {
| ~~^~~~~~~~~~~~~~~~~
izlet.cpp:144:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
144 | for (int i = 0; i < n; i++) printf("%d ", sol[i]); printf("\n");
| ^~~
izlet.cpp:144:53: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
144 | for (int i = 0; i < n; i++) printf("%d ", sol[i]); printf("\n");
| ^~~~~~
izlet.cpp:145:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
145 | for (int i = 0; i < vs.size(); i++) {
| ~~^~~~~~~~~~~
izlet.cpp:37:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | scanf("%d%d", &ran, &n);
| ~~~~~^~~~~~~~~~~~~~~~~~
izlet.cpp:40:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | scanf("%d", &niz[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~~~