Где ошибка?
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int n, a, otv = 0;
cin >> n;
int arr[n];
for(int i = 0; i < n; i++)
cin >> arr[i];
for(int i = 0; i < n; i++)
{
a = arr[i];
if( sqrt(a) == 0 ) otv++;
}
cout << otv;
system("PAUSE");
return EXIT_SUCCESS;
}
Ответ выводится 0 =/