Submission #1304043


Source Code Expand

#include <iostream>
#include<sstream>
#include<vector>
#include<iterator>
#include<algorithm>
using namespace std;

int main(void)
{
	string S;
	cin >> S;

	string str(S);
	transform(S.begin(), S.end(), str.begin(), tolower);
	str[0] = toupper(str[0]);

	cout << str << endl;

	return 0;
}

Submission Info

Submission Time
Task B - 名前の確認
User callman
Language C++ (Clang 3.8.0)
Score 0
Code Size 310 Byte
Status CE

Compile Error

./Main.cpp:14:2: error: no matching function for call to 'transform'
        transform(S.begin(), S.end(), str.begin(), tolower);
        ^~~~~~~~~
/usr/local/include/c++/v1/algorithm:1946:1: note: candidate template ignored: couldn't infer template argument '_UnaryOperation'
transform(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _UnaryOperation __op)
^
/usr/local/include/c++/v1/algorithm:1956:1: note: candidate function template not viable: requires 5 arguments, but 4 were provided
transform(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2,
^
1 error generated.