+ 1

playground output is always an error

even if i don’t change a single thing in the sample text... for example this: <p> I'm a paragraph </p> leads to this: ./Playground/file0.cpp:1:6: warning: missing terminating ' character 1 | <p> I'm a paragraph </p> | ^ ./Playground/file0.cpp:1:6: error: missing terminating ' character 1 | <p> I'm a paragraph </p> | ^~~~~~~~~~~~~~~~~~~ ./Playground/file0.cpp:1:1: error: expected unqualified-id before '<' token 1 | <p> I'm a paragraph </p> | ^ am I missing something??

10th Sep 2020, 5:49 PM
Melanie
5 odpowiedzi
10th Sep 2020, 5:58 PM
Rei
Rei - avatar
+ 1
did you press try it yourself button, or copy paste the code ? looks like that the code is using wrong language
10th Sep 2020, 5:52 PM
Rei
Rei - avatar
+ 1
Select "Web" when creating new HTML codes not "C++".
10th Sep 2020, 5:53 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
0
Well you are writing html code in C++ code section, Please, to write HTML, CSS, or Javascript based codes, use Web Code section
10th Sep 2020, 5:54 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
Rei, i used the try it yourself button
10th Sep 2020, 5:55 PM
Melanie