0_0_37740108_19211.cpp: In function 'int main()': 0_0_37740108_19211.cpp:187:26: error: 'i' was not declared in this scope printf("%d",ansx[i]-1); ^