Detalii evaluare #8970132

Rezumat problemă

#1871 UbuPH

Într-o zi telefonul lui Max s-a stricat.Văzând o reclamă la noul telefon cu sistemul de operare Ubuntu, s-a gândit să achiziționeze și el unul.

Drumul de la casa lui la magazin poate fi reprezentat ca o matrice cu n linii și m coloane. În fiecare element al matricei este o barieră; pentru a trece de bariere trebuie plătită o sumă de bani, care nu este aceeași pentru fiecare barieră și poate fi chiar 0.

Casa lui se află pe coordonatele (ic,jc), iar magazinul la coordonatele (im,jm).
Pentru că trebuie să cumpere telefonul, este nevoie ca drumul lui sa fie cât mai puțin costisitor, plătind la bariere o sumă totală minimă.

Detalii

Problema UbuPH Operații I/O ubuph.in/ubuph.out
Limita timp 1.3 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #8970132 Utilizator Gonda David (DavidGondaLorian)
Fișier ubuph.cpp Dimensiune 1.34 KB
Data încărcării 22 Martie 2018, 20:26 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

ubuph.cpp:12:1: error: stray '\302' in program
     fin>>n>>m;

 ^
ubuph.cpp:12:1: error: stray '\240' in program
ubuph.cpp:12:1: error: stray '\302' in program
ubuph.cpp:12:1: error: stray '\240' in program
ubuph.cpp:12:1: error: stray '\302' in program
ubuph.cpp:12:1: error: stray '\240' in program
ubuph.cpp:12:1: error: stray '\302' in program
ubuph.cpp:12:1: error: stray '\240' in program
ubuph.cpp:13:1: error: stray '\302' in program
     for (int i=1;i<=n;++i)

 ^
ubuph.cpp:13:1: error: stray '\240' in program
ubuph.cpp:13:1: error: stray '\302' in program
ubuph.cpp:13:1: error: stray '\240' in program
ubuph.cpp:13:1: error: stray '\302' in program
ubuph.cpp:13:1: error: stray '\240' in program
ubuph.cpp:13:1: error: stray '\302' in program
ubuph.cpp:13:1: error: stray '\240' in program
ubuph.cpp:14:1: error: stray '\302' in program
         for(int j=1;j<=m;++j)

 ^
