Borderou de evaluare (job #2347498)

Utilizator maria_sinteaMaria Sintea maria_sintea Data 18 februarie 2019 20:34:29
Problema Trilant Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs(int)': main.cpp:60:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<g[x].size();i++) ~^~~~~~~~~~~~ main.cpp:62:23: error: cannot convert '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::value_type {aka std::pair<int, int>}' to 'int' in initialization int nod=g[x][i]; ^ main.cpp:63:21: error: request for member 'first' in 'nod', which is of non-class type 'int' if(!viz[nod.first]) ^~~~~ main.cpp:66:20: error: request for member 'first' in 'nod', which is of non-class type 'int' dfs(nod.first); ^~~~~ main.cpp: In function 'void citire()': main.cpp:18:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &n, &m); ^ main.cpp:19:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d\n", &a, &b, &c); ^ main.cpp:24:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d\n", &x, &y, &c); ^ main.cpp: In function 'int main()': main.cpp:75:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("trilant.in", "r", stdin); ^ main.cpp:76:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("trilant.out", "w", stdout); ^ Non zero exit status: 1

Ceva nu functioneaza?