Submission #7595823
Source Code Expand
#include <bits/stdc++.h> using namespace std; int main(){ string S; cin >> S; cout << S + 'pp' << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - ハンドルネーム |
User | tashiki1414 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 113 Byte |
Status | CE |
Compile Error
./Main.cpp:7:13: warning: multi-character character constant [-Wmultichar] cout << S + 'pp' << endl; ^ ./Main.cpp: In function ‘int main()’: ./Main.cpp:7:11: error: no match for ‘operator+’ (operand types are ‘std::string {aka std::basic_string<char>}’ and ‘int’) cout << S + 'pp' << endl; ^ In file included from /usr/include/c++/5/bits/stl_algobase.h:67:0, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/sstream:38, from /usr/include/c++/5/complex:45, from /usr/include/c++/5/ccomplex:38, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52, from ./Main.cpp:1: /usr/include/c++/5/bits/stl_iterator.h:341:5: note: candidate: template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, co...