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