0_0_20749591_15865.cpp: In function 'int main()': 0_0_20749591_15865.cpp:8:51: error: 'n' was not declared in this scope while(scanf("%lld",&a)!=EOF) printf("%lld\n",n*(n+1)/2); ^