Problem | lengthsort |
---|---|
User | skibidininja98 |
Submission Time | 2024-06-18 15:57:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lengthsort.cpp:6:9: error: empty character constant
6 | char = ''
| ^~
lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:5:2: error: ‘i’ was not declared in this scope
5 | i = 0;
| ^
lengthsort.cpp:6:7: error: expected unqualified-id before ‘=’ token
6 | char = ''
| ^
lengthsort.cpp:8:19: error: ‘s’ was not declared in this scope
8 | for (char ; i <= s.size(char); ++1)
| ^
lengthsort.cpp:8:26: error: expected primary-expression before ‘char’
8 | for (char ; i <= s.size(char); ++1)
| ^~~~
lengthsort.cpp:8:35: error: lvalue required as increment operand
8 | for (char ; i <= s.size(char); ++1)
| ^
lengthsort.cpp:9:43: error: expected ‘}’ at end of input
9 | if s.size(char[0]) >= s.size(char[i ++1])
|