ubuph.cpp:14:1: error: stray '\240' in program
ubuph.cpp:14:1: error: stray '\302' in program
ubuph.cpp:14:1: error: stray '\240' in program
ubuph.cpp:14:1: error: stray '\302' in program
ubuph.cpp:14:1: error: stray '\240' in program
ubuph.cpp:14:1: error: stray '\302' in program
ubuph.cpp:14:1: error: stray '\240' in program
ubuph.cpp:14:1: error: stray '\302' in program
ubuph.cpp:14:1: error: stray '\240' in program
ubuph.cpp:14:1: error: stray '\302' in program
ubuph.cpp:14:1: error: stray '\240' in program
ubuph.cpp:14:1: error: stray '\302' in program
ubuph.cpp:14:1: error: stray '\240' in program
ubuph.cpp:14:1: error: stray '\302' in program
ubuph.cpp:14:1: error: stray '\240' in program
ubuph.cpp:15:1: error: stray '\302' in program
         {

 ^
ubuph.cpp:15:1: error: stray '\240' in program
ubuph.cpp:15:1: error: stray '\302' in program
ubuph.cpp:15:1: error: stray '\240' in program
ubuph.cpp:15:1: error: stray '\302' in program
ubuph.cpp:15:1: error: stray '\240' in program
ubuph.cpp:15:1: error: stray '\302' in program
ubuph.cpp:15:1: error: stray '\240' in program
ubuph.cpp:15:1: error: stray '\302' in program
ubuph.cpp:15:1: error: stray '\240' in program
ubuph.cpp:15:1: error: stray '\302' in program
ubuph.cpp:15:1: error: stray '\240' in program
ubuph.cpp:15:1: error: stray '\302' in program
ubuph.cpp:15:1: error: stray '\240' in program
ubuph.cpp:15:1: error: stray '\302' in program
ubuph.cpp:15:1: error: stray '\240' in program
ubuph.cpp:16:1: error: stray '\302' in program
             fin>>A[i][j];

 ^
ubuph.cpp:16:1: error: stray '\240' in program
ubuph.cpp:16:1: error: stray '\302' in program
ubuph.cpp:16:1: error: stray '\240' in program
ubuph.cpp:16:1: error: stray '\302' in program
ubuph.cpp:16:1: error: stray '\240' in program
ubuph.cpp:16:1: error: stray '\302' in program
ubuph.cpp:16:1: error: stray '\240' in program
ubuph.cpp:16:1: error: stray '\302' in program
ubuph.cpp:16:1: error: stray '\240' in program
ubuph.cpp:16:1: error: stray '\302' in program
ubuph.cpp:16:1: error: stray '\240' in program
ubuph.cpp:16:1: error: stray '\302' in program
ubuph.cpp:16:1: error: stray '\240' in program
ubuph.cpp:16:1: error: stray '\302' in program
ubuph.cpp:16:1: error: stray '\240' in program
ubuph.cpp:16:1: error: stray '\302' in program
ubuph.cpp:16:1: error: stray '\240' in program
ubuph.cpp:16:1: error: stray '\302' in program
ubuph.cpp:16:1: error: stray '\240' in program
ubuph.cpp:16:1: error: stray '\302' in program
ubuph.cpp:16:1: error: stray '\240' in program
ubuph.cpp:16:1: error: stray '\302' in program
ubuph.cpp:16:1: error: stray '\240' in program
ubuph.cpp:17:1: error: stray '\302' in program
             B[i][j]=INF;

 ^
ubuph.cpp:17:1: error: stray '\240' in program
ubuph.cpp:17:1: error: stray '\302' in program
ubuph.cpp:17:1: error: stray '\240' in program
ubuph.cpp:17:1: error: stray '\302' in program
ubuph.cpp:17:1: error: stray '\240' in program
ubuph.cpp:17:1: error: stray '\302' in program
ubuph.cpp:17:1: error: stray '\240' in program
ubuph.cpp:17:1: error: stray '\302' in program
ubuph.cpp:17:1: error: stray '\240' in program
ubuph.cpp:17:1: error: stray '\302' in program
ubuph.cpp:17:1: error: stray '\240' in program
ubuph.cpp:17:1: error: stray '\302' in program
ubuph.cpp:17:1: error: stray '\240' in program
ubuph.cpp:17:1: error: stray '\302' in program
ubuph.cpp:17:1: error: stray '\240' in program
ubuph.cpp:17:1: error: stray '\302' in program
ubuph.cpp:17:1: error: stray '\240' in program
ubuph.cpp:17:1: error: stray '\302' in program
ubuph.cpp:17:1: error: stray '\240' in program
ubuph.cpp:17:1: error: stray '\302' in program
ubuph.cpp:17:1: error: stray '\240' in program
ubuph.cpp:17:1: error: stray '\302' in program
ubuph.cpp:17:1: error: stray '\240' in program
ubuph.cpp:18:1: error: stray '\302' in program
         }

 ^
ubuph.cpp:18:1: error: stray '\240' in program
ubuph.cpp:18:1: error: stray '\302' in program
ubuph.cpp:18:1: error: stray '\240' in program
ubuph.cpp:18:1: error: stray '\302' in program
ubuph.cpp:18:1: error: stray '\240' in program
ubuph.cpp:18:1: error: stray '\302' in program
ubuph.cpp:18:1: error: stray '\240' in program
ubuph.cpp:18:1: error: stray '\302' in program
ubuph.cpp:18:1: error: stray '\240' in program
ubuph.cpp:18:1: error: stray '\302' in program
ubuph.cpp:18:1: error: stray '\240' in program
ubuph.cpp:18:1: error: stray '\302' in program
ubuph.cpp:18:1: error: stray '\240' in program
ubuph.cpp:18:1: error: stray '\302' in program
ubuph.cpp:18:1: error: stray '\240' in program
ubuph.cpp:19:1: error: stray '\302' in program
     fin>>im>>jm>>ic>>jc;

 ^
