QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#420752#6303. Inversionegypt_ioi2024_01Compile Error//C++231.4kb2024-05-24 21:41:512024-05-24 21:41:52

Details

answer.code: In function ‘std::vector<int> solve(int, int)’:
answer.code:19:9: error: declaration of ‘int l’ shadows a parameter
   19 |     int l = 0 , r= 0;
      |         ^
answer.code:10:23: note: ‘int l’ previously declared here
   10 | vector<int> solve(int l,int r){
      |                   ~~~~^
answer.code:19:17: error: declaration of ‘int r’ shadows a parameter
   19 |     int l = 0 , r= 0;
      |                 ^
answer.code:10:29: note: ‘int r’ previously declared here
   10 | vector<int> solve(int l,int r){
      |                         ~~~~^