Borderou de evaluare (job #3272368)

Utilizator AbrianPetruta Adrian Abrian Data 29 ianuarie 2025 11:10:04
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void add(int, nod&)': main.cpp:18:11: error: conversion from 'nod*' to non-scalar type 'nod' requested 18 | nod p=new nod; | ^~~~~~~ main.cpp:19:6: error: base operand of '->' has non-pointer type 'nod' 19 | p->indice=x; | ^~ main.cpp:20:6: error: base operand of '->' has non-pointer type 'nod' 20 | p->urm=dest; | ^~ main.cpp: In function 'void DF(int)': main.cpp:27:20: error: could not convert 'p' from 'nod' to 'bool' 27 | for(nod p=v[x];p;p=p->urm) | ^ | | | nod main.cpp:27:25: error: base operand of '->' has non-pointer type 'nod' 27 | for(nod p=v[x];p;p=p->urm) | ^~ main.cpp:28:17: error: base operand of '->' has non-pointer type 'nod' 28 | if(viz[p->indice]==0) | ^~ main.cpp:29:17: error: base operand of '->' has non-pointer type 'nod' 29 | DF(p->info); | ^~ main.cpp: In function 'int main()': main.cpp:35:12: error: 'm' was not declared in this scope 35 | in>>n>>m; | ^ Non zero exit status: 1

Ceva nu functioneaza?