Skip to content

Commit 5980dcb

Browse files
authored
Solved compilation error
Renamed the variable "st" to loop over at line 21.
1 parent 8e19ca4 commit 5980dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/953-Alien-Dictionary.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Solution {
1818

1919
// indegree make all char 0
2020
for(auto word : words){
21-
for(auto c : st){
21+
for(auto c : word){
2222
indegree[c]=0;
2323
}
2424
}

0 commit comments

Comments
 (0)