View Compilation Error
1_867_4658_1752.cpp: In function 'int main()':
1_867_4658_1752.cpp:98:21: error: expected ')' before 'ans'
ans[i]=temp-cnt;
^
1_867_4658_1752.cpp:101:17: error: expected '}' before 'else'
else{
^
1_867_4658_1752.cpp:103:21: error: 'cnt' was not declared in this scope
cnt=(cnt+vis[i])*2
^
1_867_4658_1752.cpp:103:34: error: 'i' was not declared in this scope
cnt=(cnt+vis[i])*2
^
1_867_4658_1752.cpp:111:27: error: 'n' was not declared in this scope
for(int i=0;i<n;i++){
^
1_867_4658_1752.cpp: At global scope:
1_867_4658_1752.cpp:134:9: error: expected unqualified-id before 'else'
else printf("Case %d: NO\n",t++);
^
1_867_4658_1752.cpp:136:5: error: expected declaration before '}' token
}
^
|
|
|
|