sequence.cpp: In function 'll query(ll)':
sequence.cpp:37:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
sequence.cpp: In function 'int main()':
sequence.cpp:47:31: error: too many arguments to function 'll query(ll)'
auto cur=query(soma[i], j-1);
^
sequence.cpp:35:4: note: declared here
ll query(ll val) {
^~~~~
sequence.cpp:49:13: error: expected primary-expression before ';' token
dp[i][j]=;
^
sequence.cpp:50:14: error: expected primary-expression before ';' token
opt[i][j]=;
^
sequence.cpp:47:9: warning: unused variable 'cur' [-Wunused-variable]
auto cur=query(soma[i], j-1);
^~~
sequence.cpp:60:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(respf.size()<x-1) {
~~~~~~~~~~~~^~~~
sequence.cpp:40:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &x); x++;
~~~~~^~~~~~~~~~~~~~~~~
sequence.cpp:41:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1; i<=n; i++) scanf("%lld", &v[i]);
~~~~~^~~~~~~~~~~~~~~