foo.cpp: In function 'int main()':
foo.cpp:53:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d%d",&n,&m);
^
foo.cpp:53:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
foo.cpp:56:48: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
for(long long i=1;i<=n;i++) scanf("%d",&val[i]);
^
foo.cpp:59:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d%d%d",&a,&b,&c);
^
foo.cpp:59:26: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
foo.cpp:59:26: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
foo.cpp:65:2: error: 'prlong' was not declared in this scope
prlong longf("%d",ans);
^
foo.cpp:65:9: error: expected ';' before 'longf'
prlong longf("%d",ans);
^