Hi, tell me to fix runtime-error. You can see the code here: http://ideone.com/Cv5rr2

int xA,yA, xB,yB; int count = 0; int n; cin >> xA >> yA >> xB >> yB; cin >> n; int **Arr = new int* [3]; for (int i = 0; i < 3; i++) Arr[i] = new int [n]; for (int i = 0; i < n; i++) { for (int j = 0; j < 3; j++) { cin >> Arr[i][j]; } } for (int i = 0; i < n; i++) { if ((xA-Arr[i][0])*(xA-Arr[i][0])+(yA-Arr[i][1])*(yA-Arr[i][1]) <= (Arr[i][2]*Arr[i][2]) || (xB-Arr[i][0])*(xB-Arr[i][0])+(yB-Arr[i][1])*(yB-Arr[i][1]) <= (Arr[i][2]*Arr[i][2])) { count++; } } cout << count; for (int i = 0; i < 3; i++) delete [] Arr[n]; 

Please, help.

  • The requested URL / Cv5rr2. was not found on this server. correct the link. - vladimir_
  • one
    I fixed the error myself :) - user17711
  • There's just an extra dot at the end of the URL. (I corrected) - avp

0