stones.cpp: In function 'int calc(std::vector<std::vector<char> >&)':
stones.cpp:8:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | for (int i = 0; i < v.size(); i++) {
| ~~^~~~~~~~~~
stones.cpp:10:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for (int j = 0; j < v[i].size(); j++) {
| ~~^~~~~~~~~~~~~
stones.cpp:13:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | if (c > v[i].size() / 2) cnt++;
| ~~^~~~~~~~~~~~~~~~~
stones.cpp:15:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | for (int j = 0; j < v[0].size(); j++) {
| ~~^~~~~~~~~~~~~
stones.cpp:17:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for (int i = 0; i < v.size(); i++) {
| ~~^~~~~~~~~~
stones.cpp:22:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | if (c > v.size() / 2) cnt++;
| ~~^~~~~~~~~~~~~~
stones.cpp: In function 'int malSol1(int, int)':
stones.cpp:60:10: warning: variable 'f' set but not used [-Wunused-but-set-variable]
60 | bool f = 0;
| ^
stones.cpp: In function 'void solve()':
stones.cpp:146:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
146 | for (int i = 0; i < m; i++) cout << "-"; cout << "\n";
| ^~~
stones.cpp:146:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
146 | for (int i = 0; i < m; i++) cout << "-"; cout << "\n";
| ^~~~
stones.cpp:147:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
147 | for (int i = 0; i < m; i++) cout << "-"; cout << "\n";
| ^~~
stones.cpp:147:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
147 | for (int i = 0; i < m; i++) cout << "-"; cout << "\n";
| ^~~~
stones.cpp:163:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
163 | for (int i = 0; i < m; i++) cout << "-"; cout << "\n";
| ^~~
stones.cpp:163:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
163 | for (int i = 0; i < m; i++) cout << "-"; cout << "\n";
| ^~~~
stones.cpp:164:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
164 | for (int i = 0; i < m; i++) cout << "-"; cout << "\n";
| ^~~
stones.cpp:164:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
164 | for (int i = 0; i < m; i++) cout << "-"; cout << "\n";
| ^~~~
stones.cpp:183:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
183 | for (int i = 0; i < m; i++) cout << "-"; cout << "\n";
| ^~~
stones.cpp:183:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
183 | for (int i = 0; i < m; i++) cout << "-"; cout << "\n";
| ^~~~
stones.cpp:184:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
184 | for (int i = 0; i < m; i++) cout << "-"; cout << "\n";
| ^~~
stones.cpp:184:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
184 | for (int i = 0; i < m; i++) cout << "-"; cout << "\n";
| ^~~~
stones.cpp:197:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
197 | for (int i = 0; i < m; i++) cout << "+"; cout << "\n";
| ^~~
stones.cpp:197:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
197 | for (int i = 0; i < m; i++) cout << "+"; cout << "\n";
| ^~~~
stones.cpp:229:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
229 | for (int i = 0; i < vec.size(); i++) {
| ~~^~~~~~~~~~~~
stones.cpp:230:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
230 | for (int j = 0; j < vec[i].size(); j++) {
| ~~^~~~~~~~~~~~~~~