Detalii evaluare #35217448

Rezumat problemă

Se dă lista muchiilor unui graf neorientat. Să se afișeze componentele conexe ale acestui graf.

Detalii

Problema ComponenteConexe Operații I/O componenteconexe.in/componenteconexe.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #35217448 Utilizator Spataru Andreea (spataruandreea)
Fișier componenteconexe.cpp Dimensiune 1.08 KB
Data încărcării 01 Martie 2022, 20:13 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

componenteconexe.cpp:8:1: error: stray '\302' in program
    int c[101], i, u, v, p;

 ^
componenteconexe.cpp:8:1: error: stray '\240' in program
componenteconexe.cpp:8:1: error: stray '\302' in program
componenteconexe.cpp:8:1: error: stray '\240' in program
componenteconexe.cpp:9:1: error: stray '\302' in program
    c[1] = x;

 ^
componenteconexe.cpp:9:1: error: stray '\240' in program
componenteconexe.cpp:9:1: error: stray '\302' in program
componenteconexe.cpp:9:1: error: stray '\240' in program
componenteconexe.cpp:10:1: error: stray '\302' in program
    viz[x] = k;

 ^
componenteconexe.cpp:10:1: error: stray '\240' in program
componenteconexe.cpp:10:1: error: stray '\302' in program
componenteconexe.cpp:10:1: error: stray '\240' in program
componenteconexe.cpp:11:1: error: stray '\302' in program
    p = 1;

 ^
componenteconexe.cpp:11:1: error: stray '\240' in program
componenteconexe.cpp:11:1: error: stray '\302' in program
componenteconexe.cpp:11:1: error: stray '\240' in program
componenteconexe.cpp:12:1: error: stray '\302' in program
    u = 1;

 ^
componenteconexe.cpp:12:1: error: stray '\240' in program
componenteconexe.cpp:12:1: error: stray '\302' in program
componenteconexe.cpp:12:1: error: stray '\240' in program
componenteconexe.cpp:13:1: error: stray '\302' in program
    while(p <= u)

 ^
