【leetCode】control reaches end of non-void function [-Werror=return-type]

雖然有時咱們在一塊程序裏已經有return,但不是在這塊代碼的結尾,leetCode也會編譯不經過。 因此咱們也要在函數的代碼塊結尾也return一下,以下面這個例子,一度讓我懷疑人生。。。node /* address=num[i]%height; 採用鏈地址法處理哈希衝突 */ #include<stdio.h> #include<stdlib.h> #include<math.h> #de
相關文章
相關標籤/搜索