Solution.cpp: In function ‘int function(int, int, int, int, int, int)’: Solution.cpp:29:11: error: a function-definition is not allowed here before ‘{’ token int main(){ ^ Solution.cpp:35:1: error: no return statement in function returning non-void [-Werror=return-type] } ^ cc1plus: some warnings being treated as errors
I am getting this error while solving an problem in hacker rank .I want to know where i am going wrong.code of my problem
Aucun commentaire:
Enregistrer un commentaire