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