foo.cpp: In function 'int main()':
foo.cpp:61:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d%d%d",&n,&m,&s);
^
foo.cpp:61:25: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
foo.cpp:61:25: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
foo.cpp:62:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
if(n==0){printf("%d\n",s);return 0}
^
foo.cpp:62:36: error: expected ';' before '}' token
if(n==0){printf("%d\n",s);return 0}
^
foo.cpp:64:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d%d",&w[i],&v[i]);
^
foo.cpp:64:27: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
foo.cpp:68:33: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d%d",&q[i][1],&q[i][2]);
^
foo.cpp:68:33: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
foo.cpp:70:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d\n",com(z));
^
foo.cpp:72:1: error: expected ';' before '}' token
}
^