0_0_33941501_2541.cpp: In function 'int main()':
0_0_33941501_2541.cpp:5:17: error: redeclaration of 'int num'
int n, num, num = 0;
^
0_0_33941501_2541.cpp:5:12: note: 'int num' previously declared here
int n, num, num = 0;
^
0_0_33941501_2541.cpp:15:17: error: 'ans' was not declared in this scope
ans = num;
^
0_0_33941501_2541.cpp:19:27: error: 'ans' was not declared in this scope
if(num != ans)
^
0_0_33941501_2541.cpp:29:17: error: 'ans' was not declared in this scope
cout << ans << endl;
^
|