try.cpp: In function `double trigSum(double, double)':
try.cpp:30: parse error before `)' token
try.cpp: In function `int main()':
try.cpp:62: parse error before `return'
Yes, there are many programs. They generally fall under the category of program known as C++ Compilers. Some give you better error messages than others.