Detalii evaluare #30728010

Rezumat problemă

Scrieți un program care citește de la tastatură două numere naturale din intervalul [2,50], n și m, și elementele unui tablou bidimensional cu n linii și m coloane, numere naturale distincte din intervalul [0,104].

Programul interschimbă valoarea minimă din ultima coloană a tabloului cu valoarea minimă din prima coloană a tabloului, apoi afișează pe ecran tabloul modificat, câte o linie a tabloului pe câte o linie a ecranului, elementele fiecărei linii fiind separate prin câte un spațiu.

Detalii

Problema Matrice10 Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #30728010 Utilizator Dariusz 15 (dariusnachila)
Fișier matrice10.cpp Dimensiune 690 B
Data încărcării 15 Septembrie 2021, 18:38 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

matrice10.cpp:6:1: error: stray '\302' in program
    cin >> n >> m;

 ^
matrice10.cpp:6:1: error: stray '\240' in program
matrice10.cpp:6:1: error: stray '\302' in program
matrice10.cpp:6:1: error: stray '\240' in program
matrice10.cpp:7:1: error: stray '\302' in program
    for (i=0; i<n; ++i)

 ^
matrice10.cpp:7:1: error: stray '\240' in program
matrice10.cpp:7:1: error: stray '\302' in program
matrice10.cpp:7:1: error: stray '\240' in program
matrice10.cpp:8:1: error: stray '\302' in program
        for (j=0; j<m; ++j)

 ^
matrice10.cpp:8:1: error: stray '\240' in program
matrice10.cpp:8:1: error: stray '\302' in program
matrice10.cpp:8:1: error: stray '\240' in program
matrice10.cpp:8:1: error: stray '\302' in program
matrice10.cpp:8:1: error: stray '\240' in program
matrice10.cpp:8:1: error: stray '\302' in program
matrice10.cpp:8:1: error: stray '\240' in program
matrice10.cpp:9:1: error: stray '\302' in program
            cin >> v[i][j];

 ^
matrice10.cpp:9:1: error: stray '\240' in program
matrice10.cpp:9:1: error: stray '\302' in program
matrice10.cpp:9:1: error: stray '\240' in program
matrice10.cpp:9:1: error: stray '\302' in program
matrice10.cpp:9:1: error: stray '\240' in program
matrice10.cpp:9:1: error: stray '\302' in program
matrice10.cpp:9:1: error: stray '\240' in program
matrice10.cpp:9:1: error: stray '\302' in program
matrice10.cpp:9:1: error: stray '\240' in program
matrice10.cpp:9:1: error: stray '\302' in program
matrice10.cpp:9:1: error: stray '\240' in program
matrice10.cpp:10:1: error: stray '\302' in program
    minp=v[0][0]; lp=0;

 ^
matrice10.cpp:10:1: error: stray '\240' in program
matrice10.cpp:10:1: error: stray '\302' in program
matrice10.cpp:10:1: error: stray '\240' in program
matrice10.cpp:11:1: error: stray '\302' in program
    for (i=1; i<n; ++i)

 ^
matrice10.cpp:11:1: error: stray '\240' in program
matrice10.cpp:11:1: error: stray '\302' in program
matrice10.cpp:11:1: error: stray '\240' in program
matrice10.cpp:12:1: error: stray '\302' in program
        if (v[i][0]<minp)

 ^
matrice10.cpp:12:1: error: stray '\240' in program
matrice10.cpp:12:1: error: stray '\302' in program
matrice10.cpp:12:1: error: stray '\240' in program
matrice10.cpp:12:1: error: stray '\302' in program
matrice10.cpp:12:1: error: stray '\240' in program
matrice10.cpp:12:1: error: stray '\302' in program
matrice10.cpp:12:1: error: stray '\240' in program
matrice10.cpp:13:1: error: stray '\302' in program
    {

 ^
matrice10.cpp:13:1: error: stray '\240' in program
matrice10.cpp:13:1: error: stray '\302' in program
matrice10.cpp:13:1: error: stray '\240' in program
matrice10.cpp:14:1: error: stray '\302' in program
        minp=v[i][0]; lp=i;

 ^
matrice10.cpp:14:1: error: stray '\240' in program
matrice10.cpp:14:1: error: stray '\302' in program
matrice10.cpp:14:1: error: stray '\240' in program
matrice10.cpp:14:1: error: stray '\302' in program
matrice10.cpp:14:1: error: stray '\240' in program
matrice10.cpp:14:1: error: stray '\302' in program
matrice10.cpp:14:1: error: stray '\240' in program
matrice10.cpp:15:1: error: stray '\302' in program
    }

 ^
matrice10.cpp:15:1: error: stray '\240' in program
matrice10.cpp:15:1: error: stray '\302' in program
matrice10.cpp:15:1: error: stray '\240' in program
matrice10.cpp:16:1: error: stray '\302' in program
    minu=v[0][m-1]; lu=0;

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

 ^
