Problem oranges2
User bz
Submission Time 2024-06-12 21:32:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

oranges2.cpp: In function ‘int main()’:
oranges2.cpp:92:52: error: request for member ‘first’ in ‘edges[i].std::pair<long long int, long long int>::second’, which is of non-class type ‘long long int’
92 | for (int i=0; i<e; i++) cin >> edges[i].second.first >> edges[i].second.second >> edges[i].first;
| ^~~~~
oranges2.cpp:92:77: error: request for member ‘second’ in ‘edges[i].std::pair<long long int, long long int>::second’, which is of non-class type ‘long long int’
92 | for (int i=0; i<e; i++) cin >> edges[i].second.first >> edges[i].second.second >> edges[i].first;
| ^~~~~~
oranges2.cpp:97:52: error: request for member ‘first’ in ‘edges[i].std::pair<long long int, long long int>::second’, which is of non-class type ‘long long int’
97 | ll