....
I didnt got it can you plz explain. How can i fix it
olli
I didnt got it can you plz explain. How can i fix it
#mcve It's impossible to tell what went wrong without seeing your code. You can share your code e.g. via https://godbolt.org/
IAmMADMAX
In this Program you get the start number and the end number of a region and should return the count of all numbers except numbers with a 5 in it. The start and the end number are both inclusive! Examples: 1,9 -> 1,2,3,4,6,7,8,9 -> Result 8 4,17 -> 4,6,7,8,9,10,11,12,13,14,16,17 -> Result 12 The result may contain fives. ;-)
IAmMADMAX
Shall i Give it?
IAmMADMAX
Where is your code?
#include <stdio.h> int dontGiveMeFive() { int start,end; scanf("%d %d",&start,&end); int x=0; for (int i=start;i<=end;i++) { if (i%5==0 && i%10!=0); else if (i<=59 && i>=50); else x++; } printf("%d",x); } int main() { dontGiveMeFive(); }
Stars✨
Is this group real helpful
『ᏰᏂ』 User X
yeah
Anonymous
hi guys ! How I send photo about my programming problem
Dada
Im solving a problem called URLify, below link has my code and my solution. It works but gives me a weird error that i cant understand y.... My code and question: https://pastebin.com/RAfuHK1S Error and console output: https://pastebin.com/jK3Se494
Igor🇺🇦
hi guys ! How I send photo about my programming problem
you don't send photo. Why would you?
Anonymous
hi guys
Dada
Sometimes admin warns for pics so tat
Anonymous
is there any cheating group cause i dont want to violate the instructions
Dada
Hmm rules....
Anonymous
I try socket programming but I have some problems so I should photo because ıt is a little hard to explain
Anonymous
I send photo in url ?
Dada
I send photo in url ?
Ill try. It helps
Anonymous
thanks.
Бодя
Please, help me to solve an exam task🙏 Write program in C++ in a single .cpp file. Create structure ColorDot with such fields: x and y coordinates, and a C-string that defines the color of the dot. Create the QueueContainer structure that represents implementation of the queue data structure with the help of dynamic arrays: it must contain a dynamic array that will hold ColorDot instances, and the real size of the queue. You may add other fields if needed. Create functions that implements basic operations on the queue structure, Also add a function that prints all the elements of the given QueueContainer queue. You may create other helper functions. Demonstrate QueueContainer operation in main().
Anonymous
I try socket program and I want to basic chat program with C. my problem is in photo and in photo , I def
Anonymous
defined char* sending malloc
Anonymous
https://hizliresim.com/Q0BxMM
Anonymous
I send message but some sentences invisible
Anonymous
now, I send code phtoto
Dada
Im solving a problem called URLify, below link has image of the question, my code, and the error. It works but gives me a weird error that i cant understand y.... https://paste.pics/BA2WJ
Igor🇺🇦
Im solving a problem called URLify, below link has image of the question, my code, and the error. It works but gives me a weird error that i cant understand y.... https://paste.pics/BA2WJ
It seems that your index are wrong. It's buffer overflow error reported by ASAN. It means you're trying to write to outside of string boundary. check that your i index is within boundaries
Anonymous
Thanks
Ishank
Should I start with C or C ++?
The Shadow Monarch
Should I start with C or C ++?
C is basics... I would prefer cpp
Chinaka
good morning
Al
c++ mostly include c , even if is a different language now
Al
i would start with c anyway
Chinaka
please i installed visual studio on my linux but cant code c++ with it
Chinaka
please do i need to install somthing else
Al
gcc
Al
u probably installe visual studio code not visual studio
Al
they are different things
Al
you still need to compile you program manually unless you dont have a plugin installed
Al
and you need a compiler like gcc clang
Al
you have your terminal in the lower side
Al
assuming is a debian distro is wrong
Al
by default
Gaurav
Do anyone have handwritten notes of programs for searching and sorting techniques?
Chinaka
am a newbie to programming, so please hw do i get the gcc compiler
Anonymous
Thanks
Andrew
assuming is a debian distro is wrong
Why wrong ? assuming is debian distro
Al
linux is not always debian... and apt is just related to a dbian distro... if is an arch a gentoo or something else your apt wont work at all...
Al
your apt LIMIT your answer to a debian distro
Al
well he said linux
Al
thats OT anyway 😀
Anonymous
sudo apt install gcc
sudo pacman -S gcc u need it lol there are more for others hahah
Anonymous
Should I start with C or C ++?
If you want learn C++, learn C++
Dada
Tq so much
Oleg
Hello guys! Can you help me create study roadmap from beginning to Linux Kernel Developer? I know that need learn c and c++ but what next? Thanks!
Igor🇺🇦
Hello guys! Can you help me create study roadmap from beginning to Linux Kernel Developer? I know that need learn c and c++ but what next? Thanks!
You don't really need to know C++ for kernel. These books can help you https://www.academia.edu/40312170/Modern_Operating_Systems_4th_Edition_by_Andrew_S_Tanenbaum_Herbert_Bos https://www.oreilly.com/library/view/understanding-the-linux/0596002130/
Igor🇺🇦
Thanks!
And this one is important too. https://en.wikipedia.org/wiki/Introduction_to_Algorithms. So it's C-> algorithms-> modern OSs ->, Linux kernel
Henry
Is phone advisable for coding
Andrew
not much
Henry
not much
Like not too good right
Furkan
hello guys i have an important C homework can anyone help me?
あおい ハート
int a,b; cin>> a>>b; cout<<a<<endl; cout<<b<<endl; Input : 5.5 is given then Output: 5 0 Why b is not asked?😅
あおい ハート
Alex
try input 5 5