joi2019_ho_t3.cpp: In function 'int main()':
joi2019_ho_t3.cpp:10:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
10 | if(s[i] == 'R') sum[0][++R] = i; f[0][i] = f[0][i - 1] + (s[i] == 'R');
| ^~
joi2019_ho_t3.cpp:10:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
10 | if(s[i] == 'R') sum[0][++R] = i; f[0][i] = f[0][i - 1] + (s[i] == 'R');
| ^
joi2019_ho_t3.cpp:11:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
11 | if(s[i] == 'G') sum[1][++G] = i; f[1][i] = f[1][i - 1] + (s[i] == 'G');
| ^~
joi2019_ho_t3.cpp:11:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
11 | if(s[i] == 'G') sum[1][++G] = i; f[1][i] = f[1][i - 1] + (s[i] == 'G');
| ^
joi2019_ho_t3.cpp:12:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
12 | if(s[i] == 'Y') sum[2][++Y] = i; f[2][i] = f[2][i - 1] + (s[i] == 'Y');
| ^~
joi2019_ho_t3.cpp:12:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
12 | if(s[i] == 'Y') sum[2][++Y] = i; f[2][i] = f[2][i - 1] + (s[i] == 'Y');
| ^
joi2019_ho_t3.cpp:8:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | cin >> n; scanf("%s", s + 1);
| ~~~~~^~~~~~~~~~~~~