Borderou de evaluare (job #2289044)

Utilizator bogdi1bogdan bancuta bogdi1 Data 24 noiembrie 2018 10:42:27
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:1: error: 'vector' does not name a type vector<int> g[100005]; ^~~~~~ main.cpp: In function 'void dfs(int)': main.cpp:14:20: error: 'g' was not declared in this scope for(int i=0; i<g[nod].size(); i++) ^ main.cpp: In function 'int main()': main.cpp:28:9: error: 'g' was not declared in this scope g[x].push_back(i); ^ main.cpp:22:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] { freopen("lca.in", "r",stdin); ^ main.cpp:23:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("lca.out", "w",stdout); ^ main.cpp:25:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ main.cpp:27:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^ main.cpp:42:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &x, &y); ^ Non zero exit status: 1

Ceva nu functioneaza?