Detalii evaluare #59907393

Rezumat problemă

#837

Se dă o matrice cu n linii și m coloane și elemente 0 sau 1, care reprezintă harta unei planete, în care 1 înseamnă uscat, iar 0 înseamnă apă. Două elemente 1 care se învecinează pe linie sau pe coloană (nu și pe diagonală) fac parte din același continent.

Să se determine câte continente sunt pe hartă.

Detalii

Problema Fill Operații I/O fill.in/fill.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #59907393 Utilizator sevescu andrei (sevescu_andrei)
Fișier fill.c Dimensiune 7.18 KB
Data încărcării 13 Octombrie 2025, 09:01 Scor/rezultat Eroare de compilare

Evaluare

Mesaj compilare

fill.c:2:11: error: unknown type name 'Fill'
           Fill     

           ^
fill.c:7:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    Etichete:

            ^
fill.c:35:10: error: stray '\310' in program
          Enunț

          ^
fill.c:35:10: error: stray '\233' in program
fill.c:41:1: error: stray '\304' in program
 Postată de  Clasa  Intrare/ieșire  Limită timp  Limită memorie  Sursa problemei  Autor  Dificultate  Scorul tău

 ^
fill.c:41:1: error: stray '\203' in program
fill.c:41:1: error: stray '\310' in program
fill.c:41:1: error: stray '\231' in program
fill.c:41:1: error: stray '\304' in program
fill.c:41:1: error: stray '\203' in program
fill.c:41:1: error: stray '\304' in program
fill.c:41:1: error: stray '\203' in program
fill.c:41:1: error: stray '\304' in program
fill.c:41:1: error: stray '\203' in program
fill.c:46:2: error: stray '\310' in program
  ușoară  -

  ^
fill.c:46:2: error: stray '\231' in program
fill.c:46:2: error: stray '\304' in program
fill.c:46:2: error: stray '\203' in program
fill.c:47:6: error: "Fill" is not a valid filename
 #837 Fill

      ^
fill.c:56:5: error: stray '\310' in program
     Enunț

     ^
fill.c:56:5: error: stray '\233' in program
fill.c:57:5: error: stray '\310' in program
     Soluția oficială 1

     ^
fill.c:57:5: error: stray '\233' in program
fill.c:57:5: error: stray '\304' in program
fill.c:57:5: error: stray '\203' in program
fill.c:58:5: error: stray '\310' in program
     Soluții

     ^
fill.c:58:5: error: stray '\233' in program
fill.c:60:1: error: stray '\310' in program
 Cerința

 ^
fill.c:60:1: error: stray '\233' in program
fill.c:62:1: error: stray '\304' in program
 Se dă o matrice cu n linii și m coloane și elemente 0 sau 1, care reprezintă harta unei planete, în care 1 înseamnă uscat, iar 0 înseamnă apă. Două elemente 1 care se învecinează pe linie sau pe coloană (nu și pe diagonală) fac parte din același continent.

 ^
fill.c:62:1: error: stray '\203' in program
fill.c:62:1: error: stray '\310' in program
fill.c:62:1: error: stray '\231' in program
fill.c:62:1: error: stray '\310' in program
fill.c:62:1: error: stray '\231' in program
fill.c:62:1: error: stray '\304' in program
fill.c:62:1: error: stray '\203' in program
fill.c:62:1: error: stray '\303' in program
fill.c:62:1: error: stray '\256' in program
fill.c:62:1: error: stray '\303' in program
fill.c:62:1: error: stray '\256' in program
fill.c:62:1: error: stray '\304' in program
fill.c:62:1: error: stray '\203' in program
fill.c:62:1: error: stray '\303' in program
fill.c:62:1: error: stray '\256' in program
fill.c:62:1: error: stray '\304' in program
fill.c:62:1: error: stray '\203' in program
fill.c:62:1: error: stray '\304' in program
fill.c:62:1: error: stray '\203' in program
fill.c:62:1: error: stray '\304' in program
fill.c:62:1: error: stray '\203' in program
fill.c:62:1: error: stray '\303' in program
fill.c:62:1: error: stray '\256' in program
fill.c:62:1: error: stray '\304' in program
fill.c:62:1: error: stray '\203' in program
fill.c:62:1: error: stray '\304' in program
fill.c:62:1: error: stray '\203' in program
fill.c:62:1: error: stray '\310' in program
fill.c:62:1: error: stray '\231' in program
fill.c:62:1: error: stray '\304' in program
fill.c:62:1: error: stray '\203' in program
fill.c:62:1: error: stray '\310' in program
fill.c:62:1: error: stray '\231' in program
fill.c:64:1: error: stray '\304' in program
 Să se determine câte continente sunt pe hartă.

 ^
