Problem | lengthsort |
---|---|
User | SharpnessChipped |
Submission Time | 2023-06-12 14:04:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:12:19: error: conversion from ‘int’ to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
12 | for (string j : list) {
| ^~~~
lengthsort.cpp:14:21: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘int’ in assignment
14 | result[count] = j;
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
lengthsort.cpp:19:18: error: conversion from ‘int’ to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
19 | for (string j : result) {
| ^~~~~~