componenteconexe.cpp:13:1: error: stray '\240' in program
componenteconexe.cpp:13:1: error: stray '\302' in program
componenteconexe.cpp:13:1: error: stray '\240' in program
componenteconexe.cpp:14:1: error: stray '\302' in program
    {

 ^
componenteconexe.cpp:14:1: error: stray '\240' in program
componenteconexe.cpp:14:1: error: stray '\302' in program
componenteconexe.cpp:14:1: error: stray '\240' in program
componenteconexe.cpp:15:1: error: stray '\302' in program
        v = c[p++];

 ^
componenteconexe.cpp:15:1: error: stray '\240' in program
componenteconexe.cpp:15:1: error: stray '\302' in program
componenteconexe.cpp:15:1: error: stray '\240' in program
componenteconexe.cpp:15:1: error: stray '\302' in program
componenteconexe.cpp:15:1: error: stray '\240' in program
componenteconexe.cpp:15:1: error: stray '\302' in program
componenteconexe.cpp:15:1: error: stray '\240' in program
componenteconexe.cpp:16:1: error: stray '\302' in program
        for(i = 1; i <= n; i++)

 ^
componenteconexe.cpp:16:1: error: stray '\240' in program
componenteconexe.cpp:16:1: error: stray '\302' in program
componenteconexe.cpp:16:1: error: stray '\240' in program
componenteconexe.cpp:16:1: error: stray '\302' in program
componenteconexe.cpp:16:1: error: stray '\240' in program
componenteconexe.cpp:16:1: error: stray '\302' in program
componenteconexe.cpp:16:1: error: stray '\240' in program
componenteconexe.cpp:17:1: error: stray '\302' in program
            if(a[v][i] == 1 && viz[i] == 0)

 ^
componenteconexe.cpp:17:1: error: stray '\240' in program
componenteconexe.cpp:17:1: error: stray '\302' in program
componenteconexe.cpp:17:1: error: stray '\240' in program
componenteconexe.cpp:17:1: error: stray '\302' in program
componenteconexe.cpp:17:1: error: stray '\240' in program
componenteconexe.cpp:17:1: error: stray '\302' in program
componenteconexe.cpp:17:1: error: stray '\240' in program
componenteconexe.cpp:17:1: error: stray '\302' in program
componenteconexe.cpp:17:1: error: stray '\240' in program
componenteconexe.cpp:17:1: error: stray '\302' in program
componenteconexe.cpp:17:1: error: stray '\240' in program
componenteconexe.cpp:18:1: error: stray '\302' in program
                {

 ^
componenteconexe.cpp:18:1: error: stray '\240' in program
componenteconexe.cpp:18:1: error: stray '\302' in program
componenteconexe.cpp:18:1: error: stray '\240' in program
componenteconexe.cpp:18:1: error: stray '\302' in program
componenteconexe.cpp:18:1: error: stray '\240' in program
componenteconexe.cpp:18:1: error: stray '\302' in program
componenteconexe.cpp:18:1: error: stray '\240' in program
componenteconexe.cpp:18:1: error: stray '\302' in program
componenteconexe.cpp:18:1: error: stray '\240' in program
componenteconexe.cpp:18:1: error: stray '\302' in program
componenteconexe.cpp:18:1: error: stray '\240' in program
componenteconexe.cpp:18:1: error: stray '\302' in program
componenteconexe.cpp:18:1: error: stray '\240' in program
componenteconexe.cpp:18:1: error: stray '\302' in program
componenteconexe.cpp:18:1: error: stray '\240' in program
componenteconexe.cpp:19:1: error: stray '\302' in program
                    c[++u] = i;

 ^
componenteconexe.cpp:19:1: error: stray '\240' in program
componenteconexe.cpp:19:1: error: stray '\302' in program
componenteconexe.cpp:19:1: error: stray '\240' in program
componenteconexe.cpp:19:1: error: stray '\302' in program
componenteconexe.cpp:19:1: error: stray '\240' in program
componenteconexe.cpp:19:1: error: stray '\302' in program
componenteconexe.cpp:19:1: error: stray '\240' in program
componenteconexe.cpp:19:1: error: stray '\302' in program
componenteconexe.cpp:19:1: error: stray '\240' in program
componenteconexe.cpp:19:1: error: stray '\302' in program
componenteconexe.cpp:19:1: error: stray '\240' in program
componenteconexe.cpp:19:1: error: stray '\302' in program
componenteconexe.cpp:19:1: error: stray '\240' in program
componenteconexe.cpp:19:1: error: stray '\302' in program
componenteconexe.cpp:19:1: error: stray '\240' in program
componenteconexe.cpp:19:1: error: stray '\302' in program
componenteconexe.cpp:19:1: error: stray '\240' in program
componenteconexe.cpp:19:1: error: stray '\302' in program
componenteconexe.cpp:19:1: error: stray '\240' in program
componenteconexe.cpp:20:1: error: stray '\302' in program
                    viz[i] = k;

 ^
componenteconexe.cpp:20:1: error: stray '\240' in program
componenteconexe.cpp:20:1: error: stray '\302' in program
componenteconexe.cpp:20:1: error: stray '\240' in program
componenteconexe.cpp:20:1: error: stray '\302' in program
componenteconexe.cpp:20:1: error: stray '\240' in program
componenteconexe.cpp:20:1: error: stray '\302' in program
componenteconexe.cpp:20:1: error: stray '\240' in program
componenteconexe.cpp:20:1: error: stray '\302' in program
componenteconexe.cpp:20:1: error: stray '\240' in program
componenteconexe.cpp:20:1: error: stray '\302' in program
componenteconexe.cpp:20:1: error: stray '\240' in program
componenteconexe.cpp:20:1: error: stray '\302' in program
componenteconexe.cpp:20:1: error: stray '\240' in program
componenteconexe.cpp:20:1: error: stray '\302' in program
componenteconexe.cpp:20:1: error: stray '\240' in program
componenteconexe.cpp:20:1: error: stray '\302' in program
componenteconexe.cpp:20:1: error: stray '\240' in program
componenteconexe.cpp:20:1: error: stray '\302' in program
componenteconexe.cpp:20:1: error: stray '\240' in program
componenteconexe.cpp:21:1: error: stray '\302' in program
                }

 ^
componenteconexe.cpp:21:1: error: stray '\240' in program
componenteconexe.cpp:21:1: error: stray '\302' in program
componenteconexe.cpp:21:1: error: stray '\240' in program
componenteconexe.cpp:21:1: error: stray '\302' in program
componenteconexe.cpp:21:1: error: stray '\240' in program
componenteconexe.cpp:21:1: error: stray '\302' in program
componenteconexe.cpp:21:1: error: stray '\240' in program
componenteconexe.cpp:21:1: error: stray '\302' in program
componenteconexe.cpp:21:1: error: stray '\240' in program
componenteconexe.cpp:21:1: error: stray '\302' in program
componenteconexe.cpp:21:1: error: stray '\240' in program
componenteconexe.cpp:21:1: error: stray '\302' in program
componenteconexe.cpp:21:1: error: stray '\240' in program
componenteconexe.cpp:21:1: error: stray '\302' in program
componenteconexe.cpp:21:1: error: stray '\240' in program
componenteconexe.cpp:22:1: error: stray '\302' in program
    }

 ^
