genetics.cpp: In function 'int main()':
genetics.cpp:17:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | freopen(__file_name ".inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
genetics.cpp:18:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | freopen(__file_name ".out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
genetics.cpp:40:27: warning: array subscript 4 is above array bounds of 'long long int [4]' [-Warray-bounds]
40 | val[j][4] += pw;
| ~~~~~~~~~~^~~~~
genetics.cpp:40:27: warning: array subscript 4 is above array bounds of 'long long int [4]' [-Warray-bounds]
genetics.cpp:36:27: warning: array subscript 4 is above array bounds of 'long long int [4]' [-Warray-bounds]
36 | val[j][4] += pw;
| ~~~~~~~~~~^~~~~
genetics.cpp:36:27: warning: array subscript 4 is above array bounds of 'long long int [4]' [-Warray-bounds]
genetics.cpp:32:27: warning: array subscript 4 is above array bounds of 'long long int [4]' [-Warray-bounds]
32 | val[j][4] += pw;
| ~~~~~~~~~~^~~~~
genetics.cpp:32:27: warning: array subscript 4 is above array bounds of 'long long int [4]' [-Warray-bounds]
genetics.cpp:56:47: warning: array subscript 4 is above array bounds of 'long long int [4]' [-Warray-bounds]
56 | if(s[i][j] == 'C') cur += val[j][4];
| ~~~~~~~~^