F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_35109808_24281.cpp: In function 'std::vector<int> update(std::string)':
0_0_35109808_24281.cpp:21:14: error: declaration of 'std::vector<int> S' shadows a parameter
  vector<int> S;
              ^
0_0_35109808_24281.cpp:22:35: error: 'newS' was not declared in this scope
  for(int i = S.size()-1;i>=0;--i) newS.pb(A[i]-'0');
                                   ^
0_0_35109808_24281.cpp:23:8: error: 'newS' was not declared in this scope
  while(newS.size() && newS[newS.size()-1] == 0) newS.erase(--newS.end());
        ^
0_0_35109808_24281.cpp:24:9: error: 'newS' was not declared in this scope
  return newS;
         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 09:43:31, Gzip enabled