第一个函数中的第8行:Have a error: Call object type 'ListNode *' is not a function orfunction pointerListNode* deleteDuplicatesII(ListNode* head) if (head == nullptrnext; head-&
我确信一切都是正确的,除了第15行,其中"double report = report(retailPrice)“给出了错误called object type 'double' is not a function我尝试将几乎所有的报告变量甚至函数重命名为不同的名称,但仍然导致完全相同的错误。当完全省略report()函数并将其替换为main()中的cout语句时,它似乎工作得很好,但不幸的是,不管它有多无意义,赋值都需要它。