#430
Izolate
Se dă lista muchiilor unui graf neorientat. Să se afișeze vârfurile izolate ale grafului.
Problema | Izolate | Operații I/O |
izolate.in /izolate.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #14900564 | Utilizator | |
Fișier | izolate.cpp | Dimensiune | 702 B |
Data încărcării | 24 Martie 2019, 10:56 | Scor / rezultat | Eroare de compilare |
izolate.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <iostream> ^ izolate.cpp:2:9: error: #include expects "FILENAME" or <FILENAME> #include <fstream> ^ izolate.cpp:3:1: error: stray '\302' in program using namespace std; ^ izolate.cpp:3:1: error: stray '\240' in program izolate.cpp:3:1: error: stray '\302' in program izolate.cpp:3:1: error: stray '\240' in program izolate.cpp:4:1: error: stray '\302' in program ifstream f("izolate.in"); ^ izolate.cpp:4:1: error: stray '\240' in program izolate.cpp:5:1: error: stray '\302' in program ofstream g("izolate.out"); ^ izolate.cpp:5:1: error: stray '\240' in program izolate.cpp:6:1: error: stray '\302' in program int n , a[105][105], g[105],nrv; ^ izolate.cpp:6:1: error: stray '\240' in program izolate.cpp:6:1: error: stray '\302' in program izolate.cpp:6:1: error: stray '\240' in program izolate.cpp:6:1: error: stray '\302' in program izolate.cpp:6:1: error: stray '\240' in program izolate.cpp:6:1: error: stray '\302' in program izolate.cpp:6:1: error: stray '\240' in program izolate.cpp:7:1: error: stray '\302' in program int main() ^ izolate.cpp:7:1: error: stray '\240' in program izolate.cpp:9:1: error: stray '\302' in program ^ izolate.cpp:9:1: error: stray '\240' in program izolate.cpp:9:1: error: stray '\302' in program izolate.cpp:9:1: error: stray '\240' in program izolate.cpp:9:1: error: stray '\302' in program izolate.cpp:9:1: error: stray '\240' in program izolate.cpp:9:1: error: stray '\302' in program izolate.cpp:9:1: error: stray '\240' in program izolate.cpp:10:1: error: stray '\302' in program f >> n; ^ izolate.cpp:10:1: error: stray '\240' in program izolate.cpp:10:1: error: stray '\302' in program izolate.cpp:10:1: error: stray '\240' in program izolate.cpp:10:1: error: stray '\302' in program izolate.cpp:10:1: error: stray '\240' in program izolate.cpp:10:1: error: stray '\302' in program izolate.cpp:10:1: error: stray '\240' in program izolate.cpp:10:1: error: stray '\302' in program izolate.cpp:10:1: error: stray '\240' in program izolate.cpp:10:1: error: stray '\302' in program izolate.cpp:10:1: error: stray '\240' in program izolate.cpp:11:1: error: stray '\302' in program while(fin>>i>>j) ^ izolate.cpp:11:1: error: stray '\240' in program izolate.cpp:11:1: error: stray '\302' in program izolate.cpp:11:1: error: stray '\240' in program izolate.cpp:11:1: error: stray '\302' in program izolate.cpp:11:1: error: stray '\240' in program izolate.cpp:11:1: error: stray '\302' in program izolate.cpp:11:1: error: stray '\240' in program izolate.cpp:12:1: error: stray '\302' in program { ^ izolate.cpp:12:1: error: stray '\240' in program izolate.cpp:12:1: error: stray '\302' in program izolate.cpp:12:1: error: stray '\240' in program izolate.cpp:12:1: error: stray '\302' in program izolate.cpp:12:1: error: stray '\240' in program izolate.cpp:12:1: error: stray '\302' in program izolate.cpp:12:1: error: stray '\240' in program izolate.cpp:13:1: error: stray '\302' in program a[i][j]=a[j][i]=1; ^ izolate.cpp:13:1: error: stray '\240' in program izolate.cpp:13:1: error: stray '\302' in program izolate.cpp:13:1: error: stray '\240' in program izolate.cpp:13:1: error: stray '\302' in program izolate.cpp:13:1: error: stray '\240' in program izolate.cpp:13:1: error: stray '\302' in program izolate.cpp:13:1: error: stray '\240' in program izolate.cpp:14:1: error: stray '\302' in program } ^ izolate.cpp:14:1: error: stray '\240' in program izolate.cpp:14:1: error: stray '\302' in program izolate.cpp:14:1: error: stray '\240' in program izolate.cpp:14:1: error: stray '\302' in program izolate.cpp:14:1: error: stray '\240' in program izolate.cpp:14:1: error: stray '\302' in program izolate.cpp:14:1: error: stray '\240' in program izolate.cpp:16:1: error: stray '\302' in program for(i=1;i<= n;i++){ ^ izolate.cpp:16:1: error: stray '\240' in program izolate.cpp:16:1: error: stray '\302' in program izolate.cpp:16:1: error: stray '\240' in program izolate.cpp:16:1: error: stray '\302' in program izolate.cpp:16:1: error: stray '\240' in program izolate.cpp:16:1: error: stray '\302' in program izolate.cpp:16:1: error: stray '\240' in program izolate.cpp:16:1: error: stray '\302' in program izolate.cpp:16:1: error: stray '\240' in program izolate.cpp:17:1: error: stray '\302' in program g[i] = 0; ^ izolate.cpp:17:1: error: stray '\240' in program izolate.cpp:17:1: error: stray '\302' in program izolate.cpp:17:1: error: stray '\240' in program izolate.cpp:17:1: error: stray '\302' in program izolate.cpp:17:1: error: stray '\240' in program izolate.cpp:17:1: error: stray '\302' in program izolate.cpp:17:1: error: stray '\240' in program izolate.cpp:17:1: error: stray '\302' in program izolate.cpp:17:1: error: stray '\240' in program izolate.cpp:17:1: error: stray '\302' in program izolate.cpp:17:1: error: stray '\240' in program izolate.cpp:17:1: error: stray '\302' in program izolate.cpp:17:1: error: stray '\240' in program izolate.cpp:17:1: error: stray '\302' in program izolate.cpp:17:1: error: stray '\240' in program izolate.cpp:17:1: error: stray '\302' in program izolate.cpp:17:1: error: stray '\240' in program izolate.cpp:17:1: error: stray '\302' in program izolate.cpp:17:1: error: stray '\240' in program izolate.cpp:18:1: error: stray '\302' in program for(j= 1;j<=n;++j) ^ izolate.cpp:18:1: error: stray '\240' in program izolate.cpp:18:1: error: stray '\302' in program izolate.cpp:18:1: error: stray '\240' in program izolate.cpp:18:1: error: stray '\302' in program izolate.cpp:18:1: error: stray '\240' in program izolate.cpp:18:1: error: stray '\302' in program izolate.cpp:18:1: error: stray '\240' in program izolate.cpp:18:1: error: stray '\302' in program izolate.cpp:18:1: error: stray '\240' in program izolate.cpp:18:1: error: stray '\302' in program izolate.cpp:18:1: error: stray '\240' in program izolate.cpp:18:1: error: stray '\302' in program izolate.cpp:18:1: error: stray '\240' in program izolate.cpp:18:1: error: stray '\302' in program izolate.cpp:18:1: error: stray '\240' in program izolate.cpp:18:1: error: stray '\302' in program izolate.cpp:18:1: error: stray '\240' in program izolate.cpp:19:13: error: stray '\302' in program if(a[i][j]== 1) ^ izolate.cpp:19:13: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program g[i]++; ^ izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program izolate.cpp:20:1: error: stray '\240' in program izolate.cpp:21:1: error: stray '\302' in program } ^ izolate.cpp:21:1: error: stray '\240' in program izolate.cpp:21:1: error: stray '\302' in program izolate.cpp:21:1: error: stray '\240' in program izolate.cpp:21:1: error: stray '\302' in program izolate.cpp:21:1: error: stray '\240' in program izolate.cpp:21:1: error: stray '\302' in program izolate.cpp:21:1: error: stray '\240' in program izolate.cpp:23:1: error: stray '\302' in program for(i=1;i<=n;i++) ^ izolate.cpp:23:1: error: stray '\240' in program izolate.cpp:23:1: error: stray '\302' in program izolate.cpp:23:1: error: stray '\240' in program izolate.cpp:23:1: error: stray '\302' in program izolate.cpp:23:1: error: stray '\240' in program izolate.cpp:24:1: error: stray '\302' in program if(g[i]==0) ^ izolate.cpp:24:1: error: stray '\240' in program izolate.cpp:24:1: error: stray '\302' in program izolate.cpp:24:1: error: stray '\240' in program izolate.cpp:24:1: error: stray '\302' in program izolate.cpp:24:1: error: stray '\240' in program izolate.cpp:24:1: error: stray '\302' in program izolate.cpp:24:1: error: stray '\240' in program izolate.cpp:24:1: error: stray '\302' in program izolate.cpp:24:1: error: stray '\240' in program izolate.cpp:24:1: error: stray '\302' in program izolate.cpp:24:1: error: stray '\240' in program izolate.cpp:24:1: error: stray '\302' in program izolate.cpp:24:1: error: stray '\240' in program izolate.cpp:24:1: error: stray '\302' in program izolate.cpp:24:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program nrv++; ^ izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:25:1: error: stray '\302' in program izolate.cpp:25:1: error: stray '\240' in program izolate.cpp:27:1: error: stray '\302' in program g<<nrv<<" "; ^ izolate.cpp:27:1: error: stray '\240' in program izolate.cpp:27:1: error: stray '\302' in program izolate.cpp:27:1: error: stray '\240' in program izolate.cpp:27:1: error: stray '\302' in program izolate.cpp:27:1: error: stray '\240' in program izolate.cpp:27:1: error: stray '\302' in program izolate.cpp:27:1: error: stray '\240' in program izolate.cpp:28:1: error: stray '\302' in program for(i=1;i<=n;i++) ^ izolate.cpp:28:1: error: stray '\240' in program izolate.cpp:28:1: error: stray '\302' in program izolate.cpp:28:1: error: stray '\240' in program izolate.cpp:28:1: error: stray '\302' in program izolate.cpp:28:1: error: stray '\240' in program izolate.cpp:28:1: error: stray '\302' in program izolate.cpp:28:1: error: stray '\240' in program izolate.cpp:29:1: error: stray '\302' in program if(g[i]==0) ^ izolate.cpp:29:1: error: stray '\240' in program izolate.cpp:29:1: error: stray '\302' in program izolate.cpp:29:1: error: stray '\240' in program izolate.cpp:29:1: error: stray '\302' in program izolate.cpp:29:1: error: stray '\240' in program izolate.cpp:29:1: error: stray '\302' in program izolate.cpp:29:1: error: stray '\240' in program izolate.cpp:29:1: error: stray '\302' in program izolate.cpp:29:1: error: stray '\240' in program izolate.cpp:29:1: error: stray '\302' in program izolate.cpp:29:1: error: stray '\240' in program izolate.cpp:29:1: error: stray '\302' in program izolate.cpp:29:1: error: stray '\240' in program izolate.cpp:29:1: error: stray '\302' in program izolate.cpp:29:1: error: stray '\240' in program izolate.cpp:30:1: error: stray '\302' in program g<<i<<" "; ^ izolate.cpp:30:1: error: stray '\240' in program izolate.cpp:30:1: error: stray '\302' in program izolate.cpp:30:1: error: stray '\240' in program izolate.cpp:30:1: error: stray '\302' in program izolate.cpp:30:1: error: stray '\240' in program izolate.cpp:30:1: error: stray '\302' in program izolate.cpp:30:1: error: stray '\240' in program izolate.cpp:30:1: error: stray '\302' in program izolate.cpp:30:1: error: stray '\240' in program izolate.cpp:30:1: error: stray '\302' in program izolate.cpp:30:1: error: stray '\240' in program izolate.cpp:30:1: error: stray '\302' in program izolate.cpp:30:1: error: stray '\240' in program izolate.cpp:30:1: error: stray '\302' in program izolate.cpp:30:1: error: stray '\240' in program izolate.cpp:30:1: error: stray '\302' in program izolate.cpp:30:1: error: stray '\240' in program izolate.cpp:30:1: error: stray '\302' in program izolate.cpp:30:1: error: stray '\240' in program izolate.cpp:30:1: error: stray '\302' in program izolate.cpp:30:1: error: stray '\240' in program izolate.cpp:30:1: error: stray '\302' in program izolate.cpp:30:1: error: stray '\240' in program izolate.cpp:31:1: error: stray '\302' in program return 0; ^ izolate.cpp:31:1: error: stray '\240' in program izolate.cpp:4:1: error: 'ifstream' does not name a type ifstream f("izolate.in"); ^ izolate.cpp:5:1: error: 'ofstream' does not name a type ofstream g("izolate.out"); ^ izolate.cpp: In function 'int main()': izolate.cpp:10:9: error: 'f' was not declared in this scope f >> n; ^ izolate.cpp:11:15: error: 'fin' was not declared in this scope while(fin>>i>>j) ^ izolate.cpp:27:12: error: invalid operands of types 'int [105]' and 'int' to binary 'operator<<' g<<nrv<<" "; ^ izolate.cpp:30:28: error: invalid operands of types 'int [105]' and 'int' to binary 'operator<<' g<<i<<" "; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Izolate 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ă.