G:\GOGOGOGO\POJ\1106-Transmitters\Transmitters.cpp|5|error: 'double y1' redeclared as different kind of symbol|

编写POJ 1106-transmitters 时 加载库函数cmath,同时定义了一个变量y1,codeblocks出现如上错误

原因:

在cmath中有y1的定义,这样会因为重定义而出错。