Submission #1898647
Source Code Expand
#include <string> #include <sstream> #include <cmath> #include <fenv.h> #include <algorithm> #include <cstdio> using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if(a+b == c+d) cout << "Balanced" << endl; if (a+b > c+d) cout << "Right" << endl; if(a+b < c+d) cout << "Left" << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Libra |
User | beekalam |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 334 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:11:15: error: ‘cin’ was not declared in this scope int a,b,c,d; cin >> a >> b >> c >> d; ^ ./Main.cpp:12:17: error: ‘cout’ was not declared in this scope if(a+b == c+d) cout << "Balanced" << endl; ^ ./Main.cpp:13:16: error: ‘cout’ was not declared in this scope if (a+b > c+d) cout << "Right" << endl; ^ ./Main.cpp:14:16: error: ‘cout’ was not declared in this scope if(a+b < c+d) cout << "Left" << endl; ^