Line 1: warning: 'struct ptD3' declared inside parameter list
Line 1: warning: its scope is only this definition or declaration, which is probably not what you want
In function 'swap':
Line 3: error: storage size of 'temp' isn't known
Line 4: error: invalid use of undefined type 'struct ptD3'
Line 4: error: dereferencing pointer to incomplete type
Line 5: error: invalid use of undefined type 'struct ptD3'
Line 5: error: dereferencing pointer to incomplete type
Line 5: error: invalid use of undefined type 'struct ptD3'
Line 5: error: dereferencing pointer to incomplete type
Line 6: error: invalid use of undefined type 'struct ptD3'
Line 6: error: dereferencing pointer to incomplete type