Borderou de evaluare (job #2407636)

Utilizator usureluflorianUsurelu Florian-Robert usureluflorian Data 17 aprilie 2019 09:05:22
Problema A+B Status done
Runda Infoarena's champions Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:1: error: 'ifstream' does not name a type ifstream f ("retea2.in"); ^~~~~~~~ main.cpp:3:1: error: 'ofstream' does not name a type ofstream g ("retea2.out"); ^~~~~~~~ main.cpp: In function 'long double dist(usu, usu)': main.cpp:18:33: error: expected unqualified-id before '-' token return sqrt((t1.x-t2.x)*(t1.-t2.x)+(t1.y-t2.y)*(t1.y-t2.y)); ^ main.cpp: In function 'int GR(int)': main.cpp:22:8: error: 'gr' was not declared in this scope if(gr[nod]==nod) return nod; ^~ main.cpp:23:5: error: 'gr' was not declared in this scope gr[nod]=GR(gr[nod]); ^~ main.cpp: In function 'void solve()': main.cpp:28:23: error: 'k' was not declared in this scope while(!q.empty()&&k<n) ^ main.cpp:28:25: error: 'n' was not declared in this scope while(!q.empty()&&k<n) ^ main.cpp:30:9: error: 'd' was not declared in this scope d=q.top().d; ^ main.cpp:33:12: error: 'gr' was not declared in this scope if(gr[x]&&gr[y]) continue; ^~ main.cpp:33:15: error: 'x' was not declared in this scope if(gr[x]&&gr[y]) continue; ^ main.cpp:33:22: error: 'y' was not declared in this scope if(gr[x]&&gr[y]) continue; ^ main.cpp:34:9: error: 'gr' was not declared in this scope gr[GR(y)]=GR(x); ^~ main.cpp:34:15: error: 'y' was not declared in this scope gr[GR(y)]=GR(x); ^ main.cpp:34:22: error: 'x' was not declared in this scope gr[GR(y)]=GR(x); ^ main.cpp:35:28: error: 'm' was not declared in this scope for(int i=n+1;i<=n+m;++i) ^ main.cpp:38:9: error: expected primary-expression before '}' token } Non zero exit status: 1

Ceva nu functioneaza?