matrice10.cpp:17:1: error: stray '\240' in program
matrice10.cpp:17:1: error: stray '\302' in program
matrice10.cpp:17:1: error: stray '\240' in program
matrice10.cpp:18:1: error: stray '\302' in program
        if (v[i][m-1]<minu)

 ^
matrice10.cpp:18:1: error: stray '\240' in program
matrice10.cpp:18:1: error: stray '\302' in program
matrice10.cpp:18:1: error: stray '\240' in program
matrice10.cpp:18:1: error: stray '\302' in program
matrice10.cpp:18:1: error: stray '\240' in program
matrice10.cpp:18:1: error: stray '\302' in program
matrice10.cpp:18:1: error: stray '\240' in program
matrice10.cpp:19:1: error: stray '\302' in program
    {

 ^
matrice10.cpp:19:1: error: stray '\240' in program
matrice10.cpp:19:1: error: stray '\302' in program
matrice10.cpp:19:1: error: stray '\240' in program
matrice10.cpp:20:1: error: stray '\302' in program
        minu=v[i][m-1]; lu=i;

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

 ^
matrice10.cpp:21:1: error: stray '\240' in program
matrice10.cpp:21:1: error: stray '\302' in program
matrice10.cpp:21:1: error: stray '\240' in program
matrice10.cpp:22:1: error: stray '\302' in program
    int t=v[lp][0];

 ^
matrice10.cpp:22:1: error: stray '\240' in program
matrice10.cpp:22:1: error: stray '\302' in program
matrice10.cpp:22:1: error: stray '\240' in program
matrice10.cpp:23:1: error: stray '\302' in program
    v[lp][0]=v[lu][m-1];

 ^
matrice10.cpp:23:1: error: stray '\240' in program
matrice10.cpp:23:1: error: stray '\302' in program
matrice10.cpp:23:1: error: stray '\240' in program
matrice10.cpp:24:1: error: stray '\302' in program
    v[lu][m-1]=t;

 ^
matrice10.cpp:24:1: error: stray '\240' in program
matrice10.cpp:24:1: error: stray '\302' in program
matrice10.cpp:24:1: error: stray '\240' in program
matrice10.cpp:25:1: error: stray '\302' in program
    for (i=0; i<n; ++i)

 ^
matrice10.cpp:25:1: error: stray '\240' in program
matrice10.cpp:25:1: error: stray '\302' in program
matrice10.cpp:25:1: error: stray '\240' in program
matrice10.cpp:26:1: error: stray '\302' in program
    {

 ^
matrice10.cpp:26:1: error: stray '\240' in program
matrice10.cpp:26:1: error: stray '\302' in program
matrice10.cpp:26:1: error: stray '\240' in program
matrice10.cpp:27:1: error: stray '\302' in program
        for (j=0; j<m; ++j)

 ^
matrice10.cpp:27:1: error: stray '\240' in program
matrice10.cpp:27:1: error: stray '\302' in program
matrice10.cpp:27:1: error: stray '\240' in program
matrice10.cpp:27:1: error: stray '\302' in program
matrice10.cpp:27:1: error: stray '\240' in program
matrice10.cpp:27:1: error: stray '\302' in program
matrice10.cpp:27:1: error: stray '\240' in program
matrice10.cpp:28:1: error: stray '\302' in program
            cout << v[i][j] << " ";

 ^
matrice10.cpp:28:1: error: stray '\240' in program
matrice10.cpp:28:1: error: stray '\302' in program
matrice10.cpp:28:1: error: stray '\240' in program
matrice10.cpp:28:1: error: stray '\302' in program
matrice10.cpp:28:1: error: stray '\240' in program
matrice10.cpp:28:1: error: stray '\302' in program
matrice10.cpp:28:1: error: stray '\240' in program
matrice10.cpp:28:1: error: stray '\302' in program
matrice10.cpp:28:1: error: stray '\240' in program
matrice10.cpp:28:1: error: stray '\302' in program
matrice10.cpp:28:1: error: stray '\240' in program
matrice10.cpp:29:1: error: stray '\302' in program
        cout << "\n";

 ^
matrice10.cpp:29:1: error: stray '\240' in program
matrice10.cpp:29:1: error: stray '\302' in program
matrice10.cpp:29:1: error: stray '\240' in program
matrice10.cpp:29:1: error: stray '\302' in program
matrice10.cpp:29:1: error: stray '\240' in program
matrice10.cpp:29:1: error: stray '\302' in program
matrice10.cpp:29:1: error: stray '\240' in program
matrice10.cpp:30:1: error: stray '\302' in program
    }

 ^
matrice10.cpp:30:1: error: stray '\240' in program
matrice10.cpp:30:1: error: stray '\302' in program
matrice10.cpp:30: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 Matrice10 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ă.