When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
44 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
Which line?
49
Which line is that in your code?
It is 49. line in my code, the issue line => std::cout << "Tekneyi 4 " << rol << " ile kaydiriyoruz. \n";
Can you paste the full error
yes
Do you have the full compile log in text format somewhere?
Maybe a different tab or something
I just take this issue. here is the code
I added all of the code.
ah i see
you just have to add using namespace std::literals::string_literals;
cuz these literals arent really enabled by default
it should compile now
@next night does it work now
It's producing new issues, am i use wrong?
no it should work fine
uh
what do the errors say
check
what are you using as IDE or text editor @next night
cl
command line?
24/49/49/74
what
jetbrains clion
if its not compiling successfully can you give us the full compiler output log pls
idk how i can help you if you dont tho cuz the code compiles perfectly fine on godbolt
It's showing those now
an online compailer showing that "ERROR!
g++ /tmp/TfHXtGTHqu.cpp
/tmp/TfHXtGTHqu.cpp: In member function 'void NehirKarsiyaGecis::kaydir(const std::string&)':
/tmp/TfHXtGTHqu.cpp:50:14: error: 'cout' is not a member of 'std'
50 | std::cout << "Tekneyi 4 " << rol << " ile kaydiriyoruz.\n";
| ^~~~
/tmp/TfHXtGTHqu.cpp:5:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
4 | #include <condition_variable>
+++ |+#include <iostream>
5 | #include <string>
"
I'm a beginner in c++
do you have #include <iostream>?
yes
yea
are you sure you setup clion correctly?
here are two results