#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 | #20918417 | Utilizator | |
Fișier | izolate.cpp | Dimensiune | 762 B |
Data încărcării | 14 Februarie 2020, 10:44 | 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:8:1: error: stray '\302' in program int n,a[105][105],g[105]; ^ izolate.cpp:8:1: error: stray '\240' in program izolate.cpp:10:1: error: stray '\302' in program int main() ^ izolate.cpp:10:1: error: stray '\240' in program izolate.cpp:12:1: error: stray '\302' in program int i,j; ^ 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: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 f>>n; ^ 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 while(f>>i>>j) ^ 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:15:1: error: stray '\302' in program { ^ izolate.cpp:15:1: error: stray '\240' in program izolate.cpp:15:1: error: stray '\302' in program izolate.cpp:15:1: error: stray '\240' in program izolate.cpp:15:1: error: stray '\302' in program izolate.cpp:15:1: error: stray '\240' in program izolate.cpp:15:1: error: stray '\302' in program izolate.cpp:15:1: error: stray '\240' in program izolate.cpp:16:1: error: stray '\302' in program a[i][j]=a[j][i]=1; ^ 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 } ^ 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:19:1: error: stray '\302' in program for(int i=1;i<=n;i++){ ^ izolate.cpp:19:1: error: stray '\240' in program izolate.cpp:19:1: error: stray '\302' in program izolate.cpp:19:1: error: stray '\240' in program izolate.cpp:19:1: error: stray '\302' in program izolate.cpp:19:1: error: stray '\240' in program izolate.cpp:19:1: error: stray '\302' in program izolate.cpp:19:1: error: stray '\240' in program izolate.cpp:19:1: error: stray '\302' in program izolate.cpp:19:1: error: stray '\240' in program izolate.cpp:20:1: error: stray '\302' in program g[i]=0; ^ 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 for(intj=1;j<=n;j++) ^ 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: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:22:1: error: stray '\302' in program if(a[i][j]==1) ^ izolate.cpp:22:1: error: stray '\240' in program izolate.cpp:22:1: error: stray '\302' in program izolate.cpp:22:1: error: stray '\240' in program izolate.cpp:22:1: error: stray '\302' in program izolate.cpp:22:1: error: stray '\240' in program izolate.cpp:22:1: error: stray '\302' in program izolate.cpp:22:1: error: stray '\240' in program izolate.cpp:22:1: error: stray '\302' in program izolate.cpp:22:1: error: stray '\240' in program izolate.cpp:22:1: error: stray '\302' in program izolate.cpp:22:1: error: stray '\240' in program izolate.cpp:22:1: error: stray '\302' in program izolate.cpp:22:1: error: stray '\240' in program izolate.cpp:22:1: error: stray '\302' in program izolate.cpp:22:1: error: stray '\240' in program izolate.cpp:22:1: error: stray '\302' in program izolate.cpp:22:1: error: stray '\240' in program izolate.cpp:22:1: error: stray '\302' in program izolate.cpp:22:1: error: stray '\240' in program izolate.cpp:22:1: error: stray '\302' in program izolate.cpp:22:1: error: stray '\240' in program izolate.cpp:22:1: error: stray '\302' in program izolate.cpp:22:1: error: stray '\240' in program izolate.cpp:23:1: error: stray '\302' in program g[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: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: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: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: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: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: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: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 } ^ 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:26:1: error: stray '\302' in program int nrv=0; ^ izolate.cpp:26:1: error: stray '\240' in program izolate.cpp:26:1: error: stray '\302' in program izolate.cpp:26:1: error: stray '\240' in program izolate.cpp:26:1: error: stray '\302' in program izolate.cpp:26:1: error: stray '\240' in program izolate.cpp:26:1: error: stray '\302' in program izolate.cpp:26:1: error: stray '\240' in program izolate.cpp:26:1: error: stray '\302' in program izolate.cpp:26:1: error: stray '\240' in program izolate.cpp:27:1: error: stray '\302' in program for(int i=1;i<=n;i++) ^ 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: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 if(g[i]==0) ^ 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: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: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 nrv ++; ^ 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: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: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:31:1: error: stray '\302' in program g<<nrv<<" "; ^ izolate.cpp:31:1: error: stray '\240' in program izolate.cpp:31:1: error: stray '\302' in program izolate.cpp:31:1: error: stray '\240' in program izolate.cpp:31:1: error: stray '\302' in program izolate.cpp:31:1: error: stray '\240' in program izolate.cpp:31:1: error: stray '\302' in program izolate.cpp:31:1: error: stray '\240' in program izolate.cpp:32:1: error: stray '\302' in program for(int i=1;i<=n;i++) ^ izolate.cpp:32:1: error: stray '\240' in program izolate.cpp:32:1: error: stray '\302' in program izolate.cpp:32:1: error: stray '\240' in program izolate.cpp:32:1: error: stray '\302' in program izolate.cpp:32:1: error: stray '\240' in program izolate.cpp:32:1: error: stray '\302' in program izolate.cpp:32:1: error: stray '\240' in program izolate.cpp:32:1: error: stray '\302' in program izolate.cpp:32:1: error: stray '\240' in program izolate.cpp:33:1: error: stray '\302' in program if(g[i]==0) ^ izolate.cpp:33:1: error: stray '\240' in program izolate.cpp:33:1: error: stray '\302' in program izolate.cpp:33:1: error: stray '\240' in program izolate.cpp:33:1: error: stray '\302' in program izolate.cpp:33:1: error: stray '\240' in program izolate.cpp:33:1: error: stray '\302' in program izolate.cpp:33:1: error: stray '\240' in program izolate.cpp:33:1: error: stray '\302' in program izolate.cpp:33:1: error: stray '\240' in program izolate.cpp:33:1: error: stray '\302' in program izolate.cpp:33:1: error: stray '\240' in program izolate.cpp:33:1: error: stray '\302' in program izolate.cpp:33:1: error: stray '\240' in program izolate.cpp:33:1: error: stray '\302' in program izolate.cpp:33:1: error: stray '\240' in program izolate.cpp:34:1: error: stray '\302' in program g<<i<<" "; ^ izolate.cpp:34:1: error: stray '\240' in program izolate.cpp:34:1: error: stray '\302' in program izolate.cpp:34:1: error: stray '\240' in program izolate.cpp:34:1: error: stray '\302' in program izolate.cpp:34:1: error: stray '\240' in program izolate.cpp:34:1: error: stray '\302' in program izolate.cpp:34:1: error: stray '\240' in program izolate.cpp:34:1: error: stray '\302' in program izolate.cpp:34:1: error: stray '\240' in program izolate.cpp:34:1: error: stray '\302' in program izolate.cpp:34:1: error: stray '\240' in program izolate.cpp:34:1: error: stray '\302' in program izolate.cpp:34:1: error: stray '\240' in program izolate.cpp:34:1: error: stray '\302' in program izolate.cpp:34:1: error: stray '\240' in program izolate.cpp:34:1: error: stray '\302' in program izolate.cpp:34:1: error: stray '\240' in program izolate.cpp:34:1: error: stray '\302' in program izolate.cpp:34:1: error: stray '\240' in program izolate.cpp:34:1: error: stray '\302' in program izolate.cpp:34:1: error: stray '\240' in program izolate.cpp:34:1: error: stray '\302' in program izolate.cpp:34:1: error: stray '\240' in program izolate.cpp:36:1: error: stray '\302' in program return 0; ^ izolate.cpp:36:1: error: stray '\240' in program izolate.cpp:36:1: error: stray '\302' in program izolate.cpp:36:1: error: stray '\240' in program izolate.cpp:36:1: error: stray '\302' in program izolate.cpp:36:1: error: stray '\240' in program izolate.cpp:36:1: error: stray '\302' in program izolate.cpp:36:1: error: stray '\240' in program izolate.cpp:36:1: error: stray '\302' in program izolate.cpp:36:1: error: stray '\240' in program izolate.cpp:5:1: error: 'fstream' does not name a type fstream f("izolate.in",ios::in); ^ izolate.cpp:6:1: error: 'fstream' does not name a type fstream g("izolate.out",ios::out); ^ izolate.cpp: In function 'int main()': izolate.cpp:13:9: error: 'f' was not declared in this scope f>>n; ^ izolate.cpp:21:21: error: 'intj' was not declared in this scope for(intj=1;j<=n;j++) ^ izolate.cpp:31:12: error: invalid operands of types 'int [105]' and 'int' to binary 'operator<<' g<<nrv<<" "; ^ izolate.cpp:34: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ă.