Po funkcji main() jest średnik ...
Po getch() nie ma ...
#include<iostream>
#include<conio.h>
#include<cmath>
using namespace std;
double root(double x, double a) {return pow(x, 1/a);}
void main()
{
cout << "Pierwiastki" << endl;
cout << "===========" << endl;
cout << "Podaj liczbe: ";
cin >> x;
cout << "Podaj stopien pierwiastka: ";
cin >> a;
cout << "Wynik to " << root(x, a) << "." << endl;
getch();
}