semiexpress.cpp: In function 'int main()':
semiexpress.cpp:20:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=0; i<M; i++) scanf("%d", &S[i]); S[M]=N+1;
^~~
semiexpress.cpp:20:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(i=0; i<M; i++) scanf("%d", &S[i]); S[M]=N+1;
^
semiexpress.cpp:43:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<todo.size() && i<K; i++) ans+=todo[i];
~^~~~~~~~~~~~
semiexpress.cpp:44:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll {aka long long int}' [-Wformat=]
printf("%d", ans-1);
~~~~~^
semiexpress.cpp:19:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%lld%lld%lld%lld", &N, &M, &K, &A, &B, &C, &T);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
semiexpress.cpp:20:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=0; i<M; i++) scanf("%d", &S[i]); S[M]=N+1;
~~~~~^~~~~~~~~~~~~