popeala.cpp: In member function 'void SEG::init(int, int, int)':
popeala.cpp:24:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=tl+tr>>1;
~~^~~
popeala.cpp: In member function 'll SEG::query(int, int, int, int, int)':
popeala.cpp:34:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=tl+tr>>1;
~~^~~
popeala.cpp: In function 'int main()':
popeala.cpp:56:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=0; i<=S; i++) for(j=0; j<=T; j++) dp[i][j]=INF; dp[0][0]=0;
^~~
popeala.cpp:56:59: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(i=0; i<=S; i++) for(j=0; j<=T; j++) dp[i][j]=INF; dp[0][0]=0;
^~
popeala.cpp:41:18: warning: unused variable 'p' [-Wunused-variable]
int i, j, k, p;
^
popeala.cpp:43:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &N, &T, &S);
~~~~~^~~~~~~~~~~~~~~~~~~~~~
popeala.cpp:44:43: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=T; i++) scanf("%d", &P[i]), P[i]+=P[i-1];
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
popeala.cpp:45:50: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=N; i++) for(j=1; j<=T; j++) scanf("%1d", &R[i][j]);
~~~~~^~~~~~~~~~~~~~~~~