I'd like to create a bash function like this:
acmcom source.cpp output
It's supposed to do the same thing as:
g++ -g -O2 -std=gnu++14 -static source.cpp -o output
But I couldn't find anything on how to do this in Ubuntu using bashscr file. How can I define this function for further usages?