Untitled
raw download clone
CPP
views 41
,
size 687 b
#include <iostream>
using namespace std;

struct punct
{
    int x, y;
    char cadr[3];
}v[101];

int main ()
{
    int n;
    cin >> n;

    for(int i = 1; i <= n; i++)
    {
        cin >> v[i].x >> v[i].y;

        if(v[i].x > 0 && v[i].y > 0)
            strcpy(v[i].cadr, "I");

        if(v[i].x < 0 && v[i].y > 0)
            strcpy(v[i].cadr, "II");

        if(v[i].x < 0 && v[i].y < 0)
            strcpy(v[i].cadr, "III");

        if(v[i].x < 0 && v[i].y > 0)
            strcpy(v[i].cadr, "IV");
    }
        
    for(int i = 1; i <= 4; i++)
        for(int j = 1; j <= n; j++)
        {
            if(v[i].cadr == 1)


        }
}
close fullscreen
Login or Register to edit or fork this paste. It's free.