Submission #432343
Source Code Expand
#include <iostream> using namespace std; int main(int argc, const char * argv[]) { char s[6]; int n; scanf("%s",s); cin >> n; int c=1; for (int i=0; i<5; i++) { for (int j=0; j<5; j++) { if (c++==n) { cout << s[i] << s[j] << endl; } } } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 25個の文字列 |
User | NSTomoS |
Language | C++ (GCC 4.9.2) |
Score | 0 |
Code Size | 356 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main(int, const char**)’: ./Main.cpp:7:17: error: ‘scanf’ was not declared in this scope scanf("%s",s); ^