Anonymous
??
Anonymous
😅
BinaryByter
the standard doesnt say how the compiler should handle this
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter
pretty much, yea
Mat
What is it
You have undefined behavior when you don't know how the programme will behavior in that situation
BinaryByter
"how the programme will behavior"
BinaryByter
:D
Mat
Ohkk got it buddy thx
Take your two lines: p can be a valid address or a forbidden one without the possibility for you to know before running it. Plus it will be a different, unpredictable value every time.
BinaryByter
/ban leave me alone with your javascript
Anonymous
error: invalid operands of types ‘__gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}’ and ‘__gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}’ to binary ‘operator%’ a=((2*n-2)/pow(2,n))%(pow(10,9)+7); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
Anonymous
What is this error
Anonymous
How to solve this
Anonymous
??
BinaryByter
the operand in modulo must be of integer type
Anonymous
?
Anonymous
Ok
Anonymous
Now I have correct to int still giving same error
Anonymous
This the code
BinaryByter
oh no
Anonymous
What??
Mat
Less blank lines, format the code. Or use a pastebin service
Mat
https://www.tutorialspoint.com/c_standard_library/c_function_pow.htm It returns a double
Mat
You'll have always errors while using it without a cast
Mat
What's #include <bits/stdc++.h>?
BinaryByter
Mat
includes EVERY header
Reading about it. But why is it there?
BinaryByter
For hackathons and indians
Dima
?
!
Akshay
Plz send me some complicated program in c
Mat
Plz send me some complicated program in c
https://github.com/torvalds/linux
Prometheus
https://github.com/torvalds/linux
He didn’t say hack job.
BinaryByter
He didn’t say hack job.
Thats not a hackjob
BinaryByter
thats a kludge
Akshay
👍
Prometheus
I wouldn’t call it sane programming.
Mat
That's complex for sure
BinaryByter
I wouldn’t call it sane programming.
programming isnt sane, darling
BinaryByter
That's complex for sure
stop it with those irrational thoughts
Prometheus
That's complex for sure
Only in that it’s a mess. So I guess you’re right.
Prometheus
programming isnt sane, darling
I think it is. It’s very logical at its core.
BinaryByter
I think it is. It’s very logical at its core.
Lol, at their core, girls are easy to understand
Prometheus
Lol, at their core, girls are easy to understand
Well can’t take any advice from you anymore Lol
BinaryByter
It isn’t Kali tho
NOT THIS SHIT YOU FUCKING MORON
Prometheus
NOT THIS SHIT YOU FUCKING MORON
Idk, kali seemed decent
BinaryByter
o o o
Dima
I think the assignment like “implement loop in c” is already super hard for any Indian (there are exceptions!)
Akshay
Right? Or Wrong?
Dima
No conio
BinaryByter
Right? Or Wrong?
JUST TRY IT OUT
BinaryByter
according to my teacher, coders of my age are happy if they manage to nest two loops
BinaryByter
:^)
Mat
Idk, kali seemed decent
Nope. It's OT and it's NOT cool nor decent nor for beginners or daily use
Francisco
Prometheus
Nope. It's OT and it's NOT cool nor decent nor for beginners or daily use
Anything is possible if you believe hard enough. Just find your happy place. Btw, I was being sarcastic.
Dima
Sounds like a film title
Akshay
Indians try hard.
Your country?
Prometheus
Indians don’t need to try. The know each and everything.
BinaryByter
Indians don’t need to try. The know each and everything.
You forgot to fill your array before running your loop. C-, "you tried"
BinaryByter
(internally)
Prometheus
Yes but keep it simple and just use goto
BinaryByter
Uuummm ok
Francisco
Yes but keep it simple and just use goto
Use declarative style (no loops at all e.e)
olli
Right? Or Wrong?
Wrong since UB
Prometheus
Uuummm ok
It’s ok. One day you’ll be on my level XD
BinaryByter