fill.c:64:1: error: stray '\203' in program
fill.c:64:1: error: stray '\303' in program
fill.c:64:1: error: stray '\242' in program
fill.c:64:1: error: stray '\304' in program
fill.c:64:1: error: stray '\203' in program
fill.c:67:1: error: stray '\310' in program
 Fișierul de intrare fill.in conține pe prima linie numerele n m. Următoarele n linii conțin câte m elemente, 0 sau 1, cu semnificația din enunț.

 ^
fill.c:67:1: error: stray '\231' in program
fill.c:67:1: error: stray '\310' in program
fill.c:67:1: error: stray '\233' in program
fill.c:67:1: error: stray '\304' in program
fill.c:67:1: error: stray '\203' in program
fill.c:67:1: error: stray '\310' in program
fill.c:67:1: error: stray '\233' in program
fill.c:67:1: error: stray '\303' in program
fill.c:67:1: error: stray '\242' in program
fill.c:67:1: error: stray '\310' in program
fill.c:67:1: error: stray '\233' in program
fill.c:67:1: error: stray '\310' in program
fill.c:67:1: error: stray '\233' in program
fill.c:68:1: error: stray '\310' in program
 Date de ieșire

 ^
fill.c:68:1: error: stray '\231' in program
fill.c:70:1: error: stray '\310' in program
 Fișierul de ieșire fill.out va conține pe prima linie numărul C de continente existente.

 ^
fill.c:70:1: error: stray '\231' in program
fill.c:70:1: error: stray '\310' in program
fill.c:70:1: error: stray '\231' in program
fill.c:70:1: error: stray '\310' in program
fill.c:70:1: error: stray '\233' in program
fill.c:70:1: error: stray '\304' in program
fill.c:70:1: error: stray '\203' in program
fill.c:71:1: error: stray '\310' in program
 Restricții și precizări

 ^
fill.c:71:1: error: stray '\233' in program
fill.c:71:1: error: stray '\310' in program
fill.c:71:1: error: stray '\231' in program
fill.c:71:1: error: stray '\304' in program
fill.c:71:1: error: stray '\203' in program
fill.c:73:5: error: stray '\342' in program
     1 ≤ n , m ≤ 100

     ^
fill.c:73:5: error: stray '\211' in program
fill.c:73:5: error: stray '\244' in program
fill.c:73:5: error: stray '\342' in program
fill.c:73:5: error: stray '\211' in program
fill.c:73:5: error: stray '\244' in program
fill.c:81:1: error: stray '\304' in program
 Postată de Clasa Intrare/ieșire Limită timp Limită memorie Sursa problemei Autor Dificultate Scorul tău

 ^
fill.c:81:1: error: stray '\203' in program
fill.c:81:1: error: stray '\310' in program
fill.c:81:1: error: stray '\231' in program
fill.c:81:1: error: stray '\304' in program
fill.c:81:1: error: stray '\203' in program
fill.c:81:1: error: stray '\304' in program
fill.c:81:1: error: stray '\203' in program
fill.c:81:1: error: stray '\304' in program
fill.c:81:1: error: stray '\203' in program
fill.c:109:5: error: stray '\310' in program
     ușoară   

     ^
fill.c:109:5: error: stray '\231' in program
fill.c:109:5: error: stray '\304' in program
fill.c:109:5: error: stray '\203' in program
fill.c:181:10: error: stray '\310' in program
          Enunț

          ^
fill.c:181:10: error: stray '\233' in program
fill.c:188:12: error: stray '\310' in program
            Soluția oficială 1

            ^
fill.c:188:12: error: stray '\233' in program
fill.c:188:12: error: stray '\304' in program
fill.c:188:12: error: stray '\203' in program
fill.c:194:5: error: stray '\310' in program
     Soluții

     ^
fill.c:194:5: error: stray '\233' in program
fill.c:208:1: error: stray '\310' in program
 Cerința

 ^
fill.c:208:1: error: stray '\233' in program
fill.c:211:1: error: stray '\304' in program
 Se dă o matrice cu n linii și m coloane și elemente 0 sau 1, care reprezintă harta unei planete, în care 1  înseamnă uscat, iar 0 înseamnă apă. Două elemente 1 care se învecinează pe linie sau pe coloană (nu și pe diagonală) fac parte din același continent.

 ^
