Submission #213806


Source Code Expand

include <iostream>
 
using namespace std;
 
int main() {
  char c;
  cin >> c;
  cout << c - 'A' + 1 << endl;
  return 0;
}

Submission Info

Submission Time
Task A - A
User kebokebo
Language C++11 (GCC 4.8.1)
Score 0
Code Size 132 Byte
Status CE

Compile Error

./Main.cpp:1:1: error: ‘include’ does not name a type
 include <iostream>
 ^
./Main.cpp: In function ‘int main()’:
./Main.cpp:7:3: error: ‘cin’ was not declared in this scope
   cin >> c;
   ^
./Main.cpp:8:3: error: ‘cout’ was not declared in this scope
   cout << c - 'A' + 1 << endl;
   ^
./Main.cpp:8:26: error: ‘endl’ was not declared in this scope
   cout << c - 'A' + 1 << endl;
                          ^