QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#420752#6303. Inversionegypt_ioi2024_01Compile Error//C++231.4kb2024-05-24 21:41:512024-05-24 21:41:52

詳細信息

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){
      |                         ~~~~^