Submission #4029196


Source Code Expand

#inclued<bits/stdc++.h>
using namespace std ;

int main () {
  int a , b , c , d ;
  cin >> a >> b >> c >> d ;
  if ( a + b == c + d ){
    cout << "Balanced" << endl ;
  } else if ( a + b > c + d ){
    cout << "Left" << endl ;
  } else {
    cout << "Right" << endl ;
  }
}

Submission Info

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

Compile Error

./Main.cpp:1:2: error: invalid preprocessing directive #inclued
 #inclued<bits/stdc++.h>
  ^
./Main.cpp: In function ‘int main()’:
./Main.cpp:6:3: error: ‘cin’ was not declared in this scope
   cin >> a >> b >> c >> d ;
   ^
./Main.cpp:8:5: error: ‘cout’ was not declared in this scope
     cout << "Balanced" << endl ;
     ^
./Main.cpp:8:27: error: ‘endl’ was not declared in this scope
     cout << "Balanced" << endl ;
                           ^
./Main.cpp:10:5: error: ‘cout’ was not declared in this scope
     cout << "Left" << endl ;
     ^
./Main.cpp:10:23: error: ‘endl’ was not declared in this scope
     cout << "Left" << endl ;
                       ^
./Main.cpp:12:5: error: ‘cout’ was not declared in this scope
     cout << "Right" << endl ;
     ^
./Main.cpp:12:24: error: ‘endl’ was not declared in this scope
     cout << "Right" << endl ;
                        ^