Submission #2202122


Source Code Expand

#include<iostream>
#include<algorithm>
#include<vector>
#include<cmath>
#include<string>
using namespace std;
int main(){
    string str,s[100];
    int x=0;
    cin >> str;
    cin >> N;
    for(int i=0;i<str.size();i++){
        for(int j=0;j<str.size();j++){
            s[x] = str[i]+str[j];
            x++;
        }
    }
    cout << s[N] << endl;
}

Submission Info

Submission Time
Task A - 25個の文字列
User thash
Language C++14 (GCC 5.4.1)
Score 0
Code Size 374 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:11:12: error: ‘N’ was not declared in this scope
     cin >> N;
            ^