Submission #2853586


Source Code Expand

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <map>
#include <vector>
#include <queue>
#include <algorithm>

using namespace std;

//typedef pair<int,int> P;


int main(){
	int a,b,c,d;
	scanf("%d %d %d %d", &a, &b, &c, &d);

	if((A+B)>(C+D)){
		printf("Left\n");
	}else if((A+B)==(C+D)){
		printf("Balanced\n");
	}else{
		printf("Right\n");
	}

	return 0;
}

Submission Info

Submission Time
Task A - Libra
User uchina
Language C++14 (GCC 5.4.1)
Score 0
Code Size 444 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:20:6: error: ‘A’ was not declared in this scope
  if((A+B)>(C+D)){
      ^
./Main.cpp:20:8: error: ‘B’ was not declared in this scope
  if((A+B)>(C+D)){
        ^
./Main.cpp:20:12: error: ‘C’ was not declared in this scope
  if((A+B)>(C+D)){
            ^
./Main.cpp:20:14: error: ‘D’ was not declared in this scope
  if((A+B)>(C+D)){
              ^
./Main.cpp:18:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d %d %d", &a, &b, &c, &d);
                                      ^