Borderou de evaluare (job #2457641)

Utilizator FunnyStockyMihnea Andreescu FunnyStocky Data 18 septembrie 2019 12:40:46
Problema Tric Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:1: error: 'vector' does not name a type vector <int> g[N]; ^~~~~~ main.cpp: In function 'int main()': main.cpp:18:5: error: 'g' was not declared in this scope g[a[i]].push_back(b[i]); ^ main.cpp:25:20: error: 'g' was not declared in this scope int p1 = (int) g[x].size() - 1, p2 = (int) g[y].size() - 1; ^ main.cpp:26:23: error: 'p2' was not declared in this scope while (p1 >= 0 && p2 >= 0) { ^~ main.cpp:24:19: warning: unused variable 'y' [-Wunused-variable] int x = a[i], y = b[i]; ^ main.cpp:12:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("tric.in", "r", stdin); ^ main.cpp:13:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("tric.out", "w", stdout); ^ Non zero exit status: 1

Ceva nu functioneaza?