Compile Error

foo.cc: In function 'int main()':
foo.cc:8:23: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    8 |     string tmp=reverse(tmp.begin(),str.end());
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
语言
C++
递交时间
2023-11-07 10:48:06
评测时间
2023-11-07 10:48:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes