0_0_18531841_8724.cpp: In function 'int main()': 0_0_18531841_8724.cpp:17:28: error: 'sort' was not declared in this scope sort(king,king+n,cmop); ^ 0_0_18531841_8724.cpp:68:13: error: expected '}' at end of input return 0; ^