0

Can someone check whats wrong with my code

https://code.sololearn.com/cgUaF3Jk5GIM/?ref=app

4th Mar 2018, 4:43 AM
harsh dhawle
4 Réponses
+ 3
//heres your code without the errors #include <iostream> using namespace std; int main() { int myVariable=10; cout<<"myVariable\n\nHello world"; return 1; } you wrote "\n" without quotes and prints inside the code
4th Mar 2018, 4:50 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
0
#include <iostream> using namespace std; int main() { int myVariable=10; cout<<myVariable<<endl; cout<<"hello world"; return 0; }
4th Mar 2018, 4:49 AM
Kuruva Bhanu Sarath
Kuruva Bhanu Sarath - avatar
0
You need to put the escaped newlines inside of the string. You also have the word "prints" that shouldn't be there.
4th Mar 2018, 4:51 AM
Jesse Bayliss
Jesse Bayliss - avatar
0
Thnx
4th Mar 2018, 9:28 AM
harsh dhawle