foo.cpp: In function 'int main()':
foo.cpp:19:22: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf ("%d",&val[i]);=(tot+val[i]*(sum[head[i][j]]-val[i]))%10007;
^
foo.cpp:19:24: error: expected primary-expression before '=' token
scanf ("%d",&val[i]);=(tot+val[i]*(sum[head[i][j]]-val[i]))%10007;
^
foo.cpp:19:34: error: 'i' was not declared in this scope
scanf ("%d",&val[i]);=(tot+val[i]*(sum[head[i][j]]-val[i]))%10007;
^
foo.cpp:19:50: error: 'j' was not declared in this scope
scanf ("%d",&val[i]);=(tot+val[i]*(sum[head[i][j]]-val[i]))%10007;
^
foo.cpp:14:12: warning: unused variable 'ans' [-Wunused-variable]
int n,a,b,ans=-1,tot=0;
^
foo.cpp: At global scope:
foo.cpp:21:9: error: expected constructor, destructor, or type conversion before '(' token
printf ("1 1\n");
^
foo.cpp:22:2: error: expected unqualified-id before 'return'
return 0;
^
foo.cpp:23:1: error: expected declaration before '}' token
}
^