main.cpp:29:18: error: reference to 'size' is ambiguous
29 | long long* dists[size];
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from main.cpp:3:
/usr/include/c++/9/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
252 | size(const _Tp (&/*__array*/)[_Nm]) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
242 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
main.cpp:23:11: note: 'const int size'
23 | const int size = 1000 * 1000;
| ^~~~
main.cpp:30:9: error: reference to 'size' is ambiguous
30 | int len[size];
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from main.cpp:3:
/usr/include/c++/9/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
252 | size(const _Tp (&/*__array*/)[_Nm]) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
242 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
main.cpp:23:11: note: 'const int size'
23 | const int size = 1000 * 1000;
| ^~~~
main.cpp:31:40: error: reference to 'size' is ambiguous
31 | vector <pair <int, long long> > vertex[size];
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from main.cpp:3:
/usr/include/c++/9/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
252 | size(const _Tp (&/*__array*/)[_Nm]) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
242 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
main.cpp:23:11: note: 'const int size'
23 | const int size = 1000 * 1000;
| ^~~~
main.cpp: In function 'int main()':
main.cpp:46:13: error: 'vertex' was not declared in this scope
46 | vertex[v - 1].pb(mp(u - 1, t));
| ^~~~~~
main.cpp:49:9: error: 'len' was not declared in this scope
49 | len[0] = 1;
| ^~~
main.cpp:50:9: error: 'dists' was not declared in this scope
50 | dists[0] = new long long[1];
| ^~~~~
main.cpp:54:39: error: 'vertex' was not declared in this scope
54 | for (int j = 0; j < (int) vertex[i].size(); j++) {
| ^~~~~~
main.cpp:59:39: error: 'vertex' was not declared in this scope
59 | for (int j = 0; j < (int) vertex[i].size(); j++) {
| ^~~~~~
main.cpp:89:13: error: 'vertex' was not declared in this scope
89 | vertex[i].clear();
| ^~~~~~
main.cpp:37:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
37 | scanf("%d", &tc);
| ~~~~~^~~~~~~~~~~
main.cpp:40:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
40 | scanf("%d%d%d%lld", &n, &m, &q, &p);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:45:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
45 | scanf("%d%d%lld", &u, &v, &t);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:76:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
76 | scanf("%d%lld", &tg, &tlen);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~