0

What am i wrong

#include <iostream> using namespace std; int main() { string smiley = " @@@@ @@@@\n @@@@@@ @@@@@@\n. @@@@@@ @@@@@@\n @@@@ @@@@\n\n\n\n@ @\n @@ @@\n @@@ @@@\n @@@@@ @@@@@\n @@@@@@@@@@@@@\n"; cout << smiley; }

18th Feb 2023, 2:10 PM
Huáș„n
Huáș„n - avatar
2 Answers
+ 2
It works, but I removed some newlines (not the \n) out of the code. The complete string must logically be on one line in the program.
18th Feb 2023, 3:50 PM
Paul
Paul - avatar
+ 1
return statement missing
18th Feb 2023, 8:59 PM
A S Raghuvanshi
A S Raghuvanshi - avatar