Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:23: error: conversion from 'void' to non-scalar type 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' requested
     string tmp=reverse(tmp.begin(),str.end());
                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~

信息

递交者
类型
递交
语言
C++
递交时间
1 年前
评测时间
1 年前
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes