Problem | lengthsort |
---|---|
User | qwqful |
Submission Time | 2024-02-13 20:35:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lengthsort.cpp:6:11: error: variable or field ‘sort’ declared void
6 | void sort(vector<string> v){
| ^~~~~~
lengthsort.cpp:6:11: error: ‘vector’ was not declared in this scope
lengthsort.cpp:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
2 | #include <iostream>
+++ |+#include <vector>
3 |
lengthsort.cpp:6:24: error: expected primary-expression before ‘>’ token
6 | void sort(vector<string> v){
| ^
lengthsort.cpp:6:26: error: ‘v’ was not declared in this scope
6 | void sort(vector<string> v){
| ^
lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:24:5: error: ‘vector’ was not declared in this scope
24 | vector<string> words;
| ^~~~~~
lengthsort.cpp:24:5: note: ‘std::vector’ is defined in header ‘<vector>’; di