https://usaco.org/index.php?page=viewproblem2&cpid=591
Hi, when I run my solution in my compiler it seems to work, but I am I sumbitted my code, It does not seem to work. I have no idea why it would not work.
#include <iostream>
int b_i;
int b_a;
int s_i;
int s_a;
int g_i;
int g_a;
int p_i;
int p_a;
int b_s;
int s_g;
int g_p;
int main() {
std::cin >> b_i;
std::cin >> b_a;
std::cin >> s_i;
std::cin >> s_a;
std::cin >> g_i;
std::cin >> g_a;
std::cin >> p_i;
std::cin >> p_a;
g_p = p_a - p_i;
s_g = (p_a + g_a) - (p_i + g_i);
b_s = (p_a + s_a + g_a)- (p_i + s_i + g_i);
std::cout << b_s;
std::cout <<'\n';
std::cout << s_g;
std::cout << '\n';
std::cout << g_p;
return 0;
}