0_0_27753038_14353.cpp: In function 'int main()': 0_0_27753038_14353.cpp:68:37: error: 'j' was not declared in this scope scanf("%d%d", &x[i], &x[j]); ^