QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#484752#7700. Split DecisionsHuangHanShengCompile Error//C++171.1kb2024-07-19 22:19:352024-07-19 22:19:35

Details

answer.code: In function ‘int main()’:
answer.code:16:13: error: request for member ‘begin’ in ‘s’, which is of non-class type ‘std::string [2000]’ {aka ‘std::__cxx11::basic_string<char> [2000]’}
   16 |      sort(s.begin(),s.begin()+1+n);
      |             ^~~~~
answer.code:16:23: error: request for member ‘begin’ in ‘s’, which is of non-class type ‘std::string [2000]’ {aka ‘std::__cxx11::basic_string<char> [2000]’}
   16 |      sort(s.begin(),s.begin()+1+n);
      |                       ^~~~~