Submission #7469599


Source Code Expand

#include <bits/stdc++.h>

#include <cstdlib>  // abs() for integer 絶対値求めやつ

#include <cmath>    // abs() for float, and fabs()

#include <algorithm>
#include <vector>
#include <string>
#define rep(i,n) for(int i = 0; i< (n);i++)

#define SORT(a) sort((a).begin(),(a).end());

#define che(a,string) cout<<string<<":"<<(a)<<endl;

#define ch(a,string) cout<<string<<":"<<(a)<<" ";

using namespace std;

typedef pair<int,int> p;

int main(){
	char x;
	cin >>x;
	if(x=='A'){
		cout<<1<<endl;
	  }
	else if(x=='B'){
		cout<<2<<endl;
	  }
	else if(x=='C'){
		cout<<3<<endl;
	  }
	else if(x=='D'){
	  cout<<4<<endl;
	  }
	  else{
		  cout<<5<,endl;
		}

	}

Submission Info

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

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:38:13: error: expected primary-expression before ‘,’ token
     cout<<5<,endl;
             ^