0_0_17989811_22483.cpp: In function 'int main()': 0_0_17989811_22483.cpp:21:30: error: 's' was not declared in this scope scanf("%d", &s[i]); ^