Borderou de evaluare (job #2450230)

Utilizator ejoi2019Ejoi 2019 ejoi2019 Data 22 august 2019 13:04:42
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:12:1: error: 'vector' does not name a type vector <int> g[N]; ^~~~~~ main.cpp: In function 'void dfs(int, int)': main.cpp:18:26: error: 'g' was not declared in this scope for(auto &gami : g[jeg]) ^ main.cpp: In function 'int main()': main.cpp:43:35: error: 'g' was not declared in this scope scanf("%d",&t); g[t].push_back(i); ^ main.cpp:35:36: 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:36:38: 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:39:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&q); ^ main.cpp:43:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t); g[t].push_back(i); ^ main.cpp:57:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&a,&b); ^ Non zero exit status: 1

Ceva nu functioneaza?