Submission #1606892
Source Code Expand
include <iostream> #include <algorithm> #include <vector> #include <string> #include <ctype.h> using namespace std; int main(){ int n,i=0; char data[12]={'\0'}; cin >> data; while(data[i]!='\0'){ if(i==0){ data[i]=toupper(data[i]); }else{ data[i]=tolower(data[i]); } i++; } cout << data << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 名前の確認 |
User | kezawa |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 358 Byte |
Status | CE |
Compile Error
./Main.cpp:1:1: error: ‘include’ does not name a type include <iostream> ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/utility:70, from /usr/include/c++/5/algorithm:60, from ./Main.cpp:2: /usr/include/c++/5/type_traits:326:31: error: ‘std::size_t’ has not been declared template<typename _Tp, std::size_t _Size> ^ /usr/include/c++/5/type_traits:525:37: error: ‘nullptr_t’ is not a member of ‘std’ struct __is_null_pointer_helper<std::nullptr_t> ^ /usr/include/c++/5/type_traits:525:37: error: ‘nullptr_t’ is not a member of ‘std’ /usr/include/c++/5/type_traits:525:51: error: template argument 1 is invalid struct __is_null_pointer_helper<std::nullptr_t> ^ /usr/include/c++/5/type_traits:1411:32: error: ‘size_t’ is not a member of ‘std’ ...