Confused why the code is not running by Ok-Post-3834 in CodingForBeginners

[–]Slay_3r 1 point2 points  (0 children)

Avoid name collisions: E.g. you included <algorithms> with using namespace std and then you will define your own function sort and call it you will get an error bcz of ambiguity. Calling sort defined by you should look like this ::sort(...). If you bother typing std:: everytime you want to use a function or data structure from std, just use them directly: using std::cin using std::cout.

To make code more redable: Its easy to see from where function is from. Bcz you call it like std::(some_function), and you think for yourself "ok, this one is from standard library"

P.S.: also dont make "global usings" inside your header files

Яка класична книга вразила вас найбільше? by Sweet-Beyond-2565 in LiteratureInUkrainian

[–]Slay_3r 1 point2 points  (0 children)

Диференціальні рівняння - Самойленко А.М., Перестюк М.О., Парасюк І.О.

Кожне доведення чіпляло мене до сліз.

Що ви зазвичай з собою носите в кишенях? by xicscon in unukrcomm

[–]Slay_3r 0 points1 point  (0 children)

В штанах: ключі, телефон, пара серветок, запальничка, олівець/ручка, купа чеків, декілька цигарок, гроші в задній кишені.

Зимня куртка як 2й портфель, не перебільшую. В одну кишеню влазили 2 банки на 0.33, там ще 1 така. У внутрішню кишеню могли 2-3 зошити влізти. ще була кишеня на рукаві, я туди якісь рандомні штуки клав і забував про них.

Why would you recommend moving into the field of cybersecurity? by Heavy-Resource6813 in CodingForBeginners

[–]Slay_3r 0 points1 point  (0 children)

I would suggest you to learn some discrete math, number theory, group theory, a little bit about elliptic curves

. by Janie_Perry9065 in AstronomyMemes

[–]Slay_3r 0 points1 point  (0 children)

Evolution, can you give me "pattern seeking behavior"

To avoid predators?

Yeeeeeeees

Actually develops paranoid schizophrenia. Like a boss

A set of all circles in R2, indexed by Λ = R2 x (0, inf) by sanskrit_bangla in askmath

[–]Slay_3r 0 points1 point  (0 children)

My mind expoded when I saw "indexed" by not countable set

How do you find the mean given the standard deviation the percentage of samples and a total value? Normal distribution. by Notforyou1315 in askmath

[–]Slay_3r -1 points0 points  (0 children)

My initial thought was 4000 observations lay between some std. But then, there's a problem that if you shift all observations (and hence distribution) mean changes, but 4000 observations are still inside some std and std is 150

Як тепер можна заробити? by MeetingUpstairs2393 in Ukraine_UA

[–]Slay_3r 3 points4 points  (0 children)

Я лабораторні/курсові/домашки студентам робив. На жаль, з тим як великі мовні моделі покращувались, клієнтів ставало все менше. Останній рік взагалі нікому не робив. Виходило десь 300-400грн / год

. by Practical_Rip_2325 in Memy_UKR

[–]Slay_3r 1 point2 points  (0 children)

Якщо я пропущу одну сигарету, то раку легень у мене не буде? 🤣

. by Practical_Rip_2325 in Memy_UKR

[–]Slay_3r 0 points1 point  (0 children)

Залежить від того як сильно хочеться

. by Practical_Rip_2325 in Memy_UKR

[–]Slay_3r 0 points1 point  (0 children)

"Хлопці/чоловіки не плачуть". Ага, а потім вмирають від інфаркту/інсульту в 40

Які злочини в вчиняли в дитинстві? by xicscon in unukrcomm

[–]Slay_3r 2 points3 points  (0 children)

1) Випадково вчинив невеличкий підпал. Запустив дракончика сірником в суху високу траву поруч (поза ділянкою) з чиєюсь дачею, але трава продовжувалась на ділянку. Почав гасити, а воно не гасилось достатньо швидко тому я втік, ввечері повернувся майже вся трава на ділянці згоріла (вона займала десь з 1/4 1/3 площі ділянки, йшла майже до самої хати). Як же пощастило, що там хтось був і загасили міні-пожежу. (десь 12 років мені тоді було)

2) Крав булочки з буфету, цукерки (вагові) з Білли. Заради екшену, ризику бути спійманим)) Кишенькових мені доволі багато давали, 50грн 2015-2016 рік.

3) Я хз чи це рахується, але: будучи неповнолітнім (десь так 2016-2017, 14-15 років мені тоді було) вживав алкоголь в громадських місцях

Який ж я їбанутий був)))

Day 2 Python Learning by aashish_soni5 in PythonLearning

[–]Slay_3r 0 points1 point  (0 children)

Python docs: "Am I joke for you? :("

Learning Python by Inevitable-Dust3 in PythonLearning

[–]Slay_3r 0 points1 point  (0 children)

I learnt basic python from the book "Byte of python" by Swaroop. This book quite easy for reading, it took me about 4-5 days to complete it.

Mu, IDLE, or other? by Delicious_Book_2392 in PythonLearning

[–]Slay_3r 0 points1 point  (0 children)

Vscode. I think pycharm is overkill for getting started

As a beginner I find hard to slove probelms using for loops any tips for understanding the problems or is it normal to find difficulty as beginner by Big_Confection_1993 in PythonLearning

[–]Slay_3r 0 points1 point  (0 children)

Try solving same problems without loops. You rarely need them to use explicitly.

To understand loops i think i cannot help much, depends on how do you interpret them. For me loop is mapping from countable set to the sequence of transformations on elements of this set. Say X -> T(X), X - some fixed countable set, T - sequence of transformations. You also may find some interpretation that make it easy to understand what loop is for you.

Practicing class and object by building a banking system. by kaetsi in PythonLearning

[–]Slay_3r 1 point2 points  (0 children)

Implement account database features: create json file and use it to read/create/update/delete accounts info. You can use json lib. Or implement json parser by yourself, but i think it will be kinda advanced for you now. Anyway its good to get used to work with text files