We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
why do we get these compiler error:
solution.c: In function ‘marks_summation’:
solution.c:26:5: error: ‘main’ is normally a non-static function [-Werror=main]
int main() {
^~~~
solution.c:44:1: error: expected declaration or statement at end of input
}
^
solution.c:44:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: some warnings being treated as errors
Exit Status
255
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Students Marks Sum
You are viewing a single comment's thread. Return to all comments →
why do we get these compiler error: solution.c: In function ‘marks_summation’: solution.c:26:5: error: ‘main’ is normally a non-static function [-Werror=main] int main() { ^~~~ solution.c:44:1: error: expected declaration or statement at end of input } ^ solution.c:44:1: error: control reaches end of non-void function [-Werror=return-type] } ^ cc1: some warnings being treated as errors Exit Status
255