Problem typo
User boomphcoding
Submission Time 2026-01-21 21:45:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typo.cpp: In function ‘int main()’:
typo.cpp:13:42: error: expected ‘]’ before ‘}’ token
13 | if(word1[i] == word2[i+1] && word1[i+1} == word2[i]){
| ^
| ]
typo.cpp:13:42: error: expected ‘)’ before ‘}’ token
13 | if(word1[i] == word2[i+1] && word1[i+1} == word2[i]){
| ~ ^
| )
typo.cpp:13:42: error: expected primary-expression before ‘}’ token
typo.cpp:13:44: error: expected primary-expression before ‘==’ token
13 | if(word1[i] == word2[i+1] && word1[i+1} == word2[i]){
| ^~
typo.cpp: At global scope:
typo.cpp:23:2: error: expected unqualified-id before ‘if’
23 | if (possible){
| ^~
typo.cpp:29:1: error: expected declaration before ‘}’ token
29 | }
| ^