Mihail
BinaryByter
uhhhmm I doubt
I don't doubt that 😉
Mihail
you aren't linking correctly, but show us all the files if you watn us to help you
Roberto
you aren't linking correctly, but show us all the files if you watn us to help you
Yes this is media.cpp. I wrote only this code. And a txt file where I put random digits for find minimum maximum and average
BinaryByter
how do you compile?
Roberto
g++ media.cpp
BinaryByter
just that?
BinaryByter
nothing else
BinaryByter
BinaryByter
g++ media.cpp
tell me the FULL command, please
Mihail
Mihail
weird
Roberto
g++ media.cpp Is the error this?
BinaryByter
try clang
Roberto
Ok I'm a noob
BinaryByter
AHHH no!!!
BinaryByter
remove the using namespace std
BinaryByter
i suspect that there might be something like that in std
Mihail
the function signature is wrong
Mihail
and so the error too
Mihail
define it properly
Mihail
klimi
Is that vim
Mihail
Mihail
But yeah
klimi
Hmmm
Roberto
what daes it meas? I don't understand what is wrong in function signature
BinaryByter
oh right!
BinaryByter
didn t look at that
Mihail
what daes it meas? I don't understand what is wrong in function signature
You define: double Avg(vector<double> data); Yet you implement: double Avg(const vector<double>& data) {};
BinaryByter
reference*
BinaryByter
Ahh the joys of const correctness :D
Mihail
reference*
Yeah thanks missed that
BinaryByter
xD
Roberto
omg
Roberto
thanks guys
Roberto
thanks a lot
Mihail
No problem
Roberto
I'm a beginner, is very helpful being part of group like this
BinaryByter
I get how you feel
BinaryByter
I started learning dart
BinaryByter
and having a dart group REALLY helps
klimi
Yay, friend told me dart is awesome
klimi
Well some months... Years ago
Anonymous
Zdarova
Could u teach me more on c++
Anonymous
I need to learn
Anonymous
Am a beginner
Mykyta
Let's try. Send me any message\
Anonymous
Okay
Anonymous
Can we chat privately
Anonymous
Let's try. Send me any message\
Should we chat privately
Mykyta
Sure we can. I mean private chat
Anonymous
Okay
Francisco
I'm a beginner, is very helpful being part of group like this
At least you try and ask questions that beginner people can get stuck at
BinaryByter
yes
BinaryByter
there are two types of beginners
BinaryByter
the beginners who expect to be spoonfed
BinaryByter
and the beginners who understand that we aren't caring mothers who will give them everything
Anonymous
Yes
BinaryByter
be like beginner #2
BinaryByter
it will help you more and it will make us not be grumpy 😉
Mykyta
But you do not know what the man want. Maybe he don't understand the basic structures of the language. And he also don't want to write a obvious quuestions like "How to download an IDE?"
Anonymous
Yes
BinaryByter
i just found another thing :D
BinaryByter
BinaryByter
BinaryByter
clang outputs something sane
BinaryByter
while g++ still encodes chars in a full 4 byte register 😅
BinaryByter
not always
BinaryByter
but here yes
olli
why not share the link instead of img?
BinaryByter
https://godbolt.org/z/boYhwA
BinaryByter
olli
I would also not argue about code-gen without any optimization level
BinaryByter
🤔
BinaryByter
true
BinaryByter
another good one wall