C2676: binary '<': 'const _Ty' does not define this operator or a conversion to a type acceptable to the predefined operator
问题 I keep getting this error for the code below. Upon reading this, I believed my error to be the it++ in my for loop, which I tried replacing with next(it, 1) but it didn't solve my problem. My question is, is the iterator the one giving me the issue here? #include <iostream> #include <vector> #include <stack> #include <set> using namespace std; struct Node { char vertex; set<char> adjacent; }; class Graph { public: Graph() {}; ~Graph() {}; void addEdge(char a, char b) { Node newV; set<char>