0_0_17758721_19109.cpp: In function 'int main()': 0_0_17758721_19109.cpp:46:5: error: 'temp' was not declared in this scope temp=p[i].b; ^