# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1150097 | 2025-02-13 18:58:47 | urosk | 한자 끝말잇기 (JOI14_kanji) | C++20 | Compilation error | 0 ms | 0 KiB |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "Annalib.h"
#include "Anna.h"
#include "bits/stdc++.h"
#define fi first
#define sc second
#define pb push_back
#define llinf 1000000000000000LL
using namespace std;
using ll = unsigned long long;
using pll = pair<ll,ll>;
const ll maxn = 305;
ll n,m;
ll d[maxn][maxn];
ll d2[maxn][maxn];
ll b[2][6];
void Anna(int N, int M, int A[], int B[], long long C[], int Q, int S[], int T[], int K, int U[]) {
n = N,m = M;
for(ll i = 1;i<=n;i++) {
for(ll j = 1;j<=n;j++) d[i][j] = d2[i][j] = llinf;
}
for(ll i = 1;i<=n;i++) d[i][i] = d2[i][i] = 0;
for(ll i = 1;i<=m;i++) {
ll x = A[i-1]+1,y = B[i-1]+1;
d[x][y] = d[y][x] = C[i-1];
bool oke = 1;
for(ll j = 0;j<K;j++) if(U[j]==i-1) oke =0;
if(oke) {
d2[x][y] = d2[y][x] = C[i-1];
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Compilation message (stderr)
# 2번째 컴파일 단계 Bruno.cpp:10:7: error: expected nested-name-specifier before 'unsigned' 10 | using unsigned ll = long long; | ^~~~~~~~ Bruno.cpp:11:18: error: 'll' was not declared in this scope; did you mean 'all'? 11 | using pll = pair<ll,ll>; | ^~ | all Bruno.cpp:11:21: error: 'll' was not declared in this scope; did you mean 'all'? 11 | using pll = pair<ll,ll>; | ^~ | all Bruno.cpp:11:23: error: template argument 1 is invalid 11 | using pll = pair<ll,ll>; | ^ Bruno.cpp:11:23: error: template argument 2 is invalid Bruno.cpp:13:1: error: 'll' does not name a type; did you mean 'all'? 13 | ll n,m; | ^~ | all Bruno.cpp:14:7: error: 'll' does not name a type; did you mean 'all'? 14 | const ll maxn = 305; | ^~ | all Bruno.cpp:15:1: error: 'll' does not name a type; did you mean 'all'? 15 | ll d[maxn][maxn]; | ^~ | all Bruno.cpp:16:10: error: 'maxn' was not declared in this scope 16 | int last[maxn][maxn]; | ^~~~ Bruno.cpp:16:16: error: 'maxn' was not declared in this scope 16 | int last[maxn][maxn]; | ^~~~ Bruno.cpp:17:1: error: 'll' does not name a type; did you mean 'all'? 17 | ll b[2][6]; | ^~ | all Bruno.cpp: In function 'void Bruno(int, int, int*, int*, long long int*, int, int*, int*, int, int*, int, int*)': Bruno.cpp:21:5: error: 'n' was not declared in this scope 21 | n = N,m = M; | ^ Bruno.cpp:21:11: error: 'm' was not declared in this scope 21 | n = N,m = M; | ^ Bruno.cpp:22:9: error: 'll' was not declared in this scope; did you mean 'all'? 22 | for(ll i = 1;i<=n;i++) { | ^~ | all Bruno.cpp:22:18: error: 'i' was not declared in this scope 22 | for(ll i = 1;i<=n;i++) { | ^ Bruno.cpp:23:15: error: expected ';' before 'j' 23 | for(ll j = 1;j<=n;j++) d[i][j] = llinf; | ^~ | ; Bruno.cpp:23:22: error: 'j' was not declared in this scope 23 | for(ll j = 1;j<=n;j++) d[i][j] = llinf; | ^ Bruno.cpp:23:32: error: 'd' was not declared in this scope 23 | for(ll j = 1;j<=n;j++) d[i][j] = llinf; | ^ Bruno.cpp:25:9: error: 'll' was not declared in this scope; did you mean 'all'? 25 | for(ll i = 1;i<=n;i++) d[i][i] = 0; | ^~ | all Bruno.cpp:25:18: error: 'i' was not declared in this scope 25 | for(ll i = 1;i<=n;i++) d[i][i] = 0; | ^ Bruno.cpp:25:28: error: 'd' was not declared in this scope 25 | for(ll i = 1;i<=n;i++) d[i][i] = 0; | ^ Bruno.cpp:26:9: error: 'll' was not declared in this scope; did you mean 'all'? 26 | for(ll i = 1;i<=m;i++) { | ^~ | all Bruno.cpp:26:18: error: 'i' was not declared in this scope 26 | for(ll i = 1;i<=m;i++) { | ^ Bruno.cpp:28:15: error: expected ';' before 'j' 28 | for(ll j = 0;j<K;j++) if(U[j]==i-1) oke =0; | ^~ | ; Bruno.cpp:28:22: error: 'j' was not declared in this scope 28 | for(ll j = 0;j<K;j++) if(U[j]==i-1) oke =0; | ^ Bruno.cpp:30:11: error: expected ';' before 'x' 30 | ll x = A[i-1]+1,y = B[i-1]+1; | ^~ | ; Bruno.cpp:31:9: error: 'd' was not declared in this scope 31 | d[x][y] = d[y][x] = C[i-1]; | ^ Bruno.cpp:31:11: error: 'x' was not declared in this scope 31 | d[x][y] = d[y][x] = C[i-1]; | ^ Bruno.cpp:31:14: error: 'y' was not declared in this scope 31 | d[x][y] = d[y][x] = C[i-1]; | ^ Bruno.cpp:32:9: error: 'last' was not declared in this scope; did you mean 'std::chrono::last'? 32 | last[x][y] = last[y][x] = i-1; | ^~~~ | std::chrono::last In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:101, from Bruno.cpp:3: /usr/include/c++/11/chrono:1276:32: note: 'std::chrono::last' declared here 1276 | inline constexpr last_spec last{}; | ^~~~ Bruno.cpp:35:9: error: 'll' was not declared in this scope; did you mean 'all'? 35 | for(ll k = 1;k<=n;k++) { | ^~ | all Bruno.cpp:35:18: error: 'k' was not declared in this scope 35 | for(ll k = 1;k<=n;k++) { | ^ Bruno.cpp:36:15: error: expected ';' before 'i' 36 | for(ll i = 1;i<=n;i++) { | ^~ | ; Bruno.cpp:36:22: error: 'i' was not declared in this scope 36 | for(ll i = 1;i<=n;i++) { | ^ Bruno.cpp:37:19: error: expected ';' before 'j' 37 | for(ll j = 1;j<=n;j++) { | ^~ | ; Bruno.cpp:37:26: error: 'j' was not declared in this scope 37 | for(ll j = 1;j<=n;j++) { | ^ Bruno.cpp:38:20: error: 'd' was not declared in this scope 38 | if(d[i][k]+d[k][j]<d[i][j]) { | ^ Bruno.cpp:39:21: error: 'last' was not declared in this scope; did you mean 'std::chrono::last'? 39 | last[i][j] = last[k][j]; | ^~~~ | std::chrono::last In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:101, from Bruno.cpp:3: /usr/include/c++/11/chrono:1276:32: note: 'std::chrono::last' declared here 1276 | inline constexpr last_spec last{}; | ^~~~ Bruno.cpp:45:5: error: 'll' was not declared in this scope; did you mean 'all'? 45 | ll c = -1; | ^~ | all Bruno.cpp:46:14: error: template argument 2 is invalid 46 | vector<ll> w; | ^ Bruno.cpp:47:14: error: 'c' was not declared in this scope 47 | if(K==1) c = A[U[0]]; | ^ Bruno.cpp:49:18: error: template argument 3 is invalid 49 | map<ll,ll> mp; | ^ Bruno.cpp:49:18: error: template argument 4 is invalid Bruno.cpp:50:15: error: expected ';' before 'i' 50 | for(ll i = 0;i<K;i++) { | ^~ | ; Bruno.cpp:50:22: error: 'i' was not declared in this scope 50 | for(ll i = 0;i<K;i++) { | ^ Bruno.cpp:54:23: error: 'begin' was not declared in this scope 54 | for(auto it : mp) { | ^~ Bruno.cpp:54:23: note: suggested alternatives: In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95, from Bruno.cpp:3: /usr/include/c++/11/valarray:1228:5: note: 'std::begin' 1228 | begin(const valarray<_Tp>& __va) noexcept | ^~~~~ In file included from /usr/include/c++/11/string_view:48, from /usr/include/c++/11/bits/basic_string.h:48, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from Bruno.cpp:3: /usr/include/c++/11/bits/ranges_base.h:561:44: note: 'std::ranges::__cust::begin' 561 | inline constexpr __cust_access::_Begin begin{}; | ^~~~~ In file included from /usr/include/c++/11/filesystem:46, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:129, from Bruno.cpp:3: /usr/include/c++/11/bits/fs_dir.h:549:3: note: 'std::filesystem::__cxx11::begin' 549 | begin(recursive_directory_iterator __iter) noexcept | ^~~~~ In file included from /usr/include/c++/11/bits/stl_iterator_base_types.h:71, from /usr/include/c++/11/bits/stl_algobase.h:65, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41, from Bruno.cpp:3: /usr/include/c++/11/bits/iterator_concepts.h:949:10: note: 'std::ranges::__cust_access::begin' 949 | void begin(const auto&) = delete; | ^~~~~ Bruno.cpp:54:23: error: 'end' was not declared in this scope 54 | for(auto it : mp) { | ^~ Bruno.cpp:54:23: note: suggested alternatives: In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95, from Bruno.cpp:3: /usr/include/c++/11/valarray:1255:5: note: 'std::end' 1255 | end(const valarray<_Tp>& __va) noexcept | ^~~ In file included from /usr/include/c++/11/string_view:48, from /usr/include/c++/11/bits/basic_string.h:48, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from Bruno.cpp:3: /usr/include/c++/11/bits/ranges_base.h:562:42: note: 'std::ranges::__cust::end' 562 | inline constexpr __cust_access::_End end{}; | ^~~ In file included from /usr/include/c++/11/filesystem:46, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:129, from Bruno.cpp:3: /usr/include/c++/11/bits/fs_dir.h:554:3: note: 'std::filesystem::__cxx11::end' 554 | end(recursive_directory_iterator) noexcept | ^~~ In file included from /usr/include/c++/11/string_view:48, from /usr/include/c++/11/bits/basic_string.h:48, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from Bruno.cpp:3: /usr/include/c++/11/bits/ranges_base.h:136:10: note: 'std::ranges::__cust_access::end' 136 | void end(const auto&) = delete; | ^~~ Bruno.cpp:55:25: error: 'c' was not declared in this scope 55 | if(it.sc>0) c = it.fi; | ^ Bruno.cpp:58:11: error: expected ';' before 'i' 58 | for(ll i = 0;i<K;i++) { | ^~ | ; Bruno.cpp:58:18: error: 'i' was not declared in this scope 58 | for(ll i = 0;i<K;i++) { | ^ Bruno.cpp:6:12: error: request for member 'push_back' in 'w', which is of non-class type 'int' 6 | #define pb push_back | ^~~~~~~~~ Bruno.cpp:59:11: note: in expansion of macro 'pb' 59 | w.pb(A[U[i]]^B[U[i]]^c+1); | ^~ Bruno.cpp:59:30: error: 'c' was not declared in this scope 59 | w.pb(A[U[i]]^B[U[i]]^c+1); | ^ Bruno.cpp:61:5: error: 'c' was not declared in this scope 61 | c++; | ^ Bruno.cpp:62:5: error: expected ';' before 'csz' 62 | ll csz = 0; | ^~~~ | ; Bruno.cpp:63:9: error: expected ';' before 'i' 63 | for(ll i = 0;i<=5;i++) { | ^~ | ; Bruno.cpp:63:16: error: 'i' was not declared in this scope 63 | for(ll i = 0;i<=5;i++) { | ^ Bruno.cpp:64:5: error: 'b' was not declared in this scope 64 | b[0][i] = b[1][i] = 0; | ^ Bruno.cpp:65:11: error: expected ';' before 'j' 65 | for(ll j = 0;j<=5;j++) { | ^~ | ; Bruno.cpp:65:18: error: 'j' was not declared in this scope 65 | for(ll j = 0;j<=5;j++) { | ^ Bruno.cpp:66:12: error: 'csz' was not declared in this scope 66 | if(X[csz++]) b[0][i]+=(1<<j); | ^~~ Bruno.cpp:68:11: error: expected ';' before 'j' 68 | for(ll j = 0;j<=5;j++) { | ^~ | ; Bruno.cpp:68:18: error: 'j' was not declared in this scope 68 | for(ll j = 0;j<=5;j++) { | ^ Bruno.cpp:69:12: error: 'csz' was not declared in this scope 69 | if(X[csz++]) b[1][i]+=(1<<j); | ^~~ Bruno.cpp:72:11: error: expected ';' before 'j' 72 | for(ll j = 0;j<Q;j++) { | ^~ | ; Bruno.cpp:72:18: error: 'j' was not declared in this scope 72 | for(ll j = 0;j<Q;j++) { | ^ Bruno.cpp:73:9: error: expected ';' before 'mask' 73 | ll mask = 63; | ^~~~~ | ; Bruno.cpp:74:13: error: expected ';' before 'bit' 74 | for(ll bit = 0;bit<=5;bit++) { | ^~~~ | ; Bruno.cpp:74:22: error: 'bit' was not declared in this scope 74 | for(ll bit = 0;bit<=5;bit++) { | ^~~ Bruno.cpp:76:11: error: 'mask' was not declared in this scope; did you mean 'std::filesystem::perms::mask'? 76 | mask&=b[1][bit]; | ^~~~ | std::filesystem::perms::mask In file included from /usr/include/c++/11/filesystem:44, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:129, from Bruno.cpp:3: /usr/include/c++/11/bits/fs_fwd.h:158:7: note: 'std::filesystem::perms::mask' declared here 158 | mask = 07777, | ^~~~ Bruno.cpp:76:17: error: 'b' was not declared in this scope 76 | mask&=b[1][bit]; | ^ Bruno.cpp:77:15: error: 'mask' was not declared in this scope; did you mean 'std::filesystem::perms::mask'? 77 | }else mask&=b[0][bit]; | ^~~~ | std::filesystem::perms::mask In file included from /usr/include/c++/11/filesystem:44, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:129, from Bruno.cpp:3: /usr/include/c++/11/bits/fs_fwd.h:158:7: note: 'std::filesystem::perms::mask' declared here 158 | mask = 07777, | ^~~~ Bruno.cpp:77:21: error: 'b' was not declared in this scope 77 | }else mask&=b[0][bit]; | ^ In file included from /usr/include/c++/11/cassert:44, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:33, from Bruno.cpp:3: Bruno.cpp:79:33: error: 'mask' was not declared in this scope; did you mean 'std::filesystem::perms::mask'? 79 | assert(__builtin_popcount(mask)<=2); | ^~~~ In file included from /usr/include/c++/11/filesystem:44, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:129, from Bruno.cpp:3: /usr/include/c++/11/bits/fs_fwd.h:158:7: note: 'std::filesystem::perms::mask' declared here 158 | mask = 07777, | ^~~~ Bruno.cpp:80:9: error: expected ';' before 'st' 80 | ll st = S[j]+1,en = T[j]+1; | ^~~ | ; Bruno.cpp:82:18: error: template argument 2 is invalid 82 | vector<ll> ans = {}; | ^ Bruno.cpp:83:15: error: 'st' was not declared in this scope; did you mean 'std'? 83 | while(st!=en){ | ^~ | std Bruno.cpp:83:19: error: 'en' was not declared in this scope; did you mean 'yn'? 83 | while(st!=en){ | ^~ | yn Bruno.cpp:84:24: error: request for member 'size' in 'ans', which is of non-class type 'int' 84 | if(ans.size()>1000){ | ^~~~ Bruno.cpp:6:12: error: request for member 'push_back' in 'ans', which is of non-class type 'int' 6 | #define pb push_back | ^~~~~~~~~ Bruno.cpp:87:17: note: in expansion of macro 'pb' 87 | ans.pb(last[st][en]); | ^~ Bruno.cpp:87:20: error: 'last' was not declared in this scope; did you mean 'std::chrono::last'? 87 | ans.pb(last[st][en]); | ^~~~ | std::chrono::last In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:101, from Bruno.cpp:3: /usr/include/c++/11/chrono:1276:32: note: 'std::chrono::last' declared here 1276 | inline constexpr last_spec last{}; | ^~~~ Bruno.cpp:88:15: error: expected ';' before 'id' 88 | ll id = last[st][en]; | ^~~ | ; Bruno.cpp:90:20: error: 'id' was not declared in this scope 90 | en = A[id]^B[id]^en; | ^~ Bruno.cpp:7:18: error: request for member 'begin' in 'ans', which is of non-class type 'int' 7 | #define all(a) a.begin(),a.end() | ^~~~~ Bruno.cpp:93:17: note: in expansion of macro 'all' 93 | reverse(all(ans)); | ^~~ Bruno.cpp:7:28: error: request for member 'end' in 'ans', which is of non-class type 'int' 7 | #define all(a) a.begin(),a.end() | ^~~ Bruno.cpp:93:17: note: in expansion of macro 'all' 93 | reverse(all(ans)); | ^~~ Bruno.cpp:94:15: error: expected ';' before 'x' 94 | for(ll x : ans) Answer(x); | ^~ | ; Bruno.cpp:95:7: error: expected primary-expression before '}' token 95 | }else if(__builtin_popcount(mask)==1){ | ^ Bruno.cpp:94:35: error: expected ';' before '}' token 94 | for(ll x : ans) Answer(x); | ^ | ; 95 | }else if(__builtin_popcount(mask)==1){ | ~ Bruno.cpp:95:7: error: expected primary-expression before '}' token 95 | }else if(__builtin_popcount(mask)==1){ | ^ Bruno.cpp:94:35: error: expected ')' before '}' token 94 | for(ll x : ans) Answer(x); | ~ ^ | ) 95 | }else if(__builtin_popcount(mask)==1){ | ~ Bruno.cpp:95:7: error: expected primary-expression before '}' token 95 | }else if(__builtin_popcount(mask)==1){ | ^ Bruno.cpp:96:11: error: expected ';' before 'e' 96 | ll e = -1; | ^~ | ; Bruno.cpp:97:11: error: expected ';' before 'g' 97 | ll g = c; | ^~ | ; Bruno.cpp:98:11: error: expected ';' before 'idi' 98 | ll idi = -1; | ^~~~ | ; Bruno.cpp:99:15: error: expected ';' before 'j' 99 | for(ll j = 0;j<=5;j++) if((1<<j)&mask) e = w[j],idi = U[j]; | ^~ | ; Bruno.cpp:99:48: error: 'e' was not declared in this scope; did you mean 'std::numbers::e'? 99 | for(ll j = 0;j<=5;j++) if((1<<j)&mask) e = w[j],idi = U[j]; | ^ | std::numbers::e In file included from /usr/include/c++/11/bits/max_size_type.h:37, from /usr/include/c++/11/bits/ranges_base.h:38, from /usr/include/c++/11/string_view:48, from /usr/include/c++/11/bits/basic_string.h:48, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from Bruno.cpp:3: /usr/include/c++/11/numbers:122:27: note: 'std::numbers::e' declared here 122 | inline constexpr double e = e_v<double>; | ^ Bruno.cpp:99:57: error: 'idi' was not declared in this scope 99 | for(ll j = 0;j<=5;j++) if((1<<j)&mask) e = w[j],idi = U[j]; | ^~~ Bruno.cpp:100:12: error: 'd' was not declared in this scope 100 | if(d[st][e]+d[g][en]>d[st][g]+d[e][en]) swap(e,g); | ^ Bruno.cpp:100:14: error: 'st' was not declared in this scope; did you mean 'std'? 100 | if(d[st][e]+d[g][en]>d[st][g]+d[e][en]) swap(e,g); | ^~ | std Bruno.cpp:100:18: error: 'e' was not declared in this scope; did you mean 'std::numbers::e'? 100 | if(d[st][e]+d[g][en]>d[st][g]+d[e][en]) swap(e,g); | ^ | std::numbers::e In file included from /usr/include/c++/11/bits/max_size_type.h:37, from /usr/include/c++/11/bits/ranges_base.h:38, from /usr/include/c++/11/string_view:48, from /usr/include/c++/11/bits/basic_string.h:48, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from Bruno.cpp:3: /usr/include/c++/11/numbers:122:27: note: 'std::numbers::e' declared here 122 | inline constexpr double e = e_v<double>; | ^ Bruno.cpp:100:23: error: 'g' was not declared in this scope 100 | if(d[st][e]+d[g][en]>d[st][g]+d[e][en]) swap(e,g); | ^ Bruno.cpp:100:26: error: 'en' was not declared in this scope; did you mean 'yn'? 100 | if(d[st][e]+d[g][en]>d[st][g]+d[e][en]) swap(e,g); | ^~ | yn Bruno.cpp:101:18: error: template argument 2 is invalid 101 | vector<ll> ans = {}; | ^ Bruno.cpp:103:15: error: 'st' was not declared in this scope; did you mean 'std'? 103 | while(st!=e){ | ^~ | std Bruno.cpp:103:19: error: 'e' was not declared in this scope; did you mean 'std::numbers::e'? 103 | while(st!=e){ | ^ | std::numbers::e In file included from /usr/include/c++/11/bits/max_size_type.h:37, from /usr/include/c++/11/bits/ranges_base.h:38, from /usr/include/c++/11/string_view:48, from /usr/include/c++/11/bits/basic_string.h:48, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from Bruno.cpp:3: /usr/include/c++/11/numbers:122:27: note: 'std::numbers::e' declared here 122 | inline constexpr double e = e_v<double>; | ^ Bruno.cpp:104:24: error: request for member 'size' in 'ans', which is of non-class type 'int' 104 | if(ans.size()>1000){ | ^~~~ Bruno.cpp:6:12: error: request for member 'push_back' in 'ans', which is of non-class type 'int' 6 | #define pb push_back | ^~~~~~~~~ Bruno.cpp:107:17: note: in expansion of macro 'pb' 107 | ans.pb(last[st][e]); | ^~ Bruno.cpp:107:20: error: 'last' was not declared in this scope; did you mean 'std::chrono::last'? 107 | ans.pb(last[st][e]); | ^~~~ | std::chrono::last In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:101, from Bruno.cpp:3: /usr/include/c++/11/chrono:1276:32: note: 'std::chrono::last' declared here 1276 | inline constexpr last_spec last{}; | ^~~~ Bruno.cpp:108:15: error: expected ';' before 'id' 108 | ll id = last[st][e]; | ^~~ | ; Bruno.cpp:110:19: error: 'id' was not declared in this scope 110 | e = A[id]^B[id]^e; | ^~ Bruno.cpp:7:18: error: request for member 'begin' in 'ans', which is of non-class type 'int' 7 | #define all(a) a.begin(),a.end() | ^~~~~ Bruno.cpp:113:17: note: in expansion of macro 'all' 113 | reverse(all(ans)); | ^~~ Bruno.cpp:7:28: error: request for member 'end' in 'ans', which is of non-class type 'int' 7 | #define all(a) a.begin(),a.end() | ^~~ Bruno.cpp:113:17: note: in expansion of macro 'all' 113 | reverse(all(ans)); | ^~~ Bruno.cpp:114:18: error: template argument 2 is invalid 114 | vector<ll> ans2 = {}; | ^ Bruno.cpp:115:15: error: 'g' was not declared in this scope 115 | while(g!=en){ | ^ Bruno.cpp:115:18: error: 'en' was not declared in this scope; did you mean 'yn'? 115 | while(g!=en){ | ^~ | yn Bruno.cpp:6:12: error: request for member 'push_back' in 'ans2', which is of non-class type 'int' 6 | #define pb push_back | ^~~~~~~~~ Bruno.cpp:116:18: note: in expansion of macro 'pb' 116 | ans2.pb(last[g][en]); | ^~ Bruno.cpp:116:21: error: 'last' was not declared in this scope; did you mean 'std::chrono::last'? 116 | ans2.pb(last[g][en]); | ^~~~ | std::chrono::last In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:101, from Bruno.cpp:3: /usr/include/c++/11/chrono:1276:32: note: 'std::chrono::last' declared here 1276 | inline constexpr last_spec last{}; | ^~~~ Bruno.cpp:117:17: error: request for member 'size' in 'ans2', which is of non-class type 'int' 117 | if(ans2.size()>1000){ | ^~~~ Bruno.cpp:120:15: error: expected ';' before 'id' 120 | ll id = last[g][en]; | ^~~ | ; Bruno.cpp:122:20: error: 'id' was not declared in this scope 122 | en = A[id]^B[id]^en; | ^~ Bruno.cpp:7:18: error: request for member 'begin' in 'ans2', which is of non-class type 'int' 7 | #define all(a) a.begin(),a.end() | ^~~~~ Bruno.cpp:125:17: note: in expansion of macro 'all' 125 | reverse(all(ans2)); | ^~~ Bruno.cpp:7:28: error: request for member 'end' in 'ans2', which is of non-class type 'int' 7 | #define all(a) a.begin(),a.end() | ^~~ Bruno.cpp:125:17: note: in expansion of macro 'all' 125 | reverse(all(ans2)); | ^~~ Bruno.cpp:128:15: error: expected ';' before 'x' 128 | for(ll x : ans) Answer(x); | ^~ | ; Bruno.cpp:129:16: error: 'idi' was not declared in this scope 129 | Answer(idi); | ^~~ Bruno.cpp:130:9: error: expected primary-expression before 'for' 130 | for(ll x : ans2) Answer(x); | ^~~ Bruno.cpp:129:21: error: expected ')' before 'for' 129 | Answer(idi); | ^ | ) 130 | for(ll x : ans2) Answer(x); | ~~~ Bruno.cpp:128:12: note: to match this '(' 128 | for(ll x : ans) Answer(x); | ^ Bruno.cpp:130:15: error: expected ';' before 'x' 130 | for(ll x : ans2) Answer(x); | ^~ | ; Bruno.cpp:131:7: error: expected primary-expression before '}' token 131 | }else{ | ^ Bruno.cpp:130:36: error: expected ';' before '}' token 130 | for(ll x : ans2) Answer(x); | ^ | ; 131 | }else{ | ~ Bruno.cpp:131:7: error: expected primary-expression before '}' token 131 | }else{ | ^ Bruno.cpp:130:36: error: expected ')' before '}' token 130 | for(ll x : ans2) Answer(x); | ~ ^ | ) 131 | }else{ | ~ Bruno.cpp:131:7: error: expected primary-expression before '}' token 131 | }else{ | ^ Bruno.cpp:132:18: error: template argument 2 is invalid 132 | vector<ll> ve; | ^ Bruno.cpp:133:18: error: template argument 2 is invalid 133 | vector<ll> ee; | ^ Bruno.cpp:134:11: error: expected ';' before 'g' 134 | ll g = c; | ^~ | ; Bruno.cpp:135:15: error: expected ';' before 'j' 135 | for(ll j = 0;j<=5;j++) if((1<<j)&mask) ve.pb(w[j]),ee.pb(j); | ^~ | ; Bruno.cpp:6:12: error: request for member 'push_back' in 've', which is of non-class type 'int' 6 | #define pb push_back | ^~~~~~~~~ Bruno.cpp:135:51: note: in expansion of macro 'pb' 135 | for(ll j = 0;j<=5;j++) if((1<<j)&mask) ve.pb(w[j]),ee.pb(j); | ^~ Bruno.cpp:6:12: error: request for member 'push_back' in 'ee', which is of non-class type 'int' 6 | #define pb push_back | ^~~~~~~~~ Bruno.cpp:135:63: note: in expansion of macro 'pb' 135 | for(ll j = 0;j<=5;j++) if((1<<j)&mask) ve.pb(w[j]),ee.pb(j); | ^~ Bruno.cpp:136:12: error: 'd' was not declared in this scope 136 | if(d[st][ve[0]]+d[ve[1]][en]>d[st][ve[1]]+d[ve[0]][en]) swap(ve[0],ve[1]),swap(ee[0],ee[1]); | ^ Bruno.cpp:136:14: error: 'st' was not declared in this scope; did you mean 'std'? 136 | if(d[st][ve[0]]+d[ve[1]][en]>d[st][ve[1]]+d[ve[0]][en]) swap(ve[0],ve[1]),swap(ee[0],ee[1]); | ^~ | std Bruno.cpp:136:20: error: invalid types 'int[int]' for array subscript 136 | if(d[st][ve[0]]+d[ve[1]][en]>d[st][ve[1]]+d[ve[0]][en]) swap(ve[0],ve[1]),swap(ee[0],ee[1]); | ^ Bruno.cpp:136:29: error: invalid types 'int[int]' for array subscript 136 | if(d[st][ve[0]]+d[ve[1]][en]>d[st][ve[1]]+d[ve[0]][en]) swap(ve[0],ve[1]),swap(ee[0],ee[1]); | ^ Bruno.cpp:136:34: error: 'en' was not declared in this scope; did you mean 'ee'? 136 | if(d[st][ve[0]]+d[ve[1]][en]>d[st][ve[1]]+d[ve[0]][en]) swap(ve[0],ve[1]),swap(ee[0],ee[1]); | ^~ | ee Bruno.cpp:136:46: error: invalid types 'int[int]' for array subscript 136 | if(d[st][ve[0]]+d[ve[1]][en]>d[st][ve[1]]+d[ve[0]][en]) swap(ve[0],ve[1]),swap(ee[0],ee[1]); | ^ Bruno.cpp:136:55: error: invalid types 'int[int]' for array subscript 136 | if(d[st][ve[0]]+d[ve[1]][en]>d[st][ve[1]]+d[ve[0]][en]) swap(ve[0],ve[1]),swap(ee[0],ee[1]); | ^ Bruno.cpp:136:72: error: invalid types 'int[int]' for array subscript 136 | if(d[st][ve[0]]+d[ve[1]][en]>d[st][ve[1]]+d[ve[0]][en]) swap(ve[0],ve[1]),swap(ee[0],ee[1]); | ^ Bruno.cpp:136:78: error: invalid types 'int[int]' for array subscript 136 | if(d[st][ve[0]]+d[ve[1]][en]>d[st][ve[1]]+d[ve[0]][en]) swap(ve[0],ve[1]),swap(ee[0],ee[1]); | ^ Bruno.cpp:136:90: error: invalid types 'int[int]' for array subscript 136 | if(d[st][ve[0]]+d[ve[1]][en]>d[st][ve[1]]+d[ve[0]][en]) swap(ve[0],ve[1]),swap(ee[0],ee[1]); | ^ Bruno.cpp:136:96: error: invalid types 'int[int]' for array subscript 136 | if(d[st][ve[0]]+d[ve[1]][en]>d[st][ve[1]]+d[ve[0]][en]) swap(ve[0],ve[1]),swap(ee[0],ee[1]); | ^ Bruno.cpp:137:18: error: template argument 2 is invalid 137 | vector<ll> ans = {}; | ^ Bruno.cpp:138:18: error: template argument 2 is invalid 138 | vector<ll> ans2 = {}; | ^ Bruno.cpp:139:11: error: expected ';' before 'e' 139 | ll e = ve[0]; | ^~ | ; Bruno.cpp:140:15: error: 'st' was not declared in this scope; did you mean 'std'? 140 | while(st!=e){ | ^~ | std Bruno.cpp:140:19: error: 'e' was not declared in this scope; did you mean 'std::numbers::e'? 140 | while(st!=e){ | ^ | std::numbers::e In file included from /usr/include/c++/11/bits/max_size_type.h:37, from /usr/include/c++/11/bits/ranges_base.h:38, from /usr/include/c++/11/string_view:48, from /usr/include/c++/11/bits/basic_string.h:48, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from Bruno.cpp:3: /usr/include/c++/11/numbers:122:27: note: 'std::numbers::e' declared here 122 | inline constexpr double e = e_v<double>; | ^ Bruno.cpp:141:24: error: request for member 'size' in 'ans', which is of non-class type 'int' 141 | if(ans.size()>1000){ | ^~~~ Bruno.cpp:6:12: error: request for member 'push_back' in 'ans', which is of non-class type 'int' 6 | #define pb push_back | ^~~~~~~~~ Bruno.cpp:144:17: note: in expansion of macro 'pb' 144 | ans.pb(last[st][e]); | ^~ Bruno.cpp:144:20: error: 'last' was not declared in this scope; did you mean 'std::chrono::last'? 144 | ans.pb(last[st][e]); | ^~~~ | std::chrono::last In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:101, from Bruno.cpp:3: /usr/include/c++/11/chrono:1276:32: note: 'std::chrono::last' declared here 1276 | inline constexpr last_spec last{}; | ^~~~ Bruno.cpp:145:15: error: expected ';' before 'id' 145 | ll id = last[st][e]; | ^~~ | ; Bruno.cpp:147:19: error: 'id' was not declared in this scope 147 | e = A[id]^B[id]^e; | ^~ Bruno.cpp:7:18: error: request for member 'begin' in 'ans', which is of non-class type 'int' 7 | #define all(a) a.begin(),a.end() | ^~~~~ Bruno.cpp:150:17: note: in expansion of macro 'all' 150 | reverse(all(ans)); | ^~~ Bruno.cpp:7:28: error: request for member 'end' in 'ans', which is of non-class type 'int' 7 | #define all(a) a.begin(),a.end() | ^~~ Bruno.cpp:150:17: note: in expansion of macro 'all' 150 | reverse(all(ans)); | ^~~ Bruno.cpp:151:9: error: 'g' was not declared in this scope 151 | g = ve[1]; | ^ Bruno.cpp:151:15: error: invalid types 'int[int]' for array subscript 151 | g = ve[1]; | ^ Bruno.cpp:152:18: error: 'en' was not declared in this scope; did you mean 'ee'? 152 | while(g!=en){ | ^~ | ee Bruno.cpp:153:21: error: request for member 'size' in 'ans2', which is of non-class type 'int' 153 | if(ans2.size()>1000){ | ^~~~ Bruno.cpp:6:12: error: request for member 'push_back' in 'ans2', which is of non-class type 'int' 6 | #define pb push_back | ^~~~~~~~~ Bruno.cpp:156:18: note: in expansion of macro 'pb' 156 | ans2.pb(last[g][en]); | ^~ Bruno.cpp:156:21: error: 'last' was not declared in this scope; did you mean 'std::chrono::last'? 156 | ans2.pb(last[g][en]); | ^~~~ | std::chrono::last In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:101, from Bruno.cpp:3: /usr/include/c++/11/chrono:1276:32: note: 'std::chrono::last' declared here 1276 | inline constexpr last_spec last{}; | ^~~~ Bruno.cpp:157:15: error: expected ';' before 'id' 157 | ll id = last[g][en]; | ^~~ | ; Bruno.cpp:159:20: error: 'id' was not declared in this scope 159 | en = A[id]^B[id]^en; | ^~ Bruno.cpp:7:18: error: request for member 'begin' in 'ans2', which is of non-class type 'int' 7 | #define all(a) a.begin(),a.end() | ^~~~~ Bruno.cpp:162:17: note: in expansion of macro 'all' 162 | reverse(all(ans2)); | ^~~ Bruno.cpp:7:28: error: request for member 'end' in 'ans2', which is of non-class type 'int' 7 | #define all(a) a.begin(),a.end() | ^~~ Bruno.cpp:162:17: note: in expansion of macro 'all' 162 | reverse(all(ans2)); | ^~~ Bruno.cpp:163:15: error: expected ';' before 'x' 163 | for(ll x : ans) Answer(x); | ^~ | ; Bruno.cpp:164:18: error: invalid types 'int[int]' for array subscript 164 | Answer(ee[0]); | ^ Bruno.cpp:165:18: error: invalid types 'int[int]' for array subscript 165 | Answer(ee[1]); | ^ Bruno.cpp:165:22: error: expected ')' before ';' token 165 | Answer(ee[1]); | ^ | ) Bruno.cpp:163:12: note: to match this '(' 163 | for(ll x : ans) Answer(x); | ^ Bruno.cpp:166:15: error: expected ';' before 'x' 166 | for(ll x : ans2) Answer(x); | ^~ | ; Bruno.cpp:167:7: error: expected primary-expression before '}' token 167 | } | ^ Bruno.cpp:166:36: error: expected ';' before '}' token 166 | for(ll x : ans2) Answer(x); | ^ | ; 167 | } | ~ Bruno.cpp:167:7: error: expected primary-expression before '}' token 167 | } | ^ Bruno.cpp:166:36: error: expected ')' before '}' token 166 | for(ll x : ans2) Answer(x); | ~ ^ | ) 167 | } | ~ Bruno.cpp:167:7: error: expected primary-expression before '}' token 167 | } | ^