Talula
It doesn`t help :( https://imgur.com/a/8crf5lt
Did you copy blocked_range.h to the folder where you .cpp file is located?
sasha
Did you copy blocked_range.h to the folder where you .cpp file is located?
Now yes, but the error remains the same, and the .h file is not used https://imgur.com/a/7DnCvCj
sasha
It's not an error that is a warning, it's unused.
I'm talking about this error: fatal error: tbb/blocked_range.h: No such file or directory 19 | #include <tbb/blocked_range.h> | ^~~~~~~~~~~~~~~~~~~~~
Talula
I'm talking about this error: fatal error: tbb/blocked_range.h: No such file or directory 19 | #include <tbb/blocked_range.h> | ^~~~~~~~~~~~~~~~~~~~~
I'm talking about the picture you posted above, it is a warning that you're not using the blocked_range.h ... so... the main error is gone...
R
Hi anyone familiar with data structure?
hi, what do you want to know
Talula
Unfortunately, no https://imgur.com/a/58eHesz
Normally what you should do is add search path and tell your compiler where these files are located, the error is other .h file that has included this file... Either provide the path or include complete path for the include file... https://commandlinefanatic.com/cgi-bin/showarticle.cgi?article=art026 This article gives an idea how to do that.
Anonymous
priority_queue<int, vector<int>, greater<>> minheap; In this declaration, why is the template argument for greater optional, but for vector isn't?
Vlad
Which its default template parameter
Vlad
if it's <void> it deduces parameter and return type
Anonymous
there's a specialization with std::greater<void>
Why doesn't something like that exist for vector?
Vlad
Why doesn't something like that exist for vector?
Because vector isn't meant to be a functor
Anonymous
hello
AD
Hi
Nameful
I know this is a C++ group and not a qmake group, but can I ask qmake questions here?
klimi
I know this is a C++ group and not a qmake group, but can I ask qmake questions here?
well you can but you might get better answer at @CplusplusQt
🙋🏻‍♂️
Guys
🙋🏻‍♂️
Can anyone help me?
🙋🏻‍♂️
About fibonacci
🙋🏻‍♂️
#include <stdio.h> #include <stdlib.h> int main(){ int count,fibo[5],fir=0,sec; printf("The array will start with 0. What will the next be? "); scanf("%d",&sec); fibo[0]=fir; fibo[1]=sec; for(int a=0;a<5;a++){ if(a>1){ fibo[a]+=fibo[a-1]; } printf("%d",fibo[a]); } }
🙋🏻‍♂️
What actually u want to do ?
Print a fibonaci array from 0 to the num what user enter
shriman_deepak
Print a fibonaci array from 0 to the num what user enter
#include <stdio.h> int main() { int t1 = 0, t2 = 1, nextTerm = 0, n; printf("Enter a positive number: "); scanf("%d", &n); // displays the first two terms which is always 0 and 1 printf("Fibonacci Series: %d, %d, ", t1, t2); nextTerm = t1 + t2; while (nextTerm <= n) { printf("%d, ", nextTerm); t1 = t2; t2 = nextTerm; nextTerm = t1 + t2; } return 0; }
🙋🏻‍♂️
Oh I made a mistake
🙋🏻‍♂️
What is fibo[5] ?
It is the array
🙋🏻‍♂️
Fibo array is not initialized. So, fibo[2] is used wrongly when is calculated as fibo[2]+fibo[1]
#include <stdio.h> #include <stdlib.h> int main(){ int fibo[5],fir=0,sec; printf("The array will start with 0. What will the next be? "); scanf("%d",&sec); fibo[0]=fir; fibo[1]=sec; for(int a=0;a<5;a++){ if(a>1){ fibo[a]=fibo[a-1]+fibo[a-2]; } printf("%d",fibo[a]); } }
🙋🏻‍♂️
It worked like a charm
🙋🏻‍♂️
Thanks again!
Sergio
Remember: initializing always
🙋🏻‍♂️
Kr. Sunny
Sort the elements in an array using selection sort and then search a key using binary search.
Korin
good afternoon, please help with the code in C to write a program that divides a paragraph into letters in alphabetical order. I will be very grateful, thank you.
Banjo
Guys, good evening...I have a question a friend...a beginner in c...he needs help with his coursework "Can we prove that Bank's intervention in controlling inflation has been successful? Write a c program to justify the above statement." Thanks
Mahdi
Hi
CAMILIUS
Hi
\Device\NUL
did you mean rustc is written in c++?
Ah sorry, i forgot that earlier rust compiler is made from Ocaml, not C++
CAMILIUS
Any certificate here
David
Anytime I try to run my C code on visual studio code It tells me to open ‘launch.json’ Something about unable to find executable
CAMILIUS
In programming which app is the best in c++ based on phone
M. Wahyu
Embedding systems employment prospects in the future ?🤔🤷‍♂
Anonymous
Some of best projects for c beginner....so it helps in intership
Itay
good afternoon, please help with the code in C to write a program that divides a paragraph into letters in alphabetical order. I will be very grateful, thank you.
Hi, not sure what you need to do with the letters (count them?), but it seems you need to loop over the paragraph (stored in a char array) and do your thing with each character until you get to the '\0' ending of the text
Lost
Can anyone share c ppt file??
Anonymous
Design a pseudo code to insert a node in the middle of singly linked list in c++
Anonymous
Anyone?
Lengashe
subneting and host anyone with notes about it can you share please
Anonymous
If I wanna directly learn web development (1)Java script (2) html. (3) css it's necessary to firstly learn c++
Anonymous
Or c
Anonymous
I have
How are you running the file?
John
Admin is it wrong to share c/c++ ebooks here??
klimi
Admin is it wrong to share c/c++ ebooks here??
oh... we do not explicitly ban them, just bare in mind that we don't like advertisements and promotions. (and ofc, telegram ToS)
Eshan
How much cpp do we need to learn to get job ready as a fresher? Just summarize
Eshan
Anonymous
Oh okay oky thank you
olli
What's the question? Don't ask to ask
olli
What's your question?
Anonymous
Why you dont write a book about that
Anonymous
guys is in c multithreading possible or is that only available in c++
Parra
guys is in c multithreading possible or is that only available in c++
it's possible but there's no stdlib for that like in c++, it's platform dependant
Anonymous
You could use posix
Yeah bro i saw that.Thanks
Anonymous
it's possible but there's no stdlib for that like in c++, it's platform dependant
yeah this is a big problem.I wanted to something with different plattforms.I wanted to create an texteditor with correct words and an key respond and formating and more features at the same time