fill.c:211:1: error: stray '\203' in program
fill.c:211:1: error: stray '\310' in program
fill.c:211:1: error: stray '\231' in program
fill.c:211:1: error: stray '\310' in program
fill.c:211:1: error: stray '\231' in program
fill.c:211:1: error: stray '\304' in program
fill.c:211:1: error: stray '\203' in program
fill.c:211:1: error: stray '\303' in program
fill.c:211:1: error: stray '\256' in program
fill.c:211:1: error: stray '\303' in program
fill.c:211:1: error: stray '\256' in program
fill.c:211:1: error: stray '\304' in program
fill.c:211:1: error: stray '\203' in program
fill.c:211:1: error: stray '\303' in program
fill.c:211:1: error: stray '\256' in program
fill.c:211:1: error: stray '\304' in program
fill.c:211:1: error: stray '\203' in program
fill.c:211:1: error: stray '\304' in program
fill.c:211:1: error: stray '\203' in program
fill.c:211:1: error: stray '\304' in program
fill.c:211:1: error: stray '\203' in program
fill.c:211:1: error: stray '\303' in program
fill.c:211:1: error: stray '\256' in program
fill.c:211:1: error: stray '\304' in program
fill.c:211:1: error: stray '\203' in program
fill.c:211:1: error: stray '\304' in program
fill.c:211:1: error: stray '\203' in program
fill.c:211:1: error: stray '\310' in program
fill.c:211:1: error: stray '\231' in program
fill.c:211:1: error: stray '\304' in program
fill.c:211:1: error: stray '\203' in program
fill.c:211:1: error: stray '\310' in program
fill.c:211:1: error: stray '\231' in program
fill.c:214:1: error: stray '\304' in program
 Să se determine câte continente sunt pe hartă.

 ^
fill.c:214:1: error: stray '\203' in program
fill.c:214:1: error: stray '\303' in program
fill.c:214:1: error: stray '\242' in program
fill.c:214:1: error: stray '\304' in program
fill.c:214:1: error: stray '\203' in program
fill.c:220:1: error: stray '\310' in program
 Fișierul de intrare fill.in conține pe prima linie numerele n m. Următoarele n linii conțin câte m elemente, 0 sau 1, cu semnificația din enunț.

 ^
fill.c:220:1: error: stray '\231' in program
fill.c:220:1: error: stray '\310' in program
fill.c:220:1: error: stray '\233' in program
fill.c:220:1: error: stray '\304' in program
fill.c:220:1: error: stray '\203' in program
fill.c:220:1: error: stray '\310' in program
fill.c:220:1: error: stray '\233' in program
fill.c:220:1: error: stray '\303' in program
fill.c:220:1: error: stray '\242' in program
fill.c:220:1: error: stray '\310' in program
fill.c:220:1: error: stray '\233' in program
fill.c:220:1: error: stray '\310' in program
fill.c:220:1: error: stray '\233' in program
fill.c:223:1: error: stray '\310' in program
 Date de ieșire

 ^
fill.c:223:1: error: stray '\231' in program
fill.c:226:1: error: stray '\310' in program
 Fișierul de ieșire fill.out va conține pe prima linie numărul C de continente existente.

 ^
fill.c:226:1: error: stray '\231' in program
fill.c:226:1: error: stray '\310' in program
fill.c:226:1: error: stray '\231' in program
fill.c:226:1: error: stray '\310' in program
fill.c:226:1: error: stray '\233' in program
fill.c:226:1: error: stray '\304' in program
fill.c:226:1: error: stray '\203' in program
fill.c:229:1: error: stray '\310' in program
 Restricții și precizări

 ^
fill.c:229:1: error: stray '\233' in program
fill.c:229:1: error: stray '\310' in program
fill.c:229:1: error: stray '\231' in program
fill.c:229:1: error: stray '\304' in program
fill.c:229:1: error: stray '\203' in program
fill.c:232:5: error: stray '\342' in program
     1 ≤ n , m ≤ 100

     ^