componenteconexe.cpp:22:1: error: stray '\240' in program
componenteconexe.cpp:22:1: error: stray '\302' in program
componenteconexe.cpp:22:1: error: stray '\240' in program
componenteconexe.cpp:26:1: error: stray '\302' in program
    f >> n;

 ^
componenteconexe.cpp:26:1: error: stray '\240' in program
componenteconexe.cpp:26:1: error: stray '\302' in program
componenteconexe.cpp:26:1: error: stray '\240' in program
componenteconexe.cpp:27:1: error: stray '\302' in program
    while(f >> i >> j)

 ^
componenteconexe.cpp:27:1: error: stray '\240' in program
componenteconexe.cpp:27:1: error: stray '\302' in program
componenteconexe.cpp:27:1: error: stray '\240' in program
componenteconexe.cpp:28:1: error: stray '\302' in program
    {

 ^
componenteconexe.cpp:28:1: error: stray '\240' in program
componenteconexe.cpp:28:1: error: stray '\302' in program
componenteconexe.cpp:28:1: error: stray '\240' in program
componenteconexe.cpp:29:1: error: stray '\302' in program
        a[i][j] = 1;

 ^
componenteconexe.cpp:29:1: error: stray '\240' in program
componenteconexe.cpp:29:1: error: stray '\302' in program
componenteconexe.cpp:29:1: error: stray '\240' in program
componenteconexe.cpp:29:1: error: stray '\302' in program
componenteconexe.cpp:29:1: error: stray '\240' in program
componenteconexe.cpp:29:1: error: stray '\302' in program
componenteconexe.cpp:29:1: error: stray '\240' in program
componenteconexe.cpp:30:1: error: stray '\302' in program
        a[j][i] = 1;

 ^
componenteconexe.cpp:30:1: error: stray '\240' in program
componenteconexe.cpp:30:1: error: stray '\302' in program
componenteconexe.cpp:30:1: error: stray '\240' in program
componenteconexe.cpp:30:1: error: stray '\302' in program
componenteconexe.cpp:30:1: error: stray '\240' in program
componenteconexe.cpp:30:1: error: stray '\302' in program
componenteconexe.cpp:30:1: error: stray '\240' in program
componenteconexe.cpp:31:1: error: stray '\302' in program
    }

 ^
componenteconexe.cpp:31:1: error: stray '\240' in program
componenteconexe.cpp:31:1: error: stray '\302' in program
componenteconexe.cpp:31:1: error: stray '\240' in program
componenteconexe.cpp:32:1: error: stray '\302' in program
    bf(1);

 ^
componenteconexe.cpp:32:1: error: stray '\240' in program
componenteconexe.cpp:32:1: error: stray '\302' in program
componenteconexe.cpp:32:1: error: stray '\240' in program
componenteconexe.cpp:33:1: error: stray '\302' in program
    for(i = 1; i <= n; i++)

 ^
componenteconexe.cpp:33:1: error: stray '\240' in program
componenteconexe.cpp:33:1: error: stray '\302' in program
componenteconexe.cpp:33:1: error: stray '\240' in program
componenteconexe.cpp:34:1: error: stray '\302' in program
        if(viz[i] == 0)

 ^
