0

C++ getting error that says expected primary expression before << token. But everything looks right

building on codeblocks 17.12

29th Mar 2018, 6:26 AM
Jay
4 Respuestas
+ 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 :)
29th Mar 2018, 7:01 AM
Dan Walker
Dan Walker - avatar
+ 1
do you have these: { } in your code? Sounds like it's expecting a brace but the next operator was << or something
29th Mar 2018, 2:23 PM
Dan Walker
Dan Walker - avatar
0
#include <iostream> using namespace std int main () cout << " some text" << endl; cout << " some text"; return 0;
29th Mar 2018, 1:37 PM
Jay
0
the error happens on the fourth line after the first cout
29th Mar 2018, 1:40 PM
Jay