ubuph.cpp:19:1: error: stray '\240' in program
ubuph.cpp:19:1: error: stray '\302' in program
ubuph.cpp:19:1: error: stray '\240' in program
ubuph.cpp:19:1: error: stray '\302' in program
ubuph.cpp:19:1: error: stray '\240' in program
ubuph.cpp:19:1: error: stray '\302' in program
ubuph.cpp:19:1: error: stray '\240' in program
ubuph.cpp:20:1: error: stray '\302' in program
     fin.close();

 ^
ubuph.cpp:20:1: error: stray '\240' in program
ubuph.cpp:20:1: error: stray '\302' in program
ubuph.cpp:20:1: error: stray '\240' in program
ubuph.cpp:20:1: error: stray '\302' in program
ubuph.cpp:20:1: error: stray '\240' in program
ubuph.cpp:20:1: error: stray '\302' in program
ubuph.cpp:20:1: error: stray '\240' in program
ubuph.cpp:23:1: error: stray '\302' in program
 bool verif(int  i, int  j)// Verifica daca pozitia curenta se afla in matrice

 ^
ubuph.cpp:23:1: error: stray '\240' in program
ubuph.cpp:23:1: error: stray '\302' in program
ubuph.cpp:23:1: error: stray '\240' in program
ubuph.cpp:25:1: error: stray '\302' in program
     return 1<=i&&i<=n&&1<=j&&j<=m;

 ^
