0_0_18279430_11001.cpp: In function 'int main()': 0_0_18279430_11001.cpp:33:43: error: 'il' was not declared in this scope scanf("%d%d", &A[l].first, &A[il].second); ^