+ 1
Why?
Why I can’t count 32! https://code.sololearn.com/cPqp4k3TFlsU/?ref=app
4 ответов
+ 8
Replace int with size_t in your user-defined function
+ 5
you can declare a variable dynamically. Just pay attention to don't define less memory than you need or declare so much memory that breaks your program.
+ 4
Because there's a limit to the size of a number an int can store.
You can choose a different datatype, for example unsigned long long, then you can get higher. (There's still a limit.)
You need to do that in all three places: Declaration in main, parameter and return type.
+ 1
Beside other user said, for get maximum avaible space int data type, use "long long unsigned"