Problem hipercijevi
User yc
Submission Time 2026-02-12 08:59:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hipercijevi.cpp: In function ‘int main()’:
hipercijevi.cpp:22:33: error: no match for ‘operator[]’ (operand types are ‘std::set<long long int>’ and ‘long long int’)
22 | if (j1!=j) n1[x1[j]].insert(x1[j1]);
| ^
hipercijevi.cpp:22:47: error: no match for ‘operator[]’ (operand types are ‘std::set<long long int>’ and ‘long long int’)
22 | if (j1!=j) n1[x1[j]].insert(x1[j1]);
| ^
hipercijevi.cpp:36:41: error: ‘i’ was not declared in this scope; did you mean ‘it’?
36 | for (set<int>::iterator it = n1[i].begin();it!=n1.end();it++){
| ^
| it
hipercijevi.cpp:36:54: error: no match for ‘operator!=’ (operand types are ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’} an