// Photo.cc #include #include #include #include using namespace std; #define PI 3.14159265; #define FOR(i, a, b) for(int i=a; i Angles; void PrintAngles(){ FOR(i,0,n) cout<>a>>b; a -= x; b -= y; result = atan2(b,a) * 180 / PI; if (result<0) result += 360; // all angles >= 0 Angles.push_back(result); } sort(Angles.begin(), Angles.end()); // for debugging: // check if angles distinct FOR(i,1,n) if(Angles[i-1]==Angles[i]) cout <<"two angles equal " <>n>>x>>y>>f; } return 0; }