closing.cpp: In function 'int Sub1()':
closing.cpp:12:19: error: 'll' was not declared in this scope
12 | vector<vector<ll> >dist(2,vector<ll>(n+1,-1));
| ^~
closing.cpp:12:21: error: template argument 1 is invalid
12 | vector<vector<ll> >dist(2,vector<ll>(n+1,-1));
| ^
closing.cpp:12:21: error: template argument 2 is invalid
closing.cpp:12:23: error: template argument 1 is invalid
12 | vector<vector<ll> >dist(2,vector<ll>(n+1,-1));
| ^
closing.cpp:12:23: error: template argument 2 is invalid
closing.cpp:12:40: error: template argument 2 is invalid
12 | vector<vector<ll> >dist(2,vector<ll>(n+1,-1));
| ^
closing.cpp:12:49: error: expression list treated as compound expression in initializer [-fpermissive]
12 | vector<vector<ll> >dist(2,vector<ll>(n+1,-1));
| ^
closing.cpp:20:13: error: invalid types 'int[int]' for array subscript
20 | dist[i][source[i]]=0;
| ^
closing.cpp:29:24: error: invalid types 'int[int]' for array subscript
29 | if(dist[i][node]==-1)
| ^
closing.cpp:31:25: error: invalid types 'int[int]' for array subscript
31 | dist[i][node]=dist[i][x]+value;
| ^
closing.cpp:31:39: error: invalid types 'int[int]' for array subscript
31 | dist[i][node]=dist[i][x]+value;
| ^
closing.cpp:37:14: error: template argument 2 is invalid
37 | vector<ll>que;
| ^
closing.cpp:40:13: error: request for member 'push_back' in 'que', which is of non-class type 'int'
40 | que.push_back(dist[0][i]);
| ^~~~~~~~~
closing.cpp:40:27: error: invalid types 'int[int]' for array subscript
40 | que.push_back(dist[0][i]);
| ^
closing.cpp:41:13: error: request for member 'push_back' in 'que', which is of non-class type 'int'
41 | que.push_back(dist[1][i]);
| ^~~~~~~~~
closing.cpp:41:27: error: invalid types 'int[int]' for array subscript
41 | que.push_back(dist[1][i]);
| ^
closing.cpp:43:14: error: request for member 'begin' in 'que', which is of non-class type 'int'
43 | sort(que.begin(),que.end());
| ^~~~~
closing.cpp:43:26: error: request for member 'end' in 'que', which is of non-class type 'int'
43 | sort(que.begin(),que.end());
| ^~~
closing.cpp:44:7: error: expected ';' before 'res'
44 | ll res=k;
| ^~~~
| ;
closing.cpp:46:19: error: 'begin' was not declared in this scope
46 | for(int value:que)
| ^~~
closing.cpp:46:19: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from closing.cpp:2:
/usr/include/c++/10/valarray:1224:5: note: 'std::begin'
1224 | begin(const valarray<_Tp>& __va)
| ^~~~~
In file included from /usr/include/c++/10/filesystem:46,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from closing.cpp:2:
/usr/include/c++/10/bits/fs_dir.h:549:3: note: 'std::filesystem::__cxx11::begin'
549 | begin(recursive_directory_iterator __iter) noexcept
| ^~~~~
closing.cpp:46:19: error: 'end' was not declared in this scope
46 | for(int value:que)
| ^~~
closing.cpp:46:19: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from closing.cpp:2:
/usr/include/c++/10/valarray:1244:5: note: 'std::end'
1244 | end(const valarray<_Tp>& __va)
| ^~~
In file included from /usr/include/c++/10/filesystem:46,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from closing.cpp:2:
/usr/include/c++/10/bits/fs_dir.h:554:3: note: 'std::filesystem::__cxx11::end'
554 | end(recursive_directory_iterator) noexcept
| ^~~
closing.cpp:48:12: error: 'res' was not declared in this scope
48 | if(res<value)break;
| ^~~
closing.cpp:49:9: error: 'res' was not declared in this scope
49 | res-=value;
| ^~~