0
C++ getting error that says expected primary expression before << token. But everything looks right
building on codeblocks 17.12
4 odpowiedzi
+ 1
Can you share your code here? Either copy into Code Playground or copy the offending line in your question to help us answer it :)
+ 1
do you have these: { } in your code? Sounds like it's expecting a brace but the next operator was << or something
0
#include <iostream>
using namespace std
int main ()
cout << " some text" << endl;
cout << " some text";
return 0;
0
the error happens on the fourth line after the first cout