Detalii evaluare #15620455

Rezumat problemă

Se dă un vector cu n numere naturale. Să se determine câte dintre perechile de elemente din vector sunt formate din valori cu aceeași sumă a cifrelor.

Detalii

Problema Numarare5 Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #15620455 Utilizator Ionescu Alex (alex_mario307)
Fișier numarare5.cpp Dimensiune 830 B
Data încărcării 02 Mai 2019, 14:46 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

numarare5.cpp:1:20: warning: extra tokens at end of #include directive [enabled by default]
 #include <iostream>;

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

 ^
numarare5.cpp:15:1: error: stray '\240' in program
numarare5.cpp:15:1: error: stray '\302' in program
numarare5.cpp:15:1: error: stray '\240' in program
numarare5.cpp:15:1: error: stray '\302' in program
numarare5.cpp:15:1: error: stray '\240' in program
numarare5.cpp:15:1: error: stray '\302' in program
numarare5.cpp:15:1: error: stray '\240' in program
numarare5.cpp:15:1: error: stray '\302' in program
numarare5.cpp:15:1: error: stray '\240' in program
numarare5.cpp:16:1: error: stray '\302' in program
           {

 ^
numarare5.cpp:16:1: error: stray '\240' in program
numarare5.cpp:16:1: error: stray '\302' in program
numarare5.cpp:16:1: error: stray '\240' in program
numarare5.cpp:16:1: error: stray '\302' in program
numarare5.cpp:16:1: error: stray '\240' in program
numarare5.cpp:16:1: error: stray '\302' in program
numarare5.cpp:16:1: error: stray '\240' in program
numarare5.cpp:16:1: error: stray '\302' in program
numarare5.cpp:16:1: error: stray '\240' in program
numarare5.cpp:16:1: error: stray '\302' in program
numarare5.cpp:16:1: error: stray '\240' in program
numarare5.cpp:17:1: error: stray '\302' in program
           s1=0;

 ^
numarare5.cpp:17:1: error: stray '\240' in program
numarare5.cpp:17:1: error: stray '\302' in program
numarare5.cpp:17:1: error: stray '\240' in program
numarare5.cpp:17:1: error: stray '\302' in program
numarare5.cpp:17:1: error: stray '\240' in program
numarare5.cpp:17:1: error: stray '\302' in program
numarare5.cpp:17:1: error: stray '\240' in program
numarare5.cpp:17:1: error: stray '\302' in program
numarare5.cpp:17:1: error: stray '\240' in program
numarare5.cpp:17:1: error: stray '\302' in program
numarare5.cpp:17:1: error: stray '\240' in program
numarare5.cpp:17:1: error: stray '\302' in program
numarare5.cpp:17:1: error: stray '\240' in program
numarare5.cpp:17:1: error: stray '\302' in program
numarare5.cpp:17:1: error: stray '\240' in program
numarare5.cpp:17:1: error: stray '\302' in program
numarare5.cpp:17:1: error: stray '\240' in program
numarare5.cpp:17:1: error: stray '\302' in program
numarare5.cpp:17:1: error: stray '\240' in program
numarare5.cpp:18:1: error: stray '\302' in program
           x=v[i];

 ^
numarare5.cpp:18:1: error: stray '\240' in program
numarare5.cpp:18:1: error: stray '\302' in program
numarare5.cpp:18:1: error: stray '\240' in program
numarare5.cpp:18:1: error: stray '\302' in program
numarare5.cpp:18:1: error: stray '\240' in program
numarare5.cpp:18:1: error: stray '\302' in program
numarare5.cpp:18:1: error: stray '\240' in program
numarare5.cpp:18:1: error: stray '\302' in program
numarare5.cpp:18:1: error: stray '\240' in program
numarare5.cpp:18:1: error: stray '\302' in program
numarare5.cpp:18:1: error: stray '\240' in program
numarare5.cpp:18:1: error: stray '\302' in program
numarare5.cpp:18:1: error: stray '\240' in program
numarare5.cpp:18:1: error: stray '\302' in program
numarare5.cpp:18:1: error: stray '\240' in program
numarare5.cpp:18:1: error: stray '\302' in program
numarare5.cpp:18:1: error: stray '\240' in program
numarare5.cpp:18:1: error: stray '\302' in program
numarare5.cpp:18:1: error: stray '\240' in program
numarare5.cpp:19:1: error: stray '\302' in program
           while(x!=0)

 ^
numarare5.cpp:19:1: error: stray '\240' in program
numarare5.cpp:19:1: error: stray '\302' in program
numarare5.cpp:19:1: error: stray '\240' in program
numarare5.cpp:19:1: error: stray '\302' in program
numarare5.cpp:19:1: error: stray '\240' in program
numarare5.cpp:19:1: error: stray '\302' in program
numarare5.cpp:19:1: error: stray '\240' in program
numarare5.cpp:19:1: error: stray '\302' in program
numarare5.cpp:19:1: error: stray '\240' in program
numarare5.cpp:19:1: error: stray '\302' in program
numarare5.cpp:19:1: error: stray '\240' in program
numarare5.cpp:19:1: error: stray '\302' in program
numarare5.cpp:19:1: error: stray '\240' in program
numarare5.cpp:19:1: error: stray '\302' in program
numarare5.cpp:19:1: error: stray '\240' in program
numarare5.cpp:20:1: error: stray '\302' in program
           {

 ^
numarare5.cpp:20:1: error: stray '\240' in program
numarare5.cpp:20:1: error: stray '\302' in program
numarare5.cpp:20:1: error: stray '\240' in program
numarare5.cpp:20:1: error: stray '\302' in program
numarare5.cpp:20:1: error: stray '\240' in program
numarare5.cpp:20:1: error: stray '\302' in program
numarare5.cpp:20:1: error: stray '\240' in program
numarare5.cpp:20:1: error: stray '\302' in program
numarare5.cpp:20:1: error: stray '\240' in program
numarare5.cpp:20:1: error: stray '\302' in program
numarare5.cpp:20:1: error: stray '\240' in program
numarare5.cpp:20:1: error: stray '\302' in program
numarare5.cpp:20:1: error: stray '\240' in program
numarare5.cpp:20:1: error: stray '\302' in program
numarare5.cpp:20:1: error: stray '\240' in program
numarare5.cpp:20:1: error: stray '\302' in program
numarare5.cpp:20:1: error: stray '\240' in program
numarare5.cpp:20:1: error: stray '\302' in program
numarare5.cpp:20:1: error: stray '\240' in program
numarare5.cpp:21:1: error: stray '\302' in program
               s1=s1+x%10;

 ^
numarare5.cpp:21:1: error: stray '\240' in program
numarare5.cpp:21:1: error: stray '\302' in program
numarare5.cpp:21:1: error: stray '\240' in program
numarare5.cpp:21:1: error: stray '\302' in program
numarare5.cpp:21:1: error: stray '\240' in program
numarare5.cpp:21:1: error: stray '\302' in program
numarare5.cpp:21:1: error: stray '\240' in program
numarare5.cpp:21:1: error: stray '\302' in program
numarare5.cpp:21:1: error: stray '\240' in program
numarare5.cpp:21:1: error: stray '\302' in program
numarare5.cpp:21:1: error: stray '\240' in program
numarare5.cpp:21:1: error: stray '\302' in program
numarare5.cpp:21:1: error: stray '\240' in program
numarare5.cpp:21:1: error: stray '\302' in program
numarare5.cpp:21:1: error: stray '\240' in program
numarare5.cpp:21:1: error: stray '\302' in program
numarare5.cpp:21:1: error: stray '\240' in program
numarare5.cpp:21:1: error: stray '\302' in program
numarare5.cpp:21:1: error: stray '\240' in program
numarare5.cpp:21:1: error: stray '\302' in program
numarare5.cpp:21:1: error: stray '\240' in program
numarare5.cpp:21:1: error: stray '\302' in program
numarare5.cpp:21:1: error: stray '\240' in program
numarare5.cpp:21:1: error: stray '\302' in program
numarare5.cpp:21:1: error: stray '\240' in program
numarare5.cpp:21:1: error: stray '\302' in program
numarare5.cpp:21:1: error: stray '\240' in program
numarare5.cpp:22:1: error: stray '\302' in program
               x=x/10;

 ^
numarare5.cpp:22:1: error: stray '\240' in program
numarare5.cpp:22:1: error: stray '\302' in program
numarare5.cpp:22:1: error: stray '\240' in program
numarare5.cpp:22:1: error: stray '\302' in program
numarare5.cpp:22:1: error: stray '\240' in program
numarare5.cpp:22:1: error: stray '\302' in program
numarare5.cpp:22:1: error: stray '\240' in program
numarare5.cpp:22:1: error: stray '\302' in program
numarare5.cpp:22:1: error: stray '\240' in program
numarare5.cpp:22:1: error: stray '\302' in program
numarare5.cpp:22:1: error: stray '\240' in program
numarare5.cpp:22:1: error: stray '\302' in program
numarare5.cpp:22:1: error: stray '\240' in program
numarare5.cpp:22:1: error: stray '\302' in program
numarare5.cpp:22:1: error: stray '\240' in program
numarare5.cpp:22:1: error: stray '\302' in program
numarare5.cpp:22:1: error: stray '\240' in program
numarare5.cpp:22:1: error: stray '\302' in program
numarare5.cpp:22:1: error: stray '\240' in program
numarare5.cpp:22:1: error: stray '\302' in program
numarare5.cpp:22:1: error: stray '\240' in program
numarare5.cpp:22:1: error: stray '\302' in program
numarare5.cpp:22:1: error: stray '\240' in program
numarare5.cpp:22:1: error: stray '\302' in program
numarare5.cpp:22:1: error: stray '\240' in program
numarare5.cpp:22:1: error: stray '\302' in program
numarare5.cpp:22:1: error: stray '\240' in program
numarare5.cpp:23:1: error: stray '\302' in program
           }

 ^
numarare5.cpp:23:1: error: stray '\240' in program
numarare5.cpp:23:1: error: stray '\302' in program
numarare5.cpp:23:1: error: stray '\240' in program
numarare5.cpp:23:1: error: stray '\302' in program
numarare5.cpp:23:1: error: stray '\240' in program
numarare5.cpp:23:1: error: stray '\302' in program
numarare5.cpp:23:1: error: stray '\240' in program
numarare5.cpp:23:1: error: stray '\302' in program
numarare5.cpp:23:1: error: stray '\240' in program
numarare5.cpp:23:1: error: stray '\302' in program
numarare5.cpp:23:1: error: stray '\240' in program
numarare5.cpp:23:1: error: stray '\302' in program
numarare5.cpp:23:1: error: stray '\240' in program
numarare5.cpp:23:1: error: stray '\302' in program
numarare5.cpp:23:1: error: stray '\240' in program
numarare5.cpp:23:1: error: stray '\302' in program
numarare5.cpp:23:1: error: stray '\240' in program
numarare5.cpp:23:1: error: stray '\302' in program
numarare5.cpp:23:1: error: stray '\240' in program
numarare5.cpp:24:1: error: stray '\302' in program
           s2=0;

 ^
numarare5.cpp:24:1: error: stray '\240' in program
numarare5.cpp:24:1: error: stray '\302' in program
numarare5.cpp:24:1: error: stray '\240' in program
numarare5.cpp:24:1: error: stray '\302' in program
numarare5.cpp:24:1: error: stray '\240' in program
numarare5.cpp:24:1: error: stray '\302' in program
numarare5.cpp:24:1: error: stray '\240' in program
numarare5.cpp:24:1: error: stray '\302' in program
numarare5.cpp:24:1: error: stray '\240' in program
numarare5.cpp:24:1: error: stray '\302' in program
numarare5.cpp:24:1: error: stray '\240' in program
numarare5.cpp:24:1: error: stray '\302' in program
numarare5.cpp:24:1: error: stray '\240' in program
numarare5.cpp:24:1: error: stray '\302' in program
numarare5.cpp:24:1: error: stray '\240' in program
numarare5.cpp:24:1: error: stray '\302' in program
numarare5.cpp:24:1: error: stray '\240' in program
numarare5.cpp:24:1: error: stray '\302' in program
numarare5.cpp:24:1: error: stray '\240' in program
numarare5.cpp:25:1: error: stray '\302' in program
           y=v[j];

 ^
numarare5.cpp:25:1: error: stray '\240' in program
numarare5.cpp:25:1: error: stray '\302' in program
numarare5.cpp:25:1: error: stray '\240' in program
numarare5.cpp:25:1: error: stray '\302' in program
numarare5.cpp:25:1: error: stray '\240' in program
numarare5.cpp:25:1: error: stray '\302' in program
numarare5.cpp:25:1: error: stray '\240' in program
numarare5.cpp:25:1: error: stray '\302' in program
numarare5.cpp:25:1: error: stray '\240' in program
numarare5.cpp:25:1: error: stray '\302' in program
numarare5.cpp:25:1: error: stray '\240' in program
numarare5.cpp:25:1: error: stray '\302' in program
numarare5.cpp:25:1: error: stray '\240' in program
numarare5.cpp:25:1: error: stray '\302' in program
numarare5.cpp:25:1: error: stray '\240' in program
numarare5.cpp:25:1: error: stray '\302' in program
numarare5.cpp:25:1: error: stray '\240' in program
numarare5.cpp:25:1: error: stray '\302' in program
numarare5.cpp:25:1: error: stray '\240' in program
numarare5.cpp:26:1: error: stray '\302' in program
           while(y!=0)

 ^
numarare5.cpp:26:1: error: stray '\240' in program
numarare5.cpp:26:1: error: stray '\302' in program
numarare5.cpp:26:1: error: stray '\240' in program
numarare5.cpp:26:1: error: stray '\302' in program
numarare5.cpp:26:1: error: stray '\240' in program
numarare5.cpp:26:1: error: stray '\302' in program
numarare5.cpp:26:1: error: stray '\240' in program
numarare5.cpp:26:1: error: stray '\302' in program
numarare5.cpp:26:1: error: stray '\240' in program
numarare5.cpp:26:1: error: stray '\302' in program
numarare5.cpp:26:1: error: stray '\240' in program
numarare5.cpp:26:1: error: stray '\302' in program
numarare5.cpp:26:1: error: stray '\240' in program
numarare5.cpp:26:1: error: stray '\302' in program
numarare5.cpp:26:1: error: stray '\240' in program
numarare5.cpp:26:1: error: stray '\302' in program
numarare5.cpp:26:1: error: stray '\240' in program
numarare5.cpp:27:1: error: stray '\302' in program
           {

 ^
numarare5.cpp:27:1: error: stray '\240' in program
numarare5.cpp:27:1: error: stray '\302' in program
numarare5.cpp:27:1: error: stray '\240' in program
numarare5.cpp:27:1: error: stray '\302' in program
numarare5.cpp:27:1: error: stray '\240' in program
numarare5.cpp:27:1: error: stray '\302' in program
numarare5.cpp:27:1: error: stray '\240' in program
numarare5.cpp:27:1: error: stray '\302' in program
numarare5.cpp:27:1: error: stray '\240' in program
numarare5.cpp:27:1: error: stray '\302' in program
numarare5.cpp:27:1: error: stray '\240' in program
numarare5.cpp:27:1: error: stray '\302' in program
numarare5.cpp:27:1: error: stray '\240' in program
numarare5.cpp:27:1: error: stray '\302' in program
numarare5.cpp:27:1: error: stray '\240' in program
numarare5.cpp:27:1: error: stray '\302' in program
numarare5.cpp:27:1: error: stray '\240' in program
numarare5.cpp:27:1: error: stray '\302' in program
numarare5.cpp:27:1: error: stray '\240' in program
numarare5.cpp:28:1: error: stray '\302' in program
               s2=s2+y%10;

 ^
numarare5.cpp:28:1: error: stray '\240' in program
numarare5.cpp:28:1: error: stray '\302' in program
numarare5.cpp:28:1: error: stray '\240' in program
numarare5.cpp:28:1: error: stray '\302' in program
numarare5.cpp:28:1: error: stray '\240' in program
numarare5.cpp:28:1: error: stray '\302' in program
numarare5.cpp:28:1: error: stray '\240' in program
numarare5.cpp:28:1: error: stray '\302' in program
numarare5.cpp:28:1: error: stray '\240' in program
numarare5.cpp:28:1: error: stray '\302' in program
numarare5.cpp:28:1: error: stray '\240' in program
numarare5.cpp:28:1: error: stray '\302' in program
numarare5.cpp:28:1: error: stray '\240' in program
numarare5.cpp:28:1: error: stray '\302' in program
numarare5.cpp:28:1: error: stray '\240' in program
numarare5.cpp:28:1: error: stray '\302' in program
numarare5.cpp:28:1: error: stray '\240' in program
numarare5.cpp:28:1: error: stray '\302' in program
numarare5.cpp:28:1: error: stray '\240' in program
numarare5.cpp:28:1: error: stray '\302' in program
numarare5.cpp:28:1: error: stray '\240' in program
numarare5.cpp:28:1: error: stray '\302' in program
numarare5.cpp:28:1: error: stray '\240' in program
numarare5.cpp:28:1: error: stray '\302' in program
numarare5.cpp:28:1: error: stray '\240' in program
numarare5.cpp:28:1: error: stray '\302' in program
numarare5.cpp:28:1: error: stray '\240' in program
numarare5.cpp:29:1: error: stray '\302' in program
               y=y/10;

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

 ^
numarare5.cpp:30:1: error: stray '\240' in program
numarare5.cpp:30:1: error: stray '\302' in program
numarare5.cpp:30:1: error: stray '\240' in program
numarare5.cpp:30:1: error: stray '\302' in program
numarare5.cpp:30:1: error: stray '\240' in program
numarare5.cpp:30:1: error: stray '\302' in program
numarare5.cpp:30:1: error: stray '\240' in program
numarare5.cpp:30:1: error: stray '\302' in program
numarare5.cpp:30:1: error: stray '\240' in program
numarare5.cpp:30:1: error: stray '\302' in program
numarare5.cpp:30:1: error: stray '\240' in program
numarare5.cpp:30:1: error: stray '\302' in program
numarare5.cpp:30:1: error: stray '\240' in program
numarare5.cpp:30:1: error: stray '\302' in program
numarare5.cpp:30:1: error: stray '\240' in program
numarare5.cpp:30:1: error: stray '\302' in program
numarare5.cpp:30:1: error: stray '\240' in program
numarare5.cpp:30:1: error: stray '\302' in program
numarare5.cpp:30:1: error: stray '\240' in program
numarare5.cpp:31:1: error: stray '\302' in program
           if(s1==s2) 

 ^
numarare5.cpp:31:1: error: stray '\240' in program
numarare5.cpp:31:1: error: stray '\302' in program
numarare5.cpp:31:1: error: stray '\240' in program
numarare5.cpp:31:1: error: stray '\302' in program
numarare5.cpp:31:1: error: stray '\240' in program
numarare5.cpp:31:1: error: stray '\302' in program
numarare5.cpp:31:1: error: stray '\240' in program
numarare5.cpp:31:1: error: stray '\302' in program
numarare5.cpp:31:1: error: stray '\240' in program
numarare5.cpp:31:1: error: stray '\302' in program
numarare5.cpp:31:1: error: stray '\240' in program
numarare5.cpp:31:1: error: stray '\302' in program
numarare5.cpp:31:1: error: stray '\240' in program
numarare5.cpp:31:1: error: stray '\302' in program
numarare5.cpp:31:1: error: stray '\240' in program
numarare5.cpp:31:1: error: stray '\302' in program
numarare5.cpp:31:1: error: stray '\240' in program
numarare5.cpp:31:1: error: stray '\302' in program
numarare5.cpp:31:1: error: stray '\240' in program
numarare5.cpp:33:1: error: stray '\302' in program
         }

 ^
numarare5.cpp:33:1: error: stray '\240' in program
numarare5.cpp:33:1: error: stray '\302' in program
numarare5.cpp:33:1: error: stray '\240' in program
numarare5.cpp:33:1: error: stray '\302' in program
numarare5.cpp:33:1: error: stray '\240' in program
numarare5.cpp:33:1: error: stray '\302' in program
numarare5.cpp:33:1: error: stray '\240' in program
numarare5.cpp:33:1: error: stray '\302' in program
numarare5.cpp:33:1: error: stray '\240' in program
numarare5.cpp:33:1: error: stray '\302' in program
numarare5.cpp:33:1: error: stray '\240' in program
numarare5.cpp:35:1: error: stray '\302' in program
       cout<<ct;

 ^
numarare5.cpp:35:1: error: stray '\240' in program
numarare5.cpp:35:1: error: stray '\302' in program
numarare5.cpp:35:1: error: stray '\240' in program
numarare5.cpp:35:1: error: stray '\302' in program
numarare5.cpp:35:1: error: stray '\240' in program
numarare5.cpp:35:1: error: stray '\302' in program
numarare5.cpp:35:1: error: stray '\240' in program
numarare5.cpp:35:1: error: stray '\302' in program
numarare5.cpp:35:1: error: stray '\240' in program
numarare5.cpp:35:1: error: stray '\302' in program
numarare5.cpp:35:1: error: stray '\240' in program
numarare5.cpp: In function 'int main()':
numarare5.cpp:36:14: error: 'o' was not declared in this scope
       return o;

              ^
numarare5.cpp:37:13: error: expected '}' at end of input
             }         
             ^

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