Problem defense101
User birdbird
Submission Time 2026-08-16 16:30:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

defense101.cpp: In function ‘int32_t main()’:
defense101.cpp:46:19: error: could not convert ‘(std::string*)(& numbers)’ from ‘std::string*’ {aka ‘std::__cxx11::basic_string<char>*’} to ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
46 | sum = addd(sum, numbers);
| ^~~~~~~
| |
| std::string* {aka std::__cxx11::basic_string<char>*}
defense101.cpp:53:22: error: could not convert ‘a’ from ‘long long int’ to ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
53 | temp = addd(temp, a);
| ^
| |
| long long int
defense101.cpp:57:36: error: too few arguments to function ‘bool greater_string(std::string, std::string)’
57 | sort(plus, plus+x, greater_string());
| ^
defense101.cpp:5:6: note: declared here
5