foo.cpp: In function 'int main()':
foo.cpp:15:20: error: 'n' was not declared in this scope
scanf("%d%d",&n,&m);
^
foo.cpp:15:23: error: 'm' was not declared in this scope
scanf("%d%d",&n,&m);
^
foo.cpp:30:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<cl[i].ds[k].size();j++)
^
foo.cpp:45:29: warning: unknown conversion type character 'l' in format [-Wformat=]
printf("%lld",ans%10007);
^
foo.cpp:45:29: warning: too many arguments for format [-Wformat-extra-args]