Borderou de evaluare (job #2963027)

Utilizator hungntnktpHungntnktp hungntnktp Data 10 ianuarie 2023 03:07:15
Problema Sumtree Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:69:1: error: expected ',' or ';' before 'typedef' 69 | typedef long long ll; | ^~~~~~~ main.cpp:77:1: error: 'll' does not name a type; did you mean 'ld'? 77 | ll Rand(ll l, ll r) {return l + rd() % (r - l + 1);} | ^~ | ld main.cpp:81:7: error: 'll' does not name a type; did you mean 'ld'? 81 | const ll inf = 1e18 + 7; | ^~ | ld main.cpp:140:5: error: 'll' does not name a type; did you mean 'ld'? 140 | ll ans = 0; | ^~ | ld main.cpp:141:21: error: 'll' has not been declared 141 | void dfs(int u, ll sum, int r, int p = -1) | ^~ main.cpp: In function 'void sub1::dfs(int, int, int, int)': main.cpp:143:46: error: 'ans' was not declared in this scope; did you mean 'abs'? 143 | if (u != r && __gcd(a[u], a[r]) > 1) ans += sum; | ^~~ | abs main.cpp: In function 'void sub1::solve()': main.cpp:152:9: error: 'ans' was not declared in this scope; did you mean 'abs'? 152 | ans = 0; | ^~~ | abs main.cpp: At global scope: main.cpp:165:5: error: 'll' does not name a type; did you mean 'ld'? 165 | ll f[N], out[N], sz[N]; | ^~ | ld main.cpp: In function 'void sub2::dfs(int, int)': main.cpp:168:9: error: 'f' was not declared in this scope 168 | f[u] = 1; | ^ main.cpp:169:9: error: 'sz' was not declared in this scope; did you mean 'se'? 169 | sz[u] = 1; | ^~ | se main.cpp: In function 'void sub2::rdfs(int, int)': main.cpp:183:13: error: 'out' was not declared in this scope; did you mean 'gout'? 183 | out[v] = out[u] + (f[u] - (f[v] + sz[v])) + (sz[u] - sz[v]) + (n - sz[u]); | ^~~ | gout main.cpp:183:32: error: 'f' was not declared in this scope 183 | out[v] = out[u] + (f[u] - (f[v] + sz[v])) + (sz[u] - sz[v]) + (n - sz[u]); | ^ main.cpp:183:47: error: 'sz' was not declared in this scope; did you mean 'se'? Non zero exit status: 1

Ceva nu functioneaza?