I am trying out some code on Ubuntu. I\'m trying to run the following code
#include #include
The "undefined reference to 'main'" is because you did not define a main() function, which is the entry point of your program:
main()
int main() { // call other functions }