Anonymous
Its interesting tought and challenging
Dima
imagine getting a job by getting into competitive programming lol
Dima
lol
Dima
i can repost it, or put a link with spaces
Luca
it was pastebin
Luca
why external link?
Dima
put spaces in your link
Luca
:(
Luca
I did
Luca
i'm not understanding
Dima
like www . pastebin . com
Dima
or I can repost your text
Apk
Optimize your algorithm
I don't think run time error is because of inefficient solution
Vlad
I don't think run time error is because of inefficient solution
For some reason I thought that he ran out of time
Vlad
While executing. Second language problems I guess
Naman
Or you can try https://bin.garudalinux.org/ Off course it is not Garuda Linux promotion. Its just service hosted by us. And its easiest for me.
Naman
I'm in 8 class so i don't know about it much .
Well, don't take me wrong but I would suggest learning python before c because it will help to build stronger fundamentals. And you won't be bored. I have seen a lot of kids getting bored due to complexity of c. Then come to c and then to c++ and progress to c# after that.
Dima
it will only soften your brains, I’d recommend going from C, right from fundamentals
Dima
not assembly at least, but definatelly not python
su
Why
python does many things implicitly, and to have really understand python, you need heavy C background, so it is pointless to learn python to learn C, cause python has a lot of assumptions, defined my programmer in C explicitly in code, so understanding C is a must to use python approach to memory management, etc
Naman
python does many things implicitly, and to have really understand python, you need heavy C background, so it is pointless to learn python to learn C, cause python has a lot of assumptions, defined my programmer in C explicitly in code, so understanding C is a must to use python approach to memory management, etc
Yes, they do have a lot of assumptions. That's why I suggested python because at young age, importing stdio and other stuff again and again is a bit boring. But never mind it. It was just my opinion. Surely you should skip python if you don't get bored and want to have a better approach from beginning.
su
at all
Luca
Hello guys, first of all sorry for my english but I'm italian. I've to make a project of a synchronous TCP server and I started with an example of the boost library ( https: // pastebin . com/Wz8j6X54 ), the main problem is I would like to make a multithread server, actually with the example code server is just able to accept one connection per time. I've read carefully the documentation but I'm not understanding which function is invoked when a new request has been receved to the server. Is some of you more familiar with boost library?
Luca
You can spawn a thread when you get a connection
conceptually I understand how to operate, but by reading documentation and code, I didn't understand where I've to launch a new thread
Anonymous
Wat should one learn to attain intermediate level proficiency in c++?
Thiago
/get cbook
Anonymous
/rules
Anonymous
#rules
Anonymous
#ot
ss..
/get
[UI/UX-7] - Mhd Afifan Aly Rahman
hello guys, can u help me to make this programs? thanks a lot for ur helping🙏🏻
[UI/UX-7] - Mhd Afifan Aly Rahman
using c++🙏🏻
Naman
hello guys, can u help me to make this programs? thanks a lot for ur helping🙏🏻
I guess you should simply google / duckduckgo it. But I did it for you and this is what I think should work. https://www.sanfoundry.com/cpp-program-find-determinant-given-matrix/
Ishikawa
Can I ask something about a book (cpp primer, lippman) here or will I be risking ban?
Ishikawa
I'll go on. Please let me know if I shouldn't.
Anonymous
#rules
Ishikawa
So I've found an error in this book called 'CPP primer' by Lippman, two errors actually, and it has got me conscious, should I continue it or switch to some other book. They are not very big ones but still, who knows, there will be big ones waiting. I've heard that this book is quite famous, so thought I'd ask. Please be kind.
Anonymous
Ishikawa you may take a look at the rules
Anonymous
What are the errors?
Anonymous
Are you sure it's in the book. Have you re-checked your written code?
Ishikawa
Anonymous
Haha
Anonymous
Can I get to know about the errors
Ishikawa
Are you sure it's in the book. Have you re-checked your written code?
yes, i directly copied text from book to confirm.
Ishikawa
Anonymous
no don't
Anonymous
you may copy paste your written code
Anonymous
or pastebin if it's large
Anonymous
Snap of book makes you break a rule
Ishikawa
like i said they are not big errors. but just a lil conscious. reading takes time, a lot of time.
Anonymous
ummhh you may inbox me
Ishikawa
ok
Anonymous
we are just wasting both of our time
Anonymous
Hahah
Hadaward 'Solly'
errors are expected. Editing is a human activity. My CS vade mecum had a few typos (translated edition)
Anonymous
#rules
Anonymous
#rules
🙇‍♀
Anonymous
Well, don't take me wrong but I would suggest learning python before c because it will help to build stronger fundamentals. And you won't be bored. I have seen a lot of kids getting bored due to complexity of c. Then come to c and then to c++ and progress to c# after that.
I know the basics of python . It easy to use and project development is easy . But i now wanted to do compitive programming . In some question when ever i write the code its works fine but it shows me time out and reject my code .
Talula
Yes
What do you mean by "timeout"? There is no timeout in C, unless you're using serial port or something.
Anonymous
Is that in C/C++?
It doesn't accept my code in codechef . While that same code do the same work in visual studio code .
Anonymous
It requires efficient codes
Exactly sir , but i dont know how to make my code efficient and optimised .
Apk
You will need to learn about better algorithms...like binary search
Talula
Exactly sir , but i dont know how to make my code efficient and optimised .
That is something no one can help you here without looking at your code.
Apk
Also Codechef and other sites provide a nice explanation about the common errors
Anonymous
#include<iostream> #include<bits/stdc++.h> using namespace std ; int main(){ int t ; cin >> t ; while (t>0) { int n ; cin >> n ; int fact = 1 ; for (int i = 1; i <= n; i++) { fact = fact * i ; } cout << fact << endl ; t--; } return 0 ; }
Anonymous
here is the code which is rejected while it is working fine in the visaul studio code