Anonymous
Anonymous
But they aren't going to remove it
Anonymous
It's added hostility because it does break the C standard
Anonymous
And adds a dependency on undefined behavior
Anonymous
Otherwise many devs at Google want to enable =zero at least in Linux for security so it is unlikely clang will just throw it out
Anonymous
Also do note that this won't silence compiler warnings for uninitialized variables
Anonymous
I'd like not to rely on compiler flags and initialize variables myself
Огни
hello guys"); DROP TABLE *;
Anonymous
And for C++ if your code doesn't specify visibility attributes correctly a lot of junk will be visible in your final executable. This is mostly harmless
Anonymous
But annoying
Anonymous
But where is this flag used?
Anonymous
Linux kernel has been supporting a variant called =pattern that initializes the stack with an AAAAAAAA.... pattern
Огни
:/
Dima
Lmao
Anonymous
Well @unterumarmung these flags are not meant for developers
Anonymous
Let's say you're a user who just wants to get rid of undefined behavior completely
Anonymous
Anonymous
Anonymous
Or if you are doing SW QC/QA and want to find code that relies on undefined behavior with =pattern
Anonymous
The default is =uninitialized
Егор
```
string s = "ELEMENTARY, MY DEAR WATSON";
auto iter = s.begin() + 1;
s += "!";
cout << *iter << "\n";
```
will it work correctly or i can't use iterator +1 even if it's string iterator ?
Emil Fahmi
/get cbook
Anonymous
Anonymous
The iterator gets invalid after changing the container
MᏫᎻᎯᎷᎷᎬᎠ
Anonymous
It does, except SSO
MᏫᎻᎯᎷᎷᎬᎠ
SSO?
Anonymous
Small String Optimization
MᏫᎻᎯᎷᎷᎬᎠ
Anonymous
Basically it uses bytes from char pointer, size and capacity to store the string not dynamically
Anonymous
To simplify, let's assume that sizeof(void*) and sizeof(std::string::size_type) are both 8 bytes, so we can store ~20-24 bytes on stack instead of pointer, size and capacity in typical implementation
Anonymous
Of course the actual size of small string can vary between implementations
Monday Morning
Anonymous
me june codechef??
Monday Morning
Anonymous
I am on tom and jerry
Anonymous
I started yesterday ,evening
Monday Morning
I might need assistance with
Dima
no assignment requests
Dima
yes
Monday Morning
Anonymous
I am on tomand jerry
Anonymous
Anonymous
writing even cases of ts
Anonymous
yes i think based on bit
Monday Morning
yes
With due respect, I did not request anything, Dima.
I like to do my work on my own .
Anonymous
is tom jerry based on dp, used brute force , I think it can also be done with bit operations
Dima
Monday Morning
Monday Morning
Anonymous
size_t datatype cpp
Anonymous
pls explain ,, largest range storing int datatype
Monday Morning
Anonymous
size_t is long long int??
Monday Morning
or better one is
unsigned long long int.
if you are dealing with positive numbers.
Monday Morning
geeksforgeeks. org/size_t-data-type-c-language/
Monday Morning
@admin
I need permission to post links
Anonymous
i am getting tle on tom and jerry
Anonymous
is memoization will be used??
Anonymous
ok , I will try again once, then I text u
Monday Morning
is memoization will be used??
No
Basics should be enough.
You may use whatever you wish
But loop and "if else" should be enough.
Anonymous
I got tle on original constraints , I have to change approach😅
Anonymous
I used for^2 loops
Anonymous
I used unsigned lon long , I think problem is in algo
GUVNOR
Hello everyone,
I am trying to compile c file using android compiler, but i am facing many problems.
I get the project from orginal site, it is designed for linux machines and android is linux based OS.
I need somebody to compile the project and send me the binary executable file.
the project is noip2 for linux ARM Architecture.
Thanx
Anonymous
thats tricky
GUVNOR
thats tricky
Why 🤔.
I tried to compile using termux cli
Arminio
Dima
Dima
damm give me some please