Run id: 118601

Main.cc: In function 'int main()':
Main.cc:18:31: error: expected ')' before 'n'
         sum=a[0]*pow(a[1]/a[0]n-1);    
                               ^
Main.cc:18:34: error: no matching function for call to 'pow(int)'
         sum=a[0]*pow(a[1]/a[0]n-1);    
                                  ^
In file included from /usr/include/features.h:367:0,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:482,
                 from /usr/include/c++/5/iostream:38,
                 from Main.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:153:1: note: candidate: double pow(double, double)
 __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
 ^
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:153:1: note:   candidate expects 2 arguments, 1 provided
In file included from Main.cc:5:0:
/usr/include/c++/5/cmath:434:5: note: candidate: template constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::pow(_Tp, _Up)
     pow(_Tp __x, _Up __y)
     ^
/usr/include/c++/5/cmath:434:5: note:   template argument deduction/substitution failed:
Main.cc:18:34: note:   candidate expects 2 arguments, 1 provided
         sum=a[0]*pow(a[1]/a[0]n-1);    
                                  ^
In file included from Main.cc:5:0:
/usr/include/c++/5/cmath:411:3: note: candidate: constexpr long double std::pow(long double, long double)
   pow(long double __x, long double __y)
   ^
/usr/include/c++/5/cmath:411:3: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/5/cmath:407:3: note: candidate: constexpr float std::pow(float, float)
   pow(float __x, float __y)
   ^
/usr/include/c++/5/cmath:407:3: note:   candidate expects 2 arguments, 1 provided