Submission #7361192


Source Code Expand

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

int main() {
  str A;
  cin >> A ;
  
  if(A == "A"){
    cout << 1 << endl;
  }
   if(A == "B"){
    cout << 2 << endl;
  }
   if(A == "C"){
    cout << 3 << endl;
  }
   if(A == "D"){
    cout << 4<< endl;
  }
   if(A == "E"){
    cout << 5 << endl;
  }

}

Submission Info

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

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:5:3: error: ‘str’ was not declared in this scope
   str A;
   ^
./Main.cpp:6:10: error: ‘A’ was not declared in this scope
   cin >> A ;
          ^