variable long long in C

Back to General discussions forum

Karol Arciniegas     2019-07-28 20:05:16

i am doing some excersices that the input is a huge number but i could use a long long variable, but when i try to use scanf with %ll, %lld, %I64d it says that it is incorrect warning: too many arguments for format [-Wformat-extra-args]

Quandray     2019-07-29 06:17:13
User avatar

It may depend a bit on the compiler you are using. Usually this works
long long v;
scanf("%lld",&v);
How are you trying to do it?

Please login and solve 5 problems to be able to post at forum