Problem typo
User Tristyy
Submission Time 2024-06-19 10:33:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typo.cpp: In function ‘int main()’:
typo.cpp:12:24: error: expected primary-expression before ‘or’ token
12 | if (j[i+1] == v[i]) or (j[i] == v[i+1]){
| ^~
typo.cpp:19:15: error: expected ‘}’ at end of input
19 | cout << "No";
| ^
typo.cpp:18:17: note: to match this ‘{’
18 | if (n == "Yes"){
| ^
typo.cpp:19:15: error: expected ‘}’ at end of input
19 | cout << "No";
| ^
typo.cpp:10:39: note: to match this ‘{’
10 | for (int i =1;i<((v.length())-1);i++){
| ^
typo.cpp:19:15: error: expected ‘}’ at end of input
19 | cout << "No";
| ^
typo.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^