mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-27 20:32:46 +08:00
feat(codes/cpp): revert the changes size_t
back to int
This commit is contained in:
@ -48,8 +48,8 @@ int main() {
|
||||
PrintUtil::printVector(list);
|
||||
|
||||
/* 通过索引遍历列表 */
|
||||
size_t count = 0;
|
||||
for (size_t i = 0; i < list.size(); i++) {
|
||||
int count = 0;
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
count++;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user