0_0_35968914_8455.cpp: In function 'int main()': 0_0_35968914_8455.cpp:48:76: error: 'c' was not declared in this scope strcpy(a, s[k].name); strcpy(s[k].name, s[j].name); strcpy(s[j].name, c); ^