CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* Created by Taylor Schwartz
https://www.sololearn.com/Discuss/1029333
I wrote this for a problem im casually doing on kattis. I'm not sure what I'm doing wrong.
Any input would be helpful. also, why will it not run on here? is it too big? I copied and
pasted from my computer to email to here. thanks :) I am unsure if this section can be used
for this kind of discussion, so if not I apologize.
https://code.sololearn.com/cOsI8xzk84KI/?ref=app
This program finds the coordinates of the fourth corner of a square
*/
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
// ordered pair
struct Points
{
float x_coordinate;
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run