Can anyone tell me how to include this micro #define int long long int, this is giving error because its also converting int main to long long int main
# | User | Rating |
---|---|---|
1 | jiangly | 3640 |
2 | Benq | 3593 |
3 | tourist | 3572 |
4 | orzdevinwang | 3561 |
5 | cnnfls_csy | 3539 |
6 | ecnerwala | 3534 |
7 | Radewoosh | 3532 |
8 | gyh20 | 3447 |
9 | Rebelz | 3409 |
10 | Geothermal | 3408 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 173 |
2 | adamant | 164 |
3 | awoo | 161 |
4 | TheScrasse | 160 |
5 | nor | 159 |
6 | maroonrk | 156 |
7 | SecondThread | 152 |
8 | pajenegod | 146 |
9 | BledDest | 144 |
10 | Um_nik | 143 |
Can anyone tell me how to include this micro #define int long long int, this is giving error because its also converting int main to long long int main
Name |
---|
change
int main()
toint32_t main()
orsigned main()
Yes! worked thankyou.
or just do
main()
and ignore the warnings?Please don't encourage terrorism
Just dont use
#define int long long
:)These guys trap hackers by fooling them for overflow.
!
did you really have to revive this post for mentioning again what I already did 5 weeks ago
CF in a nutshell
If you want to use this you should change
int main()
tosigned main()
.However it is not a good idea to use
#define int long long
.just use
signed main()
This is actually discouraged because it dramatically increases the running time as you enabled 64-bit processing for unnecessary variables.
poll!
use
#define int long long
don't use
I would suggest not to use it, macros are a massive garbage feature imo, they're unsafe and makes your code bound to have bugs here and there (no exception to
#define int long long
, it breaks C++ style type conversion)