Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#2 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#3 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#4 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#5 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#6 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#7 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#8 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#9 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#10 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#11 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#12 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#13 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#14 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#15 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#16 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#17 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#18 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#19 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#20 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#21 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#22 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#23 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#24 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#25 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#26 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#27 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#28 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#29 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#30 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#31 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#32 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#33 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#34 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
||
#35 |
Error de compilación
main.cpp:4:3: error: no template named 'list' list<int> *adj; ^ main.cpp:16:19: error: no template named 'list' this->adj = new list<int>[vertices]; ^ main.cpp:31:5: error: use of undeclared identifier 'list' list<int>::iterator i; ^ main.cpp:31:13: error: expected '(' for function-style cast or type construction list<int>::iterator i; ~~~^ main.cpp:31:16: error: no member named 'iterator' in the global namespace; did you mean 'operator'? list<int>::iterator i; ~~^~~~~~~~ operator main.cpp:31:25: error: unknown type name 'i' list<int>::iterator i; ^ main.cpp:33:10: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:36: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:33:61: error: use of undeclared identifier 'i' for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) ^ main.cpp:35:24: warning: '&&' within '||' [-Wlogical-op-parentheses] if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ main.cpp:35:24: note: place parentheses around the '&&' expression to silence this warning if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ ( ) main.cpp:35:21: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:41: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:35:88: error: use of undeclared identifier 'i' if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) ^ main.cpp:71:3: error: use of undeclared identifier 'cin' cin >> n; ^ main.cpp:72:3: error: use of undeclared identifier 'cin' cin >> m; ^ main.cpp:81:5: error: use of undeclared identifier 'cin' cin >> u; ^ main.cpp:82:5: error: use of undeclared identifier 'cin' cin >> v; ^ main.cpp:89:5: error: use of undeclared identifier 'cout' cout << "Yes"; ^ main.cpp:93:5: error: use of undeclared identifier 'cout' cout << "No"; ^ 1 warning and 18 errors generated. |
class Graph { int vertices; list<int> *adj; bool isCyclicUtil(int vertice, bool vertices[], bool *recursionStack); public: Graph(int vertices); void addEdge(int u, int v); bool isCyclic(); }; Graph::Graph(int vertices) { this->vertices = vertices; this->adj = new list<int>[vertices]; } void Graph::addEdge(int u, int v) { adj[u].push_back(v); } bool Graph::isCyclicUtil(int vertice, bool visited[], bool *recursionStack) { if (!visited[vertice]) { visited[vertice] = true; recursionStack[vertice] = true; list<int>::iterator i; for (i = adj[vertice].begin(); i != adj[vertice].end(); i++) { if (!visited[*i] && isCyclicUtil(*i, visited, recursionStack) || recursionStack[*i]) { return true; } } } recursionStack[vertice] = false; return false; } bool Graph::isCyclic() { bool *visited = new bool[vertices]; bool *recursionStack = new bool[vertices]; for (int i = 0; i < vertices; i++) { visited[i] = false; recursionStack[i] = false; } for (int i = 0; i < vertices; i++) { if (isCyclicUtil(i, visited, recursionStack)) { return true; } } return false; } int main() { int n, m, i; cin >> n; cin >> m; Graph g(n); for (i = 0; i < m; i++) { int u; int v; cin >> u; cin >> v; g.addEdge(u, v); } if (g.isCyclic()) { cout << "Yes"; } else { cout << "No"; } return 0; }