Problem | typo |
---|---|
User | Fet |
Submission Time | 2024-12-04 16:56:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
typo.cpp: In function ‘int main()’:
typo.cpp:18:21: error: conversion from ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’} to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
18 | string temp = a[i];
| ^
typo.cpp:20:15: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’} in assignment
20 | a[i - 1] = temp;
| ^~~~
| |
| std::string {aka std::__cxx11::basic_string<char>}
typo.cpp:29:16: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’} in assignment
29 | a[i - 1] = temp;
| ^~~~
|