Problem | winter |
---|---|
User | justin271828 |
Submission Time | 2024-12-21 11:49:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
winter.cpp: In function ‘int main()’:
winter.cpp:15:3: error: ‘l2’ was not declared in this scope
15 | l2 w;
| ^~
winter.cpp:16:20: error: ‘w’ was not declared in this scope
16 | cin >> a >> b >> w;
| ^
winter.cpp:19:22: error: no match for ‘operator=’ (operand types are ‘std::pair<long long int, std::pair<int, int> >’ and ‘<brace-enclosed initializer list>’)
19 | arr[i] = {w, {a, b}};
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from winter.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:378:7: note: candidate: ‘std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(typename std::conditional<std::__a