#4633
Se dă un graf orientat cu n
vârfuri și m
arce. Vârfurile x
și y
se numesc prietene dacă distanța minimă de la vârful x
la vârful y
este egală cu distanța minimă de la vârful y
la vârful x
. Distanța minimă de la vârful x
la vârful y
este egală cu lungimea celui mai scurt drum care are ca extremitate ințială vârful x
și extremitate finală vârful y
.
Problema | VarfuriPrietene | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55641993 | Utilizator | |
Fișier | varfuriprietene.cpp | Dimensiune | 808 B |
Data încărcării | 21 Ianuarie 2025, 11:27 | Scor / rezultat | Eroare de compilare |
varfuriprietene.cpp:12:1: error: stray '\302' in program cin>>n>>m; ^ varfuriprietene.cpp:12:1: error: stray '\240' in program varfuriprietene.cpp:12:1: error: stray '\302' in program varfuriprietene.cpp:12:1: error: stray '\240' in program varfuriprietene.cpp:13:1: error: stray '\302' in program for(int i=1; i<=n; i++) ^ varfuriprietene.cpp:13:1: error: stray '\240' in program varfuriprietene.cpp:13:1: error: stray '\302' in program varfuriprietene.cpp:13:1: error: stray '\240' in program varfuriprietene.cpp:14:1: error: stray '\302' in program for(int j=1; j<=n; j++) ^ varfuriprietene.cpp:14:1: error: stray '\240' in program varfuriprietene.cpp:14:1: error: stray '\302' in program varfuriprietene.cpp:14:1: error: stray '\240' in program varfuriprietene.cpp:14:1: error: stray '\302' in program varfuriprietene.cpp:14:1: error: stray '\240' in program varfuriprietene.cpp:14:1: error: stray '\302' in program varfuriprietene.cpp:14:1: error: stray '\240' in program varfuriprietene.cpp:15:1: error: stray '\302' in program a[i][j]=1e6; ^ varfuriprietene.cpp:15:1: error: stray '\240' in program varfuriprietene.cpp:15:1: error: stray '\302' in program varfuriprietene.cpp:15:1: error: stray '\240' in program varfuriprietene.cpp:15:1: error: stray '\302' in program varfuriprietene.cpp:15:1: error: stray '\240' in program varfuriprietene.cpp:15:1: error: stray '\302' in program varfuriprietene.cpp:15:1: error: stray '\240' in program varfuriprietene.cpp:15:1: error: stray '\302' in program varfuriprietene.cpp:15:1: error: stray '\240' in program varfuriprietene.cpp:15:1: error: stray '\302' in program varfuriprietene.cpp:15:1: error: stray '\240' in program varfuriprietene.cpp:16:1: error: stray '\302' in program for(int i=1; i<=m; i++) ^ varfuriprietene.cpp:16:1: error: stray '\240' in program varfuriprietene.cpp:16:1: error: stray '\302' in program varfuriprietene.cpp:16:1: error: stray '\240' in program varfuriprietene.cpp:17:1: error: stray '\302' in program { ^ varfuriprietene.cpp:17:1: error: stray '\240' in program varfuriprietene.cpp:17:1: error: stray '\302' in program varfuriprietene.cpp:17:1: error: stray '\240' in program varfuriprietene.cpp:18:1: error: stray '\302' in program cin>>x>>y; ^ varfuriprietene.cpp:18:1: error: stray '\240' in program varfuriprietene.cpp:18:1: error: stray '\302' in program varfuriprietene.cpp:18:1: error: stray '\240' in program varfuriprietene.cpp:18:1: error: stray '\302' in program varfuriprietene.cpp:18:1: error: stray '\240' in program varfuriprietene.cpp:18:1: error: stray '\302' in program varfuriprietene.cpp:18:1: error: stray '\240' in program varfuriprietene.cpp:19:1: error: stray '\302' in program a[x][y]=1; ^ varfuriprietene.cpp:19:1: error: stray '\240' in program varfuriprietene.cpp:19:1: error: stray '\302' in program varfuriprietene.cpp:19:1: error: stray '\240' in program varfuriprietene.cpp:19:1: error: stray '\302' in program varfuriprietene.cpp:19:1: error: stray '\240' in program varfuriprietene.cpp:19:1: error: stray '\302' in program varfuriprietene.cpp:19:1: error: stray '\240' in program varfuriprietene.cpp:20:1: error: stray '\302' in program } ^ varfuriprietene.cpp:20:1: error: stray '\240' in program varfuriprietene.cpp:20:1: error: stray '\302' in program varfuriprietene.cpp:20:1: error: stray '\240' in program varfuriprietene.cpp:21:1: error: stray '\302' in program for(int k=1; k<=n; k++) ^ varfuriprietene.cpp:21:1: error: stray '\240' in program varfuriprietene.cpp:21:1: error: stray '\302' in program varfuriprietene.cpp:21:1: error: stray '\240' in program varfuriprietene.cpp:22:1: error: stray '\302' in program for(int i=1; i<=n; i++) ^ varfuriprietene.cpp:22:1: error: stray '\240' in program varfuriprietene.cpp:22:1: error: stray '\302' in program varfuriprietene.cpp:22:1: error: stray '\240' in program varfuriprietene.cpp:22:1: error: stray '\302' in program varfuriprietene.cpp:22:1: error: stray '\240' in program varfuriprietene.cpp:22:1: error: stray '\302' in program varfuriprietene.cpp:22:1: error: stray '\240' in program varfuriprietene.cpp:23:1: error: stray '\302' in program for(int j=1; j<=n; j++) ^ varfuriprietene.cpp:23:1: error: stray '\240' in program varfuriprietene.cpp:23:1: error: stray '\302' in program varfuriprietene.cpp:23:1: error: stray '\240' in program varfuriprietene.cpp:23:1: error: stray '\302' in program varfuriprietene.cpp:23:1: error: stray '\240' in program varfuriprietene.cpp:23:1: error: stray '\302' in program varfuriprietene.cpp:23:1: error: stray '\240' in program varfuriprietene.cpp:23:1: error: stray '\302' in program varfuriprietene.cpp:23:1: error: stray '\240' in program varfuriprietene.cpp:23:1: error: stray '\302' in program varfuriprietene.cpp:23:1: error: stray '\240' in program varfuriprietene.cpp:24:1: error: stray '\302' in program if(a[i][j]>=a[i][k]+a[k][j]) ^ varfuriprietene.cpp:24:1: error: stray '\240' in program varfuriprietene.cpp:24:1: error: stray '\302' in program varfuriprietene.cpp:24:1: error: stray '\240' in program varfuriprietene.cpp:24:1: error: stray '\302' in program varfuriprietene.cpp:24:1: error: stray '\240' in program varfuriprietene.cpp:24:1: error: stray '\302' in program varfuriprietene.cpp:24:1: error: stray '\240' in program varfuriprietene.cpp:24:1: error: stray '\302' in program varfuriprietene.cpp:24:1: error: stray '\240' in program varfuriprietene.cpp:24:1: error: stray '\302' in program varfuriprietene.cpp:24:1: error: stray '\240' in program varfuriprietene.cpp:24:1: error: stray '\302' in program varfuriprietene.cpp:24:1: error: stray '\240' in program varfuriprietene.cpp:24:1: error: stray '\302' in program varfuriprietene.cpp:24:1: error: stray '\240' in program varfuriprietene.cpp:25:1: error: stray '\302' in program a[i][j]=a[i][k]+a[k][j]; ^ varfuriprietene.cpp:25:1: error: stray '\240' in program varfuriprietene.cpp:25:1: error: stray '\302' in program varfuriprietene.cpp:25:1: error: stray '\240' in program varfuriprietene.cpp:25:1: error: stray '\302' in program varfuriprietene.cpp:25:1: error: stray '\240' in program varfuriprietene.cpp:25:1: error: stray '\302' in program varfuriprietene.cpp:25:1: error: stray '\240' in program varfuriprietene.cpp:25:1: error: stray '\302' in program varfuriprietene.cpp:25:1: error: stray '\240' in program varfuriprietene.cpp:25:1: error: stray '\302' in program varfuriprietene.cpp:25:1: error: stray '\240' in program varfuriprietene.cpp:25:1: error: stray '\302' in program varfuriprietene.cpp:25:1: error: stray '\240' in program varfuriprietene.cpp:25:1: error: stray '\302' in program varfuriprietene.cpp:25:1: error: stray '\240' in program varfuriprietene.cpp:25:1: error: stray '\302' in program varfuriprietene.cpp:25:1: error: stray '\240' in program varfuriprietene.cpp:25:1: error: stray '\302' in program varfuriprietene.cpp:25:1: error: stray '\240' in program varfuriprietene.cpp:26:1: error: stray '\302' in program for(int i=1;i<=n;i++) ^ varfuriprietene.cpp:26:1: error: stray '\240' in program varfuriprietene.cpp:26:1: error: stray '\302' in program varfuriprietene.cpp:26:1: error: stray '\240' in program varfuriprietene.cpp:27:1: error: stray '\302' in program for(int j=i+1;j<=n;j++) ^ varfuriprietene.cpp:27:1: error: stray '\240' in program varfuriprietene.cpp:27:1: error: stray '\302' in program varfuriprietene.cpp:27:1: error: stray '\240' in program varfuriprietene.cpp:27:1: error: stray '\302' in program varfuriprietene.cpp:27:1: error: stray '\240' in program varfuriprietene.cpp:27:1: error: stray '\302' in program varfuriprietene.cpp:27:1: error: stray '\240' in program varfuriprietene.cpp:28:1: error: stray '\302' in program if(a[i][j]==a[j][i] and a[i][j]!=1e6) ^ varfuriprietene.cpp:28:1: error: stray '\240' in program varfuriprietene.cpp:28:1: error: stray '\302' in program varfuriprietene.cpp:28:1: error: stray '\240' in program varfuriprietene.cpp:28:1: error: stray '\302' in program varfuriprietene.cpp:28:1: error: stray '\240' in program varfuriprietene.cpp:28:1: error: stray '\302' in program varfuriprietene.cpp:28:1: error: stray '\240' in program varfuriprietene.cpp:28:1: error: stray '\302' in program varfuriprietene.cpp:28:1: error: stray '\240' in program varfuriprietene.cpp:29:1: error: stray '\302' in program { ^ varfuriprietene.cpp:29:1: error: stray '\240' in program varfuriprietene.cpp:29:1: error: stray '\302' in program varfuriprietene.cpp:29:1: error: stray '\240' in program varfuriprietene.cpp:30:1: error: stray '\302' in program cout<<i<<" "<<j<<endl; ^ varfuriprietene.cpp:30:1: error: stray '\240' in program varfuriprietene.cpp:30:1: error: stray '\302' in program varfuriprietene.cpp:30:1: error: stray '\240' in program varfuriprietene.cpp:30:1: error: stray '\302' in program varfuriprietene.cpp:30:1: error: stray '\240' in program varfuriprietene.cpp:30:1: error: stray '\302' in program varfuriprietene.cpp:30:1: error: stray '\240' in program varfuriprietene.cpp:31:1: error: stray '\302' in program ok=1; ^ varfuriprietene.cpp:31:1: error: stray '\240' in program varfuriprietene.cpp:31:1: error: stray '\302' in program varfuriprietene.cpp:31:1: error: stray '\240' in program varfuriprietene.cpp:31:1: error: stray '\302' in program varfuriprietene.cpp:31:1: error: stray '\240' in program varfuriprietene.cpp:31:1: error: stray '\302' in program varfuriprietene.cpp:31:1: error: stray '\240' in program varfuriprietene.cpp:32:1: error: stray '\302' in program } ^ varfuriprietene.cpp:32:1: error: stray '\240' in program varfuriprietene.cpp:32:1: error: stray '\302' in program varfuriprietene.cpp:32:1: error: stray '\240' in program varfuriprietene.cpp:33:1: error: stray '\302' in program if(!ok) ^ varfuriprietene.cpp:33:1: error: stray '\240' in program varfuriprietene.cpp:33:1: error: stray '\302' in program varfuriprietene.cpp:33:1: error: stray '\240' in program varfuriprietene.cpp:34:1: error: stray '\302' in program cout<<"Nu exista"; ^ varfuriprietene.cpp:34:1: error: stray '\240' in program varfuriprietene.cpp:34:1: error: stray '\302' in program varfuriprietene.cpp:34:1: error: stray '\240' in program varfuriprietene.cpp:34:1: error: stray '\302' in program varfuriprietene.cpp:34:1: error: stray '\240' in program varfuriprietene.cpp:34:1: error: stray '\302' in program varfuriprietene.cpp:34:1: error: stray '\240' in program varfuriprietene.cpp:37:1: error: stray '\302' in program return 0; ^ varfuriprietene.cpp:37:1: error: stray '\240' in program varfuriprietene.cpp:37:1: error: stray '\302' in program varfuriprietene.cpp:37:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema VarfuriPrietene face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.