int delete(nodelink head,char k){
nodelink p,q;
q=head;
p=head->link;
while(((p->a)!=k)&&p){
q=q->link;
p=p->link;
}
if(p){
q->link=p->link;
return 1;
}
else{
printf("There is no %c\n",k);
return 0;
}
}
The reason for this error is that delete is an operator in C + +, and the defined delete function conflicts with it.
Read More:
- C++ clang Compile Error: error: expected unqualified-id
- [Solved] Doris StreamLoad Error: load by MERGE or DELETE need to upgrade table to support batch delete
- error: expected ‘;‘ at end of member declaration and expected ‘)‘ before ‘&‘ toke Errors
- OS.Removedirs() and shutil.Rmtree() are used to delete the folder
- [Solved] Mybatis Plus 3.X injection logic delete logicsqlinjector error
- [Solved] Oracle Delete the Archive Error: RMAN-08137
- Mybatis-Plus logical delete mapping error [How to Solve]
- Uncaught (in promise) Error: Delete success at __webpack_exports__.default 405 error
- Error in Tensorflow using variables: List of Tensors when single Tensor expected
- [Solved] xacro: error: expected exactly one input file as argument
- Keil5 error: #29: expected an expression [Solved]
- TensorFlow issue: Expected int32, got list containing Tensors of type ‘_Message’ instead.
- [Solved] Runtimeerror during dcgan training: found dtype long but expected float
- [Solved] ESP32 Error: error: expected initializer before ‘__result_use_check‘
- [Solved] Eureka Startup Error: Root name (‘timestamp‘) does not match expected type EurekaApplications
- [Solved] Electron Error: Error: Electron failed to install correctly, please delete node_modules/electron and try
- Solve Maven project running error Failed to clean project: Failed to delete
- Libtorch Error: Expected object of type Variable but found type CUDALongType for argument #2 ‘index’
- Vue+TS main.ts error: unused expression, expected an assignment or function call
- [Solved] RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and