Submission #8840596


Source Code Expand

#include <bits/stdc++.h>
#define rep(i,m,n) for(int i=m; i<n; i++)
#define co(n) cout << n << endl
using namespace std;
int main(){
  int t, a, b, c, d;
  cin >> t >> a >> b >> c >> d;
  if(t<a && t<c) co(0);
  else if(t<a && t=>c) co(d);
  else if(t<c && t>=a) co(b);
  else co(b+d);
  
  return 0;
}

Submission Info

Submission Time
Task A - Two Problems
User Tortoise
Language C++14 (GCC 5.4.1)
Score 0
Code Size 314 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:9:20: error: expected primary-expression before ‘>’ token
   else if(t<a && t=>c) co(d);
                    ^