foo.cpp: In function 'int main()':
foo.cpp:6:41: warning: unknown conversion type character 'l' in format [-Wformat=]
scanf("%lld%lld%lld%lld",&n,&m,&k,&x);
^
foo.cpp:6:41: warning: unknown conversion type character 'l' in format [-Wformat=]
foo.cpp:6:41: warning: unknown conversion type character 'l' in format [-Wformat=]
foo.cpp:6:41: warning: unknown conversion type character 'l' in format [-Wformat=]
foo.cpp:6:41: warning: too many arguments for format [-Wformat-extra-args]
foo.cpp:12:34: warning: unknown conversion type character 'l' in format [-Wformat=]
printf("%lld\n",(x+m*ans%n)%n);
^
foo.cpp:12:34: warning: too many arguments for format [-Wformat-extra-args]
foo.cpp:13:13: error: expected '}' at end of input
return 0;
^