Submission #2210790


Source Code Expand

#include <iostream>
using namespace std;


int main() {
	int a, b, c;
	cin >> a>>b>>c;
	int f = 2 * b - a - c;
	if (f == 0) { cout << "YES"; }
	else { cout << "NO; }
}

Submission Info

Submission Time
Task A - ι⊥l
User spawn
Language C++14 (GCC 5.4.1)
Score 0
Code Size 177 Byte
Status CE

Compile Error

./Main.cpp:10:17: warning: missing terminating " character
  else { cout << "NO; }
                 ^
./Main.cpp:10:2: error: missing terminating " character
  else { cout << "NO; }
  ^
./Main.cpp: In function ‘int main()’:
./Main.cpp:11:1: error: expected primary-expression before ‘}’ token
 }
 ^
./Main.cpp:11:1: error: expected ‘}’ at end of input