Help to find and fix the error in the function.
Error [C ++ Error] Unit1.cpp (11): E2141 Declaration syntax error
//--------------------------------------------------------------------------- #pragma hdrstop #include <iostream.h> #include <conio.h> //--------------------------------------------------------------------------- #pragma argsused int main(int argc, char* argv[]) int sum(int a) { return a + a; } int main() { for (int x=1;x<=10;++x) std::cout<<sqare(x)<<" "; std::cout<<std::endl; std::cout << sum(3, 5) << std::endl; return 0; } //---------------------------------------------------------------------------