Problem | minimum |
---|---|
User | RichieRich |
Submission Time | 2023-12-07 21:04:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int main()’:
minimum.cpp:12:41: error: request for member ‘size’ in ‘function.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’}
12 | for (int j = 0; j < function[i].size(); j++) {
| ^~~~
minimum.cpp:13:38: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}[int]’ for array subscript
13 | if (isdigit(function[i][j]) && alr == 0) {
| ^
minimum.cpp:15:40: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}[int]’ for array subscript
15 | int num = function[i][j] - '0';
|