ubuph.cpp:25:1: error: stray '\240' in program
ubuph.cpp:25:1: error: stray '\302' in program
ubuph.cpp:25:1: error: stray '\240' in program
ubuph.cpp:25:1: error: stray '\302' in program
ubuph.cpp:25:1: error: stray '\240' in program
ubuph.cpp:25:1: error: stray '\302' in program
ubuph.cpp:25:1: error: stray '\240' in program
ubuph.cpp:25:1: error: stray '\302' in program
ubuph.cpp:25:1: error: stray '\240' in program
ubuph.cpp:29:1: error: stray '\302' in program
 {   B[ic][jc]=A[ic][jc];

 ^
ubuph.cpp:29:1: error: stray '\240' in program
ubuph.cpp:29:1: error: stray '\302' in program
ubuph.cpp:29:1: error: stray '\240' in program
ubuph.cpp:29:1: error: stray '\302' in program
ubuph.cpp:29:1: error: stray '\240' in program
ubuph.cpp:30:1: error: stray '\302' in program
     while (!Q.empty())

 ^
ubuph.cpp:30:1: error: stray '\240' in program
ubuph.cpp:30:1: error: stray '\302' in program
ubuph.cpp:30:1: error: stray '\240' in program
ubuph.cpp:30:1: error: stray '\302' in program
ubuph.cpp:30:1: error: stray '\240' in program
ubuph.cpp:30:1: error: stray '\302' in program
ubuph.cpp:30:1: error: stray '\240' in program
ubuph.cpp:31:1: error: stray '\302' in program
     {

 ^
ubuph.cpp:31:1: error: stray '\240' in program
ubuph.cpp:31:1: error: stray '\302' in program
ubuph.cpp:31:1: error: stray '\240' in program
ubuph.cpp:31:1: error: stray '\302' in program
ubuph.cpp:31:1: error: stray '\240' in program
ubuph.cpp:31:1: error: stray '\302' in program
ubuph.cpp:31:1: error: stray '\240' in program
ubuph.cpp:32:1: error: stray '\302' in program
         pair<int,int> P=Q.front();

 ^
ubuph.cpp:32:1: error: stray '\240' in program
ubuph.cpp:32:1: error: stray '\302' in program
ubuph.cpp:32:1: error: stray '\240' in program
ubuph.cpp:32:1: error: stray '\302' in program
ubuph.cpp:32:1: error: stray '\240' in program
ubuph.cpp:32:1: error: stray '\302' in program
ubuph.cpp:32:1: error: stray '\240' in program
ubuph.cpp:32:1: error: stray '\302' in program
ubuph.cpp:32:1: error: stray '\240' in program
ubuph.cpp:32:1: error: stray '\302' in program
ubuph.cpp:32:1: error: stray '\240' in program
ubuph.cpp:32:1: error: stray '\302' in program
ubuph.cpp:32:1: error: stray '\240' in program
ubuph.cpp:32:1: error: stray '\302' in program
ubuph.cpp:32:1: error: stray '\240' in program
ubuph.cpp:32:1: error: stray '\302' in program
ubuph.cpp:32:1: error: stray '\240' in program
ubuph.cpp:33:1: error: stray '\302' in program
         for(int k=0;k<4;++k)

 ^
ubuph.cpp:33:1: error: stray '\240' in program
ubuph.cpp:33:1: error: stray '\302' in program
ubuph.cpp:33:1: error: stray '\240' in program
ubuph.cpp:33:1: error: stray '\302' in program
ubuph.cpp:33:1: error: stray '\240' in program
ubuph.cpp:33:1: error: stray '\302' in program
ubuph.cpp:33:1: error: stray '\240' in program
ubuph.cpp:33:1: error: stray '\302' in program
ubuph.cpp:33:1: error: stray '\240' in program
ubuph.cpp:33:1: error: stray '\302' in program
ubuph.cpp:33:1: error: stray '\240' in program
ubuph.cpp:33:1: error: stray '\302' in program
ubuph.cpp:33:1: error: stray '\240' in program
ubuph.cpp:33:1: error: stray '\302' in program
ubuph.cpp:33:1: error: stray '\240' in program
ubuph.cpp:33:1: error: stray '\302' in program
ubuph.cpp:33:1: error: stray '\240' in program
ubuph.cpp:34:1: error: stray '\302' in program
         {

 ^
ubuph.cpp:34:1: error: stray '\240' in program
ubuph.cpp:34:1: error: stray '\302' in program
ubuph.cpp:34:1: error: stray '\240' in program
ubuph.cpp:34:1: error: stray '\302' in program
ubuph.cpp:34:1: error: stray '\240' in program
ubuph.cpp:34:1: error: stray '\302' in program
ubuph.cpp:34:1: error: stray '\240' in program
ubuph.cpp:34:1: error: stray '\302' in program
ubuph.cpp:34:1: error: stray '\240' in program
ubuph.cpp:34:1: error: stray '\302' in program
ubuph.cpp:34:1: error: stray '\240' in program
ubuph.cpp:34:1: error: stray '\302' in program
ubuph.cpp:34:1: error: stray '\240' in program
ubuph.cpp:34:1: error: stray '\302' in program
ubuph.cpp:34:1: error: stray '\240' in program
ubuph.cpp:35:1: error: stray '\302' in program
             int i=P.first+di[k],j=P.second+dj[k];

 ^
ubuph.cpp:35:1: error: stray '\240' in program
ubuph.cpp:35:1: error: stray '\302' in program
ubuph.cpp:35:1: error: stray '\240' in program
ubuph.cpp:35:1: error: stray '\302' in program
ubuph.cpp:35:1: error: stray '\240' in program
ubuph.cpp:35:1: error: stray '\302' in program
ubuph.cpp:35:1: error: stray '\240' in program
ubuph.cpp:35:1: error: stray '\302' in program
ubuph.cpp:35:1: error: stray '\240' in program
ubuph.cpp:35:1: error: stray '\302' in program
ubuph.cpp:35:1: error: stray '\240' in program
ubuph.cpp:35:1: error: stray '\302' in program
ubuph.cpp:35:1: error: stray '\240' in program
ubuph.cpp:35:1: error: stray '\302' in program
ubuph.cpp:35:1: error: stray '\240' in program
ubuph.cpp:35:1: error: stray '\302' in program
ubuph.cpp:35:1: error: stray '\240' in program
ubuph.cpp:35:1: error: stray '\302' in program
ubuph.cpp:35:1: error: stray '\240' in program
ubuph.cpp:35:1: error: stray '\302' in program
ubuph.cpp:35:1: error: stray '\240' in program
ubuph.cpp:35:1: error: stray '\302' in program
ubuph.cpp:35:1: error: stray '\240' in program
ubuph.cpp:36:1: error: stray '\302' in program
             if(verif(i,j)&&B[i][j]>B[P.first][P.second]+A[i][j])

 ^
ubuph.cpp:36:1: error: stray '\240' in program
ubuph.cpp:36:1: error: stray '\302' in program
ubuph.cpp:36:1: error: stray '\240' in program
ubuph.cpp:36:1: error: stray '\302' in program
ubuph.cpp:36:1: error: stray '\240' in program
ubuph.cpp:36:1: error: stray '\302' in program
ubuph.cpp:36:1: error: stray '\240' in program
ubuph.cpp:36:1: error: stray '\302' in program
ubuph.cpp:36:1: error: stray '\240' in program
ubuph.cpp:36:1: error: stray '\302' in program
ubuph.cpp:36:1: error: stray '\240' in program
ubuph.cpp:36:1: error: stray '\302' in program
ubuph.cpp:36:1: error: stray '\240' in program
ubuph.cpp:36:1: error: stray '\302' in program
ubuph.cpp:36:1: error: stray '\240' in program
ubuph.cpp:36:1: error: stray '\302' in program
ubuph.cpp:36:1: error: stray '\240' in program
ubuph.cpp:36:1: error: stray '\302' in program
ubuph.cpp:36:1: error: stray '\240' in program
ubuph.cpp:36:1: error: stray '\302' in program
ubuph.cpp:36:1: error: stray '\240' in program
ubuph.cpp:36:1: error: stray '\302' in program
ubuph.cpp:36:1: error: stray '\240' in program
ubuph.cpp:37:1: error: stray '\302' in program
                 B[i][j]=B[P.first][P.second]+A[i][j],Q.push(make_pair(i,j));

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

 ^
ubuph.cpp:38:1: error: stray '\240' in program
ubuph.cpp:38:1: error: stray '\302' in program
ubuph.cpp:38:1: error: stray '\240' in program
ubuph.cpp:38:1: error: stray '\302' in program
ubuph.cpp:38:1: error: stray '\240' in program
ubuph.cpp:38:1: error: stray '\302' in program
ubuph.cpp:38:1: error: stray '\240' in program
ubuph.cpp:38:1: error: stray '\302' in program
ubuph.cpp:38:1: error: stray '\240' in program
ubuph.cpp:38:1: error: stray '\302' in program
ubuph.cpp:38:1: error: stray '\240' in program
ubuph.cpp:38:1: error: stray '\302' in program
ubuph.cpp:38:1: error: stray '\240' in program
ubuph.cpp:38:1: error: stray '\302' in program
ubuph.cpp:38:1: error: stray '\240' in program
ubuph.cpp:39:1: error: stray '\302' in program
         Q.pop();

 ^
ubuph.cpp:39:1: error: stray '\240' in program
ubuph.cpp:39:1: error: stray '\302' in program
ubuph.cpp:39:1: error: stray '\240' in program
ubuph.cpp:39:1: error: stray '\302' in program
ubuph.cpp:39:1: error: stray '\240' in program
ubuph.cpp:39:1: error: stray '\302' in program
ubuph.cpp:39:1: error: stray '\240' in program
ubuph.cpp:39:1: error: stray '\302' in program
ubuph.cpp:39:1: error: stray '\240' in program
ubuph.cpp:39:1: error: stray '\302' in program
ubuph.cpp:39:1: error: stray '\240' in program
ubuph.cpp:39:1: error: stray '\302' in program
ubuph.cpp:39:1: error: stray '\240' in program
ubuph.cpp:39:1: error: stray '\302' in program
ubuph.cpp:39:1: error: stray '\240' in program
ubuph.cpp:40:1: error: stray '\302' in program
     }

 ^
ubuph.cpp:40:1: error: stray '\240' in program
ubuph.cpp:40:1: error: stray '\302' in program
ubuph.cpp:40:1: error: stray '\240' in program
ubuph.cpp:40:1: error: stray '\302' in program
ubuph.cpp:40:1: error: stray '\240' in program
ubuph.cpp:40:1: error: stray '\302' in program
ubuph.cpp:40:1: error: stray '\240' in program
ubuph.cpp:43:1: error: stray '\302' in program
 int main()

 ^
ubuph.cpp:43:1: error: stray '\240' in program
ubuph.cpp:45:1: error: stray '\302' in program
     citire();

 ^
ubuph.cpp:45:1: error: stray '\240' in program
ubuph.cpp:45:1: error: stray '\302' in program
ubuph.cpp:45:1: error: stray '\240' in program
ubuph.cpp:45:1: error: stray '\302' in program
ubuph.cpp:45:1: error: stray '\240' in program
ubuph.cpp:45:1: error: stray '\302' in program
ubuph.cpp:45:1: error: stray '\240' in program
ubuph.cpp:46:1: error: stray '\302' in program
     Q.push(make_pair(ic,jc));

 ^
ubuph.cpp:46:1: error: stray '\240' in program
ubuph.cpp:46:1: error: stray '\302' in program
ubuph.cpp:46:1: error: stray '\240' in program
ubuph.cpp:46:1: error: stray '\302' in program
ubuph.cpp:46:1: error: stray '\240' in program
ubuph.cpp:46:1: error: stray '\302' in program
ubuph.cpp:46:1: error: stray '\240' in program
ubuph.cpp:47:1: error: stray '\302' in program
     Lee();

 ^
ubuph.cpp:47:1: error: stray '\240' in program
ubuph.cpp:47:1: error: stray '\302' in program
ubuph.cpp:47:1: error: stray '\240' in program
ubuph.cpp:47:1: error: stray '\302' in program
ubuph.cpp:47:1: error: stray '\240' in program
ubuph.cpp:47:1: error: stray '\302' in program
ubuph.cpp:47:1: error: stray '\240' in program
ubuph.cpp:48:1: error: stray '\302' in program
     ofstream g("ubuph.out");

 ^
ubuph.cpp:48:1: error: stray '\240' in program
ubuph.cpp:48:1: error: stray '\302' in program
ubuph.cpp:48:1: error: stray '\240' in program
ubuph.cpp:48:1: error: stray '\302' in program
ubuph.cpp:48:1: error: stray '\240' in program
ubuph.cpp:48:1: error: stray '\302' in program
ubuph.cpp:48:1: error: stray '\240' in program
ubuph.cpp:48:1: error: stray '\302' in program
ubuph.cpp:48:1: error: stray '\240' in program
ubuph.cpp:49:1: error: stray '\302' in program
     g<<B[im][jm];

 ^
ubuph.cpp:49:1: error: stray '\240' in program
ubuph.cpp:49:1: error: stray '\302' in program
ubuph.cpp:49:1: error: stray '\240' in program
ubuph.cpp:49:1: error: stray '\302' in program
ubuph.cpp:49:1: error: stray '\240' in program
ubuph.cpp:49:1: error: stray '\302' in program
ubuph.cpp:49:1: error: stray '\240' in program
ubuph.cpp:50:1: error: stray '\302' in program
     g.close();

 ^
ubuph.cpp:50:1: error: stray '\240' in program
ubuph.cpp:50:1: error: stray '\302' in program
ubuph.cpp:50:1: error: stray '\240' in program
ubuph.cpp:50:1: error: stray '\302' in program
ubuph.cpp:50:1: error: stray '\240' in program
ubuph.cpp:50:1: error: stray '\302' in program
ubuph.cpp:50:1: error: stray '\240' in program
ubuph.cpp:51:1: error: stray '\302' in program
     return 0;

 ^
ubuph.cpp:51:1: error: stray '\240' in program
ubuph.cpp:51:1: error: stray '\302' in program
ubuph.cpp:51:1: error: stray '\240' in program
ubuph.cpp:51:1: error: stray '\302' in program
ubuph.cpp:51:1: error: stray '\240' in program
ubuph.cpp:51:1: error: stray '\302' in program
ubuph.cpp:51:1: error: stray '\240' in program
ubuph.cpp:51:1: error: stray '\302' in program
ubuph.cpp:51:1: error: stray '\240' in program
ubuph.cpp:42:1: error: expected unqualified-id before 'for'
 for

 ^

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