Problem | candles |
---|---|
User | impotato |
Submission Time | 2023-11-30 22:21:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
candles.cpp: In function ‘int main()’:
candles.cpp:18:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
18 | sort(x, x + n);
| ^~~~
| qsort
candles.cpp:20:23: error: no matching function for call to ‘abs(std::string&)’
20 | if (x[i] == abs(c[i])) {
| ^
In file included from /usr/include/c++/9/cstdlib:75,
from /usr/include/c++/9/ext/string_conversions.h:41,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from candles.cpp:1:
/usr/include/stdlib.h:840:12: note: candidate: ‘int abs(in