#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 | #41842389 | Utilizator | |
Fișier | izolate.cpp | Dimensiune | 828 B |
Data încărcării | 06 Februarie 2023, 12:37 | Scor / rezultat | Eroare de compilare |
izolate.cpp:2:1: error: stray '\302' in program ^ izolate.cpp:2: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:8:1: error: stray '\302' in program ^ izolate.cpp:8: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:13:1: error: stray '\302' in program int cnt = 0; ^ 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 fin >> n; ^ 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 int i, j; ^ 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 while(fin >> i >> j) ^ 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:18:1: error: stray '\302' in program a[i][j] = a[j][i] = 1; ^ 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:20:1: error: stray '\302' in program for(int i=1;i<=n;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:22:1: error: stray '\302' in program bool ok = false; ^ 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 for(int j=1;j<=n;j ) ^ 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:25:1: error: stray '\302' in program if(a[i][j]) ^ 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 ok = true; ^ 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: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:30:1: error: stray '\302' in program if(ok == false) ^ 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:32:1: error: stray '\302' in program cnt ; ^ 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: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 a[i][n 1]=1; ^ 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:36:1: error: stray '\302' in program fout << cnt << " "; ^ 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:37:1: error: stray '\302' in program for(int i=1;i<=n;i ) ^ izolate.cpp:37:1: error: stray '\240' in program izolate.cpp:37:1: error: stray '\302' in program izolate.cpp:37:1: error: stray '\240' in program izolate.cpp:39:1: error: stray '\302' in program if(a[i][n 1]==1) ^ izolate.cpp:39:1: error: stray '\240' in program izolate.cpp:39:1: error: stray '\302' in program izolate.cpp:39:1: error: stray '\240' in program izolate.cpp:39:1: error: stray '\302' in program izolate.cpp:39:1: error: stray '\240' in program izolate.cpp:39:1: error: stray '\302' in program izolate.cpp:39:1: error: stray '\240' in program izolate.cpp:41:1: error: stray '\302' in program fout << i << " "; ^ izolate.cpp:41:1: error: stray '\240' in program izolate.cpp:41:1: error: stray '\302' in program izolate.cpp:41:1: error: stray '\240' in program izolate.cpp:41:1: error: stray '\302' in program izolate.cpp:41:1: error: stray '\240' in program izolate.cpp:41:1: error: stray '\302' in program izolate.cpp:41:1: error: stray '\240' in program izolate.cpp:41:1: error: stray '\302' in program izolate.cpp:41:1: error: stray '\240' in program izolate.cpp:41:1: error: stray '\302' in program izolate.cpp:41:1: error: stray '\240' in program izolate.cpp:44:1: error: stray '\302' in program return 0; ^ izolate.cpp:44:1: error: stray '\240' in program izolate.cpp:44:1: error: stray '\302' in program izolate.cpp:44:1: error: stray '\240' in program izolate.cpp: In function 'int main()': izolate.cpp:20:24: warning: for increment expression has no effect [-Wunused-value] for(int i=1;i<=n;i ) ^ izolate.cpp:23:30: warning: for increment expression has no effect [-Wunused-value] for(int j=1;j<=n;j ) ^ izolate.cpp:32:24: warning: statement has no effect [-Wunused-value] cnt ; ^ izolate.cpp:33:26: error: expected ']' before numeric constant a[i][n 1]=1; ^ izolate.cpp:33:26: error: expected ';' before numeric constant izolate.cpp:33:26: warning: statement has no effect [-Wunused-value] izolate.cpp:37:24: warning: for increment expression has no effect [-Wunused-value] for(int i=1;i<=n;i ) ^ izolate.cpp:39:23: error: expected ']' before numeric constant if(a[i][n 1]==1) ^ izolate.cpp:39:23: error: expected ')' before numeric constant izolate.cpp:39:24: error: expected primary-expression before ']' token if(a[i][n 1]==1) ^ izolate.cpp:39:24: error: expected ';' before ']' token
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ă.