biochips.cpp: In function 'int main()':
biochips.cpp:54:12: error: expected ';' before '-' token
54 | for (int i-0; i<MAXN; i++) pp[i]=i;
| ^
| ;
biochips.cpp:54:17: warning: for increment expression has no effect [-Wunused-value]
54 | for (int i-0; i<MAXN; i++) pp[i]=i;
| ^
biochips.cpp:54:22: error: expected ')' before ';' token
54 | for (int i-0; i<MAXN; i++) pp[i]=i;
| ~ ^
biochips.cpp:54:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
54 | for (int i-0; i<MAXN; i++) pp[i]=i;
| ^~~
biochips.cpp:54:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
54 | for (int i-0; i<MAXN; i++) pp[i]=i;
| ^
biochips.cpp:54:24: error: 'i' was not declared in this scope
biochips.cpp:76:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
76 | if (i!=svi.size()-1) dp[i][j]=max(dp[i][j], dp[i+1][j]);
| ~^~~~~~~~~~~~~~
biochips.cpp:78:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | if (r[svi[i]]<svi.size()) dp[i][j]=max(dp[i][j], dp[r[svi[i]]][j-1]+w[svi[i]]);
| ~~~~~~~~~^~~~~~~~~~~
biochips.cpp:84:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
84 | for (int i=0; i<svi.size(); i++) ress=max(ress, dp[i][m]);
| ~^~~~~~~~~~~