Error: “expected '(' before string constant”

后端 未结 3 2131
说谎
说谎 2020-12-30 02:20

Working on computing the geometric mean of values in an array

The function should compute the geo mean correctly, but i\'m getting a weird error message



        
3条回答
  •  清酒与你
    2020-12-30 02:37

    the first line should be: extern C;

    The other option would be declaring c outside the main function without the extern keyword...

提交回复
热议问题