kλletaa
don't use the whole namespace
Roxifλsz 🇱🇹
if you really don't want to do std::cout every time only do using std::cout;
Since when do you do C++, I thought you were strictly C only?
kλletaa
SIGSEGV
Roxifλsz 🇱🇹
Roxifλsz 🇱🇹
Ok rart
Wim
Floats (well, doubles) are as native as ints
They need ieee encoding and are unsupported by the standard arithmetic core; fpu creates waitstates on the base cpu core if waiting for arithmetic to be finished on them and results need unpacking
Andrea
it's the third time you are sending photos, are you doing it on purpose?
just a normal few
kλletaa
it's the third time you are sending photos, are you doing it on purpose?
don't expect basic human intelligence from peepeepoopoo people
just a normal few
it's the third time you are sending photos, are you doing it on purpose?
I send photos with phone because I send the photo in this group with phone
Andrea
We don't care
Andrea
Use web.telegram.org, or install the desktop client
Nikolas
just run telegram from the pc and post the code somewhere like pastebin
just a normal few
Mat
READ THE ERROR
just a normal few
I read but I don't understand
kλletaa
you only declared an X variable
kλletaa
and you're trying to write the x variable
kλletaa
it's case sensitive
just a normal few
Nikolas
holy crap
Nikolas
you do not
Artöm
I read but I don't understand
To keep it simple: declare - create a variable/function scope - code in {}
Nikolas
you have declared X, not x
just a normal few
just a normal few
Dima
tanks
Dima
Nikolas
(your code still looks terrible btw 😅)
Andrea
Nikolas
that n=(x=y) as condition for the ternary operator is scary
Roxifλsz 🇱🇹
/warn the rules clearly say that no code pictures are allowed
Roxifλsz 🇱🇹
Oh?
Roxifλsz 🇱🇹
Oh kek, he clearly didn't understand the warn the first time, so it was time for him to go
Roxifλsz 🇱🇹
And another administration job splendidly done
Roxifλsz 🇱🇹
Shubham
In c++, I have header file in which I have static classname *obj; I have cpp file in which I have classname *object::obj = NULL What is the meaning of above? Does anyone have encountered like there in a codebase?
Anonymous
Hello, I need some help and guidance to solve challenge problem
Anonymous
This is the problem
Anonymous
This is my solution, but I receive a TLE
kλletaa
This is the problem
is this your homework?
Anonymous
is this your homework?
No, I'm improving my skils on C and I enter to a great website called Kattis.
Dima
Lol
Dima
so this is the assignment
Pavel
This is my solution, but I receive a TLE
If I were you, I would check that the while loops are never being executed infinitely. Try them with different inputs
Pavel
also, there are lots of nested loops, so my guess that it has to high complexity
Pavel
if it's not infinity loops case
Anonymous
so this is the assignment
Yes, but what I want is not problem solved, I want some guidance to better development strategies.
Andrea
This is my solution, but I receive a TLE
n = n^n is a bit weird; just do = 0
Pavel
n = n^n is a bit weird; just do = 0
asm style :) but yes it's not needed in C++, compiler is smart enough
Andrea
asm style :) but yes it's not needed in C++, compiler is smart enough
Never done asm. The compiler is smart enough, but I don't and is more difficult to read to me.
Andrea
no, I meant you're right
Can't you move 0 in a reg in asm? Why xor?
Pavel
Can't you move 0 in a reg in asm? Why xor?
you can, but it some cases xor the register with itself is considered faster, I don't remember details https://stackoverflow.com/questions/1396527/what-is-the-purpose-of-xoring-a-register-with-itself
Andrea
tnx
kaushik
Dima
kλletaa
SamuraiLeon $3 🐧🐧🐧🌊🔐
\\
Artöm
Pavel
Not sure if it's ub, but looks awful
it's not UB but it's awful, yes
Artöm
This is my solution, but I receive a TLE
Haxor tricks doomed you. At the end of main's while you do n = 0, so n != 4 is always true