foo.cpp: In function 'int main()':
foo.cpp:42:48: warning: unknown conversion type character 'l' in format [-Wformat=]
scanf("%lld%lld%lld%lld%lld",&x,&y,&m,&n,&L);
^
foo.cpp:42:48: warning: unknown conversion type character 'l' in format [-Wformat=]
foo.cpp:42:48: warning: unknown conversion type character 'l' in format [-Wformat=]
foo.cpp:42:48: warning: unknown conversion type character 'l' in format [-Wformat=]
foo.cpp:42:48: warning: unknown conversion type character 'l' in format [-Wformat=]
foo.cpp:42:48: warning: too many arguments for format [-Wformat-extra-args]
foo.cpp:49:13: error: continue statement not within a loop
continue;
^
foo.cpp:60:29: warning: unknown conversion type character 'l' in format [-Wformat=]
printf("%lld\n",ansx);
^
foo.cpp:60:29: warning: too many arguments for format [-Wformat-extra-args]