fill.c:232:5: error: stray '\211' in program
fill.c:232:5: error: stray '\244' in program
fill.c:232:5: error: stray '\342' in program
fill.c:232:5: error: stray '\211' in program
fill.c:232:5: error: stray '\244' in program
fill.c:896:10: error: stray '\310' in program
fill.c:896:10: error: stray '\233' in program
fill.c:903:12: error: stray '\310' in program
fill.c:903:12: error: stray '\233' in program
fill.c:903:12: error: stray '\304' in program
fill.c:903:12: error: stray '\203' in program
fill.c:909:5: error: stray '\310' in program
fill.c:909:5: error: stray '\233' in program
fill.c:923:1: error: stray '\310' in program
fill.c:923:1: error: stray '\233' in program
fill.c:926:1: error: stray '\304' in program
fill.c:926:1: error: stray '\203' in program
fill.c:926:1: error: stray '\310' in program
fill.c:926:1: error: stray '\231' in program
fill.c:926:1: error: stray '\310' in program
fill.c:926:1: error: stray '\231' in program
fill.c:926:1: error: stray '\304' in program
fill.c:926:1: error: stray '\203' in program
fill.c:926:1: error: stray '\303' in program
fill.c:926:1: error: stray '\256' in program
fill.c:926:1: error: stray '\303' in program
fill.c:926:1: error: stray '\256' in program
fill.c:926:1: error: stray '\304' in program
fill.c:926:1: error: stray '\203' in program
fill.c:926:1: error: stray '\303' in program
fill.c:926:1: error: stray '\256' in program
fill.c:926:1: error: stray '\304' in program
fill.c:926:1: error: stray '\203' in program
fill.c:926:1: error: stray '\304' in program
fill.c:926:1: error: stray '\203' in program
fill.c:926:1: error: stray '\304' in program
fill.c:926:1: error: stray '\203' in program
fill.c:926:1: error: stray '\303' in program
fill.c:926:1: error: stray '\256' in program
fill.c:926:1: error: stray '\304' in program
fill.c:926:1: error: stray '\203' in program
fill.c:926:1: error: stray '\304' in program
fill.c:926:1: error: stray '\203' in program
fill.c:926:1: error: stray '\310' in program
fill.c:926:1: error: stray '\231' in program
fill.c:926:1: error: stray '\304' in program
fill.c:926:1: error: stray '\203' in program
fill.c:926:1: error: stray '\310' in program
fill.c:926:1: error: stray '\231' in program
fill.c:929:1: error: stray '\304' in program
fill.c:929:1: error: stray '\203' in program
fill.c:929:1: error: stray '\303' in program
fill.c:929:1: error: stray '\242' in program
fill.c:929:1: error: stray '\304' in program
fill.c:929:1: error: stray '\203' in program
fill.c:935:1: error: stray '\310' in program
fill.c:935:1: error: stray '\231' in program
fill.c:935:1: error: stray '\310' in program
fill.c:935:1: error: stray '\233' in program
fill.c:935:1: error: stray '\304' in program
fill.c:935:1: error: stray '\203' in program
fill.c:935:1: error: stray '\310' in program
fill.c:935:1: error: stray '\233' in program
fill.c:935:1: error: stray '\303' in program
fill.c:935:1: error: stray '\242' in program
fill.c:935:1: error: stray '\310' in program
fill.c:935:1: error: stray '\233' in program
fill.c:935:1: error: stray '\310' in program
fill.c:935:1: error: stray '\233' in program
fill.c:938:1: error: stray '\310' in program
fill.c:938:1: error: stray '\231' in program
fill.c:941:1: error: stray '\310' in program
fill.c:941:1: error: stray '\231' in program
fill.c:941:1: error: stray '\310' in program
fill.c:941:1: error: stray '\231' in program
fill.c:941:1: error: stray '\310' in program
fill.c:941:1: error: stray '\233' in program
fill.c:941:1: error: stray '\304' in program
fill.c:941:1: error: stray '\203' in program
fill.c:944:1: error: stray '\310' in program
fill.c:944:1: error: stray '\233' in program
fill.c:944:1: error: stray '\310' in program
fill.c:944:1: error: stray '\231' in program
fill.c:944:1: error: stray '\304' in program
fill.c:944:1: error: stray '\203' in program
fill.c:947:5: error: stray '\342' in program
fill.c:947:5: error: stray '\211' in program
fill.c:947:5: error: stray '\244' in program
fill.c:947:5: error: stray '\342' in program
fill.c:947:5: error: stray '\211' in program
fill.c:947:5: error: stray '\244' in program
fill.c:955:1: error: stray '\304' in program
fill.c:955:1: error: stray '\203' in program
fill.c:957:5: error: stray '\310' in program
fill.c:957:5: error: stray '\231' in program
fill.c:958:5: error: stray '\304' in program
fill.c:958:5: error: stray '\203' in program
fill.c:959:5: error: stray '\304' in program
fill.c:959:5: error: stray '\203' in program
fill.c:963:8: error: stray '\304' in program
fill.c:963:8: error: stray '\203' in program
fill.c:993:5: error: stray '\310' in program
fill.c:993:5: error: stray '\231' in program
fill.c:993:5: error: stray '\304' in program
fill.c:993:5: error: stray '\203' in program
fill.c:893:10: error: stray '\310' in program
fill.c:893:10: error: stray '\233' in program
fill.c:900:12: error: stray '\310' in program
fill.c:900:12: error: stray '\233' in program
fill.c:900:12: error: stray '\304' in program
fill.c:900:12: error: stray '\203' in program
fill.c:906:5: error: stray '\310' in program
fill.c:906:5: error: stray '\233' in program
fill.c:920:1: error: stray '\310' in program
fill.c:920:1: error: stray '\233' in program

cc1: out of memory allocating 1677721600 bytes after a total of 450560 bytes

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

Du-te sus!