Borderou de evaluare (job #1905922)

Utilizator 1475369147896537415369Andrei Udriste 1475369147896537415369 Data 6 martie 2017 11:40:23
Problema Sortare topologica Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:31:1: error: ‘list’ does not name a type list<int> adj[50001]; ^ user.cpp: In function ‘int main()’: user.cpp:45:9: error: ‘adj’ was not declared in this scope adj[u].push_back(v); ^ user.cpp:48:5: error: ‘queue’ was not declared in this scope queue<int> Q; ^ user.cpp:48:5: note: suggested alternative: In file included from /usr/include/c++/4.8/queue:64:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_queue.h:93:11: note: ‘std::queue’ class queue ^ user.cpp:48:11: error: expected primary-expression before ‘int’ queue<int> Q; ^ user.cpp:48:11: error: expected ‘;’ before ‘int’ user.cpp:52:13: error: ‘Q’ was not declared in this scope Q.push(node); ^ user.cpp:55:12: error: ‘Q’ was not declared in this scope while(!Q.empty()){ ^ user.cpp:60:13: error: ‘list’ was not declared in this scope for(list<int>::iterator it = adj[current].begin(); it != adj[current].end(); it++){ ^ user.cpp:60:13: note: suggested alternative: In file included from /usr/include/c++/4.8/list:63:0, from user.cpp:3: /usr/include/c++/4.8/bits/stl_list.h:438:11: note: ‘std::list’ class list : protected _List_base<_Tp, _Alloc> ^ user.cpp:60:18: error: expected primary-expression before ‘int’ for(list<int>::iterator it = adj[current].begin(); it != adj[current].end(); it++){ ^ user.cpp:60:18: error: expected ‘;’ before ‘int’ user.cpp:60:60: error: ‘it’ was not declared in this scope for(list<int>::iterator it = adj[current].begin(); it != adj[current].end(); it++){ ^ user.cpp:60:66: error: ‘adj’ was not declared in this scope for(list<int>::iterator it = adj[current].begin(); it != adj[current].end(); it++){ ^ user.cpp: In function ‘void read(int&)’: user.cpp:17:37: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(buff, 1, Mn, stdin); ^ user.cpp:25:37: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]

Ceva nu functioneaza?