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 | ecnerwala | 3649 |
2 | Benq | 3581 |
3 | orzdevinwang | 3570 |
4 | Geothermal | 3569 |
4 | cnnfls_csy | 3569 |
6 | tourist | 3565 |
7 | maroonrk | 3531 |
8 | Radewoosh | 3521 |
9 | Um_nik | 3482 |
10 | jiangly | 3468 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 174 |
2 | awoo | 164 |
3 | adamant | 161 |
4 | TheScrasse | 159 |
5 | nor | 158 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 152 |
8 | SecondThread | 147 |
9 | orz | 146 |
10 | pajenegod | 145 |
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)