Submission #1180514
Source Code Expand
#include <iostream> using namespace std; int main(void) { char a[10]; cin >> a; if ((strlen(a) == 1) && (a[0] == 'a')) cout << -1 << endl; else cout << 'a' << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 辞書式順序 |
User | volks_33 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 197 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:9:15: error: ‘strlen’ was not declared in this scope if ((strlen(a) == 1) && (a[0] == 'a')) cout << -1 << endl; ^