componenteconexe.cpp:34:1: error: stray '\240' in program
componenteconexe.cpp:34:1: error: stray '\302' in program
componenteconexe.cpp:34:1: error: stray '\240' in program
componenteconexe.cpp:34:1: error: stray '\302' in program
componenteconexe.cpp:34:1: error: stray '\240' in program
componenteconexe.cpp:34:1: error: stray '\302' in program
componenteconexe.cpp:34:1: error: stray '\240' in program
componenteconexe.cpp:35:1: error: stray '\302' in program
            {

 ^
componenteconexe.cpp:35:1: error: stray '\240' in program
componenteconexe.cpp:35:1: error: stray '\302' in program
componenteconexe.cpp:35:1: error: stray '\240' in program
componenteconexe.cpp:35:1: error: stray '\302' in program
componenteconexe.cpp:35:1: error: stray '\240' in program
componenteconexe.cpp:35:1: error: stray '\302' in program
componenteconexe.cpp:35:1: error: stray '\240' in program
componenteconexe.cpp:35:1: error: stray '\302' in program
componenteconexe.cpp:35:1: error: stray '\240' in program
componenteconexe.cpp:35:1: error: stray '\302' in program
componenteconexe.cpp:35:1: error: stray '\240' in program
componenteconexe.cpp:36:1: error: stray '\302' in program
                k++;

 ^
componenteconexe.cpp:36:1: error: stray '\240' in program
componenteconexe.cpp:36:1: error: stray '\302' in program
componenteconexe.cpp:36:1: error: stray '\240' in program
componenteconexe.cpp:36:1: error: stray '\302' in program
componenteconexe.cpp:36:1: error: stray '\240' in program
componenteconexe.cpp:36:1: error: stray '\302' in program
componenteconexe.cpp:36:1: error: stray '\240' in program
componenteconexe.cpp:36:1: error: stray '\302' in program
componenteconexe.cpp:36:1: error: stray '\240' in program
componenteconexe.cpp:36:1: error: stray '\302' in program
componenteconexe.cpp:36:1: error: stray '\240' in program
componenteconexe.cpp:36:1: error: stray '\302' in program
componenteconexe.cpp:36:1: error: stray '\240' in program
componenteconexe.cpp:36:1: error: stray '\302' in program
componenteconexe.cpp:36:1: error: stray '\240' in program
componenteconexe.cpp:37:1: error: stray '\302' in program
                bf(i);

 ^
componenteconexe.cpp:37:1: error: stray '\240' in program
componenteconexe.cpp:37:1: error: stray '\302' in program
componenteconexe.cpp:37:1: error: stray '\240' in program
componenteconexe.cpp:37:1: error: stray '\302' in program
componenteconexe.cpp:37:1: error: stray '\240' in program
componenteconexe.cpp:37:1: error: stray '\302' in program
componenteconexe.cpp:37:1: error: stray '\240' in program
componenteconexe.cpp:37:1: error: stray '\302' in program
componenteconexe.cpp:37:1: error: stray '\240' in program
componenteconexe.cpp:37:1: error: stray '\302' in program
componenteconexe.cpp:37:1: error: stray '\240' in program
componenteconexe.cpp:37:1: error: stray '\302' in program
componenteconexe.cpp:37:1: error: stray '\240' in program
componenteconexe.cpp:37:1: error: stray '\302' in program
componenteconexe.cpp:37:1: error: stray '\240' in program
componenteconexe.cpp:38:1: error: stray '\302' in program
            }

 ^
componenteconexe.cpp:38:1: error: stray '\240' in program
componenteconexe.cpp:38:1: error: stray '\302' in program
componenteconexe.cpp:38:1: error: stray '\240' in program
componenteconexe.cpp:38:1: error: stray '\302' in program
componenteconexe.cpp:38:1: error: stray '\240' in program
componenteconexe.cpp:38:1: error: stray '\302' in program
componenteconexe.cpp:38:1: error: stray '\240' in program
componenteconexe.cpp:38:1: error: stray '\302' in program
componenteconexe.cpp:38:1: error: stray '\240' in program
componenteconexe.cpp:38:1: error: stray '\302' in program
componenteconexe.cpp:38:1: error: stray '\240' in program
componenteconexe.cpp:39:1: error: stray '\302' in program
    g << k << '\n';

 ^
componenteconexe.cpp:39:1: error: stray '\240' in program
componenteconexe.cpp:39:1: error: stray '\302' in program
componenteconexe.cpp:39:1: error: stray '\240' in program
componenteconexe.cpp:40:1: error: stray '\302' in program
        for(i = 1; i <= k; i++)

 ^
