Borderou de evaluare (job #1671658)

Utilizator Player1Player 1 Player1 Data 1 aprilie 2016 23:36:41
Problema Sortare topologica Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:1: error: ‘stack’ does not name a type stack<int> myStack; ^ user.cpp: In function ‘void DFS(int)’: user.cpp:12:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < vecini[index].size(); i++){ ^ user.cpp:17:2: error: ‘myStack’ was not declared in this scope myStack.push(index); ^ user.cpp: In function ‘int main()’: user.cpp:33:9: error: ‘myStack’ was not declared in this scope while(!myStack.empty()){ ^ user.cpp:21:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sortaret.in", "r", stdin); ^ user.cpp:22:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sortaret.out", "w", stdout); ^ user.cpp:24:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d ", &N, &M); ^ user.cpp:26:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d ", &x, &y); ^

Ceva nu functioneaza?