0_0_18351117_17399.cpp: In function 'int main()': 0_0_18351117_17399.cpp:5:20: error: 'N' was not declared in this scope for(;scanf("%ld",&N)!=EOF;) printf("%ld\n",N*(N-1)/2); ^