componenteconexe.cpp:40:1: error: stray '\240' in program
componenteconexe.cpp:40:1: error: stray '\302' in program
componenteconexe.cpp:40:1: error: stray '\240' in program
componenteconexe.cpp:40:1: error: stray '\302' in program
componenteconexe.cpp:40:1: error: stray '\240' in program
componenteconexe.cpp:40:1: error: stray '\302' in program
componenteconexe.cpp:40:1: error: stray '\240' in program
componenteconexe.cpp:41:1: error: stray '\302' in program
            {

 ^
componenteconexe.cpp:41:1: error: stray '\240' in program
componenteconexe.cpp:41:1: error: stray '\302' in program
componenteconexe.cpp:41:1: error: stray '\240' in program
componenteconexe.cpp:41:1: error: stray '\302' in program
componenteconexe.cpp:41:1: error: stray '\240' in program
componenteconexe.cpp:41:1: error: stray '\302' in program
componenteconexe.cpp:41:1: error: stray '\240' in program
componenteconexe.cpp:41:1: error: stray '\302' in program
componenteconexe.cpp:41:1: error: stray '\240' in program
componenteconexe.cpp:41:1: error: stray '\302' in program
componenteconexe.cpp:41:1: error: stray '\240' in program
componenteconexe.cpp:42:1: error: stray '\302' in program
                for(j = 1; j <= n; j++)

 ^
componenteconexe.cpp:42:1: error: stray '\240' in program
componenteconexe.cpp:42:1: error: stray '\302' in program
componenteconexe.cpp:42:1: error: stray '\240' in program
componenteconexe.cpp:42:1: error: stray '\302' in program
componenteconexe.cpp:42:1: error: stray '\240' in program
componenteconexe.cpp:42:1: error: stray '\302' in program
componenteconexe.cpp:42:1: error: stray '\240' in program
componenteconexe.cpp:42:1: error: stray '\302' in program
componenteconexe.cpp:42:1: error: stray '\240' in program
componenteconexe.cpp:42:1: error: stray '\302' in program
componenteconexe.cpp:42:1: error: stray '\240' in program
componenteconexe.cpp:42:1: error: stray '\302' in program
componenteconexe.cpp:42:1: error: stray '\240' in program
componenteconexe.cpp:42:1: error: stray '\302' in program
componenteconexe.cpp:42:1: error: stray '\240' in program
componenteconexe.cpp:43:1: error: stray '\302' in program
                    if(viz[j] == i) g << j << " ";

 ^
componenteconexe.cpp:43:1: error: stray '\240' in program
componenteconexe.cpp:43:1: error: stray '\302' in program
componenteconexe.cpp:43:1: error: stray '\240' in program
componenteconexe.cpp:43:1: error: stray '\302' in program
componenteconexe.cpp:43:1: error: stray '\240' in program
componenteconexe.cpp:43:1: error: stray '\302' in program
componenteconexe.cpp:43:1: error: stray '\240' in program
componenteconexe.cpp:43:1: error: stray '\302' in program
componenteconexe.cpp:43:1: error: stray '\240' in program
componenteconexe.cpp:43:1: error: stray '\302' in program
componenteconexe.cpp:43:1: error: stray '\240' in program
componenteconexe.cpp:43:1: error: stray '\302' in program
componenteconexe.cpp:43:1: error: stray '\240' in program
componenteconexe.cpp:43:1: error: stray '\302' in program
componenteconexe.cpp:43:1: error: stray '\240' in program
componenteconexe.cpp:43:1: error: stray '\302' in program
componenteconexe.cpp:43:1: error: stray '\240' in program
componenteconexe.cpp:43:1: error: stray '\302' in program
componenteconexe.cpp:43:1: error: stray '\240' in program
componenteconexe.cpp:44:1: error: stray '\302' in program
                g << '\n';

 ^
componenteconexe.cpp:44:1: error: stray '\240' in program
componenteconexe.cpp:44:1: error: stray '\302' in program
componenteconexe.cpp:44:1: error: stray '\240' in program
componenteconexe.cpp:44:1: error: stray '\302' in program
componenteconexe.cpp:44:1: error: stray '\240' in program
componenteconexe.cpp:44:1: error: stray '\302' in program
componenteconexe.cpp:44:1: error: stray '\240' in program
componenteconexe.cpp:44:1: error: stray '\302' in program
componenteconexe.cpp:44:1: error: stray '\240' in program
componenteconexe.cpp:44:1: error: stray '\302' in program
componenteconexe.cpp:44:1: error: stray '\240' in program
componenteconexe.cpp:44:1: error: stray '\302' in program
componenteconexe.cpp:44:1: error: stray '\240' in program
componenteconexe.cpp:44:1: error: stray '\302' in program
componenteconexe.cpp:44:1: error: stray '\240' in program
componenteconexe.cpp:45:1: error: stray '\302' in program
            }

 ^
componenteconexe.cpp:45:1: error: stray '\240' in program
componenteconexe.cpp:45:1: error: stray '\302' in program
componenteconexe.cpp:45:1: error: stray '\240' in program
componenteconexe.cpp:45:1: error: stray '\302' in program
componenteconexe.cpp:45:1: error: stray '\240' in program
componenteconexe.cpp:45:1: error: stray '\302' in program
componenteconexe.cpp:45:1: error: stray '\240' in program
componenteconexe.cpp:45:1: error: stray '\302' in program
componenteconexe.cpp:45:1: error: stray '\240' in program
componenteconexe.cpp:45:1: error: stray '\302' in program
componenteconexe.cpp:45:1: error: stray '\240' in program
componenteconexe.cpp:46:1: error: stray '\302' in program
    return 0;

 ^
componenteconexe.cpp:46:1: error: stray '\240' in program
componenteconexe.cpp:46:1: error: stray '\302' in program
componenteconexe.cpp:46:1: error: stray '\240' in program

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema ComponenteConexe face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

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ă.