I am getting 3 errors:- line 12:-invalid conversion from int* to int line 17:-x was not declared in this scope line 16:- expected primary expression before',' token
please fix this,
#include<iostream>
int power(int x[5])
{
x[0]=12;
x[1]=23;
x[2]=234;
x[3]=344;
x[4]=232;
return x;
}
int main()
{
int action[5]={1,2,3,,4,5};
std::cout<<x[0]<<std::endl;
x();
std::cout<<x[0]<<std::endl;
return 0;
}
your help would be appreciated!
Aucun commentaire:
Enregistrer un commentaire