0_0_31732872_27545.cpp: In function 'int main()': 0_0_31732872_27545.cpp:24:20: error: 'N' was not declared in this scope while(scanf("%d",&N)!=EOF) ^