Problem | sort |
---|---|
User | Hansjuaraosn |
Submission Time | 2024-08-08 23:13:10 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sort.cpp: In function ‘int main()’:
sort.cpp:9:12: error: expected identifier before numeric constant
9 | string[101];
| ^~~
sort.cpp:9:12: error: expected ‘]’ before numeric constant
9 | string[101];
| ^~~
| ]
sort.cpp:9:11: error: structured binding declaration cannot have type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
9 | string[101];
| ^
sort.cpp:9:11: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
sort.cpp:9:11: error: empty structured binding declaration
sort.cpp:9:16: error: expected initializer before ‘;’ token
9 | string[101];
| ^
sort.cpp:11:22: error: expected primary-expression before ‘[’ token
11 | cin >> string[i];
| ^
sort.cpp:13:10: error: ‘a’ was not declared in this scope
13 | sort(a,a+n);