Submission #1691261


Source Code Expand

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

#define DEBUG(x) cerr << #x << ": " << x << endl;
#define ll long long

int main() {
    string s = "ABCDE";
    char c;
    cin >> c;

    int l = s.length();
    for (int i = 0; i < l; i++) {
        if (s[i] == c) {
            cout << i + 1 << endl;
        }
    }

    return 0;
}
    return 0;
}

Submission Info

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

Compile Error

./Main.cpp:21:5: error: expected unqualified-id before ‘return’
     return 0;
     ^
./Main.cpp:22:1: error: expected declaration before ‘}’ token
 }
 ^