Count cap

This commit is contained in:
Anton Dolozin 2025-11-05 00:19:58 +01:00
parent 345d2a79e5
commit c7fca6e06e

View File

@ -95,6 +95,12 @@ int count_targets(struct station* station){
}
int count_capacity(struct station* station){
return 0;
int res = 0;
struct car* ptr = *station->tracks;
while (ptr){
res += ptr->capacity;
}
return res;
}