Detalii evaluare #13772372

Rezumat problemă

Andrei a făcut într-o zi un șir de N numere. În a doua zi a lăsat în acel șir doar numerele prime. În a treia zi a calculat pentru fiecare număr rămas în șir suma cifrelor, iar apoi a adunat toate aceste sume în S. După ce a obținut numărul S a început să adune toate cifrele din care este format S și tot așa până când ajunge la o cifră terminală C.

Detalii

Problema vterminal Operații I/O vterminal.in/vterminal.out
Limita timp 0.1 secunde Limita memorie Total: 0.1 MB / Stivă 0 MB
Id soluție #13772372 Utilizator DATCU ANAMARIA (DATCUANA)
Fișier vterminal.cpp Dimensiune 904 B
Data încărcării 08 Februarie 2019, 13:53 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

vterminal.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include <fstream>

         ^
vterminal.cpp:3:1: error: stray '\302' in program
 using namespace std;

 ^
vterminal.cpp:3:1: error: stray '\240' in program
vterminal.cpp:3:1: error: stray '\302' in program
vterminal.cpp:3:1: error: stray '\240' in program
vterminal.cpp:5:1: error: stray '\302' in program
 ifstream fin("vterminal.in");

 ^
vterminal.cpp:5:1: error: stray '\240' in program
vterminal.cpp:6:1: error: stray '\302' in program
 ofstream fout("vterminal.out");

 ^
vterminal.cpp:6:1: error: stray '\240' in program
vterminal.cpp:8:1: error: stray '\302' in program
 int prime(int a);

 ^
vterminal.cpp:8:1: error: stray '\240' in program
vterminal.cpp:8:1: error: stray '\302' in program
vterminal.cpp:8:1: error: stray '\240' in program
vterminal.cpp:9:1: error: stray '\302' in program
 int n;

 ^
vterminal.cpp:9:1: error: stray '\240' in program
vterminal.cpp:11:1: error: stray '\302' in program
 int main()

 ^
vterminal.cpp:11:1: error: stray '\240' in program
vterminal.cpp:14:1: error: stray '\302' in program
     fin >> n;

 ^
vterminal.cpp:14:1: error: stray '\240' in program
vterminal.cpp:14:1: error: stray '\302' in program
vterminal.cpp:14:1: error: stray '\240' in program
vterminal.cpp:14:1: error: stray '\302' in program
vterminal.cpp:14:1: error: stray '\240' in program
vterminal.cpp:14:1: error: stray '\302' in program
vterminal.cpp:14:1: error: stray '\240' in program
vterminal.cpp:14:1: error: stray '\302' in program
vterminal.cpp:14:1: error: stray '\240' in program
vterminal.cpp:14:1: error: stray '\302' in program
vterminal.cpp:14:1: error: stray '\240' in program
vterminal.cpp:16:1: error: stray '\302' in program
     int x,S=0,k;

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

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

 ^
vterminal.cpp:19:1: error: stray '\240' in program
vterminal.cpp:19:1: error: stray '\302' in program
vterminal.cpp:19:1: error: stray '\240' in program
vterminal.cpp:19:1: error: stray '\302' in program
vterminal.cpp:19:1: error: stray '\240' in program
vterminal.cpp:19:1: error: stray '\302' in program
vterminal.cpp:19:1: error: stray '\240' in program
vterminal.cpp:20:1: error: stray '\302' in program
         fin >> x;

 ^
vterminal.cpp:20:1: error: stray '\240' in program
vterminal.cpp:20:1: error: stray '\302' in program
vterminal.cpp:20:1: error: stray '\240' in program
vterminal.cpp:20:1: error: stray '\302' in program
vterminal.cpp:20:1: error: stray '\240' in program
vterminal.cpp:20:1: error: stray '\302' in program
vterminal.cpp:20:1: error: stray '\240' in program
vterminal.cpp:20:1: error: stray '\302' in program
vterminal.cpp:20:1: error: stray '\240' in program
vterminal.cpp:20:1: error: stray '\302' in program
vterminal.cpp:20:1: error: stray '\240' in program
vterminal.cpp:20:1: error: stray '\302' in program
vterminal.cpp:20:1: error: stray '\240' in program
vterminal.cpp:20:1: error: stray '\302' in program
vterminal.cpp:20:1: error: stray '\240' in program
vterminal.cpp:20:1: error: stray '\302' in program
vterminal.cpp:20:1: error: stray '\240' in program
vterminal.cpp:20:1: error: stray '\302' in program
vterminal.cpp:20:1: error: stray '\240' in program
vterminal.cpp:21:1: error: stray '\302' in program
         if(prime(x))

 ^
vterminal.cpp:21:1: error: stray '\240' in program
vterminal.cpp:21:1: error: stray '\302' in program
vterminal.cpp:21:1: error: stray '\240' in program
vterminal.cpp:21:1: error: stray '\302' in program
vterminal.cpp:21:1: error: stray '\240' in program
vterminal.cpp:21:1: error: stray '\302' in program
vterminal.cpp:21:1: error: stray '\240' in program
vterminal.cpp:21:1: error: stray '\302' in program
vterminal.cpp:21:1: error: stray '\240' in program
vterminal.cpp:21:1: error: stray '\302' in program
vterminal.cpp:21:1: error: stray '\240' in program
vterminal.cpp:21:1: error: stray '\302' in program
vterminal.cpp:21:1: error: stray '\240' in program
vterminal.cpp:21:1: error: stray '\302' in program
vterminal.cpp:21:1: error: stray '\240' in program
vterminal.cpp:22:1: error: stray '\302' in program
             S+=x;

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

 ^
vterminal.cpp:23:1: error: stray '\240' in program
vterminal.cpp:23:1: error: stray '\302' in program
vterminal.cpp:23:1: error: stray '\240' in program
vterminal.cpp:23:1: error: stray '\302' in program
vterminal.cpp:23:1: error: stray '\240' in program
vterminal.cpp:23:1: error: stray '\302' in program
vterminal.cpp:23:1: error: stray '\240' in program
vterminal.cpp:25:1: error: stray '\302' in program
     while(true)

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

 ^
vterminal.cpp:26:1: error: stray '\240' in program
vterminal.cpp:26:1: error: stray '\302' in program
vterminal.cpp:26:1: error: stray '\240' in program
vterminal.cpp:26:1: error: stray '\302' in program
vterminal.cpp:26:1: error: stray '\240' in program
vterminal.cpp:26:1: error: stray '\302' in program
vterminal.cpp:26:1: error: stray '\240' in program
vterminal.cpp:27:1: error: stray '\302' in program
         k=0;

 ^
vterminal.cpp:27:1: error: stray '\240' in program
vterminal.cpp:27:1: error: stray '\302' in program
vterminal.cpp:27:1: error: stray '\240' in program
vterminal.cpp:27:1: error: stray '\302' in program
vterminal.cpp:27:1: error: stray '\240' in program
vterminal.cpp:27:1: error: stray '\302' in program
vterminal.cpp:27:1: error: stray '\240' in program
vterminal.cpp:27:1: error: stray '\302' in program
vterminal.cpp:27:1: error: stray '\240' in program
vterminal.cpp:27:1: error: stray '\302' in program
vterminal.cpp:27:1: error: stray '\240' in program
vterminal.cpp:27:1: error: stray '\302' in program
vterminal.cpp:27:1: error: stray '\240' in program
vterminal.cpp:27:1: error: stray '\302' in program
vterminal.cpp:27:1: error: stray '\240' in program
vterminal.cpp:28:1: error: stray '\302' in program
         while(S!=0)

 ^
vterminal.cpp:28:1: error: stray '\240' in program
vterminal.cpp:28:1: error: stray '\302' in program
vterminal.cpp:28:1: error: stray '\240' in program
vterminal.cpp:28:1: error: stray '\302' in program
vterminal.cpp:28:1: error: stray '\240' in program
vterminal.cpp:28:1: error: stray '\302' in program
vterminal.cpp:28:1: error: stray '\240' in program
vterminal.cpp:28:1: error: stray '\302' in program
vterminal.cpp:28:1: error: stray '\240' in program
vterminal.cpp:28:1: error: stray '\302' in program
vterminal.cpp:28:1: error: stray '\240' in program
vterminal.cpp:28:1: error: stray '\302' in program
vterminal.cpp:28:1: error: stray '\240' in program
vterminal.cpp:28:1: error: stray '\302' in program
vterminal.cpp:28:1: error: stray '\240' in program
vterminal.cpp:29:1: error: stray '\302' in program
         {

 ^
vterminal.cpp:29:1: error: stray '\240' in program
vterminal.cpp:29:1: error: stray '\302' in program
vterminal.cpp:29:1: error: stray '\240' in program
vterminal.cpp:29:1: error: stray '\302' in program
vterminal.cpp:29:1: error: stray '\240' in program
vterminal.cpp:29:1: error: stray '\302' in program
vterminal.cpp:29:1: error: stray '\240' in program
vterminal.cpp:29:1: error: stray '\302' in program
vterminal.cpp:29:1: error: stray '\240' in program
vterminal.cpp:29:1: error: stray '\302' in program
vterminal.cpp:29:1: error: stray '\240' in program
vterminal.cpp:29:1: error: stray '\302' in program
vterminal.cpp:29:1: error: stray '\240' in program
vterminal.cpp:29:1: error: stray '\302' in program
vterminal.cpp:29:1: error: stray '\240' in program
vterminal.cpp:30:1: error: stray '\302' in program
             k+=S%10;

 ^
vterminal.cpp:30:1: error: stray '\240' in program
vterminal.cpp:30:1: error: stray '\302' in program
vterminal.cpp:30:1: error: stray '\240' in program
vterminal.cpp:30:1: error: stray '\302' in program
vterminal.cpp:30:1: error: stray '\240' in program
vterminal.cpp:30:1: error: stray '\302' in program
vterminal.cpp:30:1: error: stray '\240' in program
vterminal.cpp:30:1: error: stray '\302' in program
vterminal.cpp:30:1: error: stray '\240' in program
vterminal.cpp:30:1: error: stray '\302' in program
vterminal.cpp:30:1: error: stray '\240' in program
vterminal.cpp:31:1: error: stray '\302' in program
             S/=10;

 ^
vterminal.cpp:31:1: error: stray '\240' in program
vterminal.cpp:31:1: error: stray '\302' in program
vterminal.cpp:31:1: error: stray '\240' in program
vterminal.cpp:31:1: error: stray '\302' in program
vterminal.cpp:31:1: error: stray '\240' in program
vterminal.cpp:31:1: error: stray '\302' in program
vterminal.cpp:31:1: error: stray '\240' in program
vterminal.cpp:31:1: error: stray '\302' in program
vterminal.cpp:31:1: error: stray '\240' in program
vterminal.cpp:31:1: error: stray '\302' in program
vterminal.cpp:31:1: error: stray '\240' in program
vterminal.cpp:31:1: error: stray '\302' in program
vterminal.cpp:31:1: error: stray '\240' in program
vterminal.cpp:31:1: error: stray '\302' in program
vterminal.cpp:31:1: error: stray '\240' in program
vterminal.cpp:31:1: error: stray '\302' in program
vterminal.cpp:31:1: error: stray '\240' in program
vterminal.cpp:31:1: error: stray '\302' in program
vterminal.cpp:31:1: error: stray '\240' in program
vterminal.cpp:31:1: error: stray '\302' in program
vterminal.cpp:31:1: error: stray '\240' in program
vterminal.cpp:31:1: error: stray '\302' in program
vterminal.cpp:31:1: error: stray '\240' in program
vterminal.cpp:32:1: error: stray '\302' in program
         }

 ^
vterminal.cpp:32:1: error: stray '\240' in program
vterminal.cpp:32:1: error: stray '\302' in program
vterminal.cpp:32:1: error: stray '\240' in program
vterminal.cpp:32:1: error: stray '\302' in program
vterminal.cpp:32:1: error: stray '\240' in program
vterminal.cpp:32:1: error: stray '\302' in program
vterminal.cpp:32:1: error: stray '\240' in program
vterminal.cpp:32:1: error: stray '\302' in program
vterminal.cpp:32:1: error: stray '\240' in program
vterminal.cpp:32:1: error: stray '\302' in program
vterminal.cpp:32:1: error: stray '\240' in program
vterminal.cpp:32:1: error: stray '\302' in program
vterminal.cpp:32:1: error: stray '\240' in program
vterminal.cpp:32:1: error: stray '\302' in program
vterminal.cpp:32:1: error: stray '\240' in program
vterminal.cpp:33:1: error: stray '\302' in program
         S=k;

 ^
vterminal.cpp:33:1: error: stray '\240' in program
vterminal.cpp:33:1: error: stray '\302' in program
vterminal.cpp:33:1: error: stray '\240' in program
vterminal.cpp:33:1: error: stray '\302' in program
vterminal.cpp:33:1: error: stray '\240' in program
vterminal.cpp:33:1: error: stray '\302' in program
vterminal.cpp:33:1: error: stray '\240' in program
vterminal.cpp:33:1: error: stray '\302' in program
vterminal.cpp:33:1: error: stray '\240' in program
vterminal.cpp:33:1: error: stray '\302' in program
vterminal.cpp:33:1: error: stray '\240' in program
vterminal.cpp:33:1: error: stray '\302' in program
vterminal.cpp:33:1: error: stray '\240' in program
vterminal.cpp:33:1: error: stray '\302' in program
vterminal.cpp:33:1: error: stray '\240' in program
vterminal.cpp:34:1: error: stray '\302' in program
         if(k<10)

 ^
vterminal.cpp:34:1: error: stray '\240' in program
vterminal.cpp:34:1: error: stray '\302' in program
vterminal.cpp:34:1: error: stray '\240' in program
vterminal.cpp:34:1: error: stray '\302' in program
vterminal.cpp:34:1: error: stray '\240' in program
vterminal.cpp:34:1: error: stray '\302' in program
vterminal.cpp:34:1: error: stray '\240' in program
vterminal.cpp:34:1: error: stray '\302' in program
vterminal.cpp:34:1: error: stray '\240' in program
vterminal.cpp:34:1: error: stray '\302' in program
vterminal.cpp:34:1: error: stray '\240' in program
vterminal.cpp:34:1: error: stray '\302' in program
vterminal.cpp:34:1: error: stray '\240' in program
vterminal.cpp:34:1: error: stray '\302' in program
vterminal.cpp:34:1: error: stray '\240' in program
vterminal.cpp:35:1: error: stray '\302' in program
             break;

 ^
vterminal.cpp:35:1: error: stray '\240' in program
vterminal.cpp:35:1: error: stray '\302' in program
vterminal.cpp:35:1: error: stray '\240' in program
vterminal.cpp:35:1: error: stray '\302' in program
vterminal.cpp:35:1: error: stray '\240' in program
vterminal.cpp:35:1: error: stray '\302' in program
vterminal.cpp:35:1: error: stray '\240' in program
vterminal.cpp:35:1: error: stray '\302' in program
vterminal.cpp:35:1: error: stray '\240' in program
vterminal.cpp:35:1: error: stray '\302' in program
vterminal.cpp:35:1: error: stray '\240' in program
vterminal.cpp:35:1: error: stray '\302' in program
vterminal.cpp:35:1: error: stray '\240' in program
vterminal.cpp:35:1: error: stray '\302' in program
vterminal.cpp:35:1: error: stray '\240' in program
vterminal.cpp:35:1: error: stray '\302' in program
vterminal.cpp:35:1: error: stray '\240' in program
vterminal.cpp:35:1: error: stray '\302' in program
vterminal.cpp:35:1: error: stray '\240' in program
vterminal.cpp:35:1: error: stray '\302' in program
vterminal.cpp:35:1: error: stray '\240' in program
vterminal.cpp:35:1: error: stray '\302' in program
vterminal.cpp:35:1: error: stray '\240' in program
vterminal.cpp:36:1: error: stray '\302' in program
     }

 ^
vterminal.cpp:36:1: error: stray '\240' in program
vterminal.cpp:36:1: error: stray '\302' in program
vterminal.cpp:36:1: error: stray '\240' in program
vterminal.cpp:36:1: error: stray '\302' in program
vterminal.cpp:36:1: error: stray '\240' in program
vterminal.cpp:36:1: error: stray '\302' in program
vterminal.cpp:36:1: error: stray '\240' in program
vterminal.cpp:38:1: error: stray '\302' in program
     fout << k;

 ^
vterminal.cpp:38:1: error: stray '\240' in program
vterminal.cpp:38:1: error: stray '\302' in program
vterminal.cpp:38:1: error: stray '\240' in program
vterminal.cpp:38:1: error: stray '\302' in program
vterminal.cpp:38:1: error: stray '\240' in program
vterminal.cpp:38:1: error: stray '\302' in program
vterminal.cpp:38:1: error: stray '\240' in program
vterminal.cpp:38:1: error: stray '\302' in program
vterminal.cpp:38:1: error: stray '\240' in program
vterminal.cpp:38:1: error: stray '\302' in program
vterminal.cpp:38:1: error: stray '\240' in program
vterminal.cpp:40:1: error: stray '\302' in program
     return 0;

 ^
vterminal.cpp:40:1: error: stray '\240' in program
vterminal.cpp:40:1: error: stray '\302' in program
vterminal.cpp:40:1: error: stray '\240' in program
vterminal.cpp:40:1: error: stray '\302' in program
vterminal.cpp:40:1: error: stray '\240' in program
vterminal.cpp:40:1: error: stray '\302' in program
vterminal.cpp:40:1: error: stray '\240' in program
vterminal.cpp:40:1: error: stray '\302' in program
vterminal.cpp:40:1: error: stray '\240' in program
vterminal.cpp:43:1: error: stray '\302' in program
 int prime(int a)

 ^
vterminal.cpp:43:1: error: stray '\240' in program
vterminal.cpp:43:1: error: stray '\302' in program
vterminal.cpp:43:1: error: stray '\240' in program
vterminal.cpp:45:1: error: stray '\302' in program
    int i;

 ^
vterminal.cpp:45:1: error: stray '\240' in program
vterminal.cpp:45:1: error: stray '\302' in program
vterminal.cpp:45:1: error: stray '\240' in program
vterminal.cpp:45:1: error: stray '\302' in program
vterminal.cpp:45:1: error: stray '\240' in program
vterminal.cpp:45:1: error: stray '\302' in program
vterminal.cpp:45:1: error: stray '\240' in program
vterminal.cpp:46:1: error: stray '\302' in program
    if(a==2)

 ^
vterminal.cpp:46:1: error: stray '\240' in program
vterminal.cpp:46:1: error: stray '\302' in program
vterminal.cpp:46:1: error: stray '\240' in program
vterminal.cpp:46:1: error: stray '\302' in program
vterminal.cpp:46:1: error: stray '\240' in program
vterminal.cpp:47:1: error: stray '\302' in program
       return 1;

 ^
vterminal.cpp:47:1: error: stray '\240' in program
vterminal.cpp:47:1: error: stray '\302' in program
vterminal.cpp:47:1: error: stray '\240' in program
vterminal.cpp:47:1: error: stray '\302' in program
vterminal.cpp:47:1: error: stray '\240' in program
vterminal.cpp:47:1: error: stray '\302' in program
vterminal.cpp:47:1: error: stray '\240' in program
vterminal.cpp:47:1: error: stray '\302' in program
vterminal.cpp:47:1: error: stray '\240' in program
vterminal.cpp:47:1: error: stray '\302' in program
vterminal.cpp:47:1: error: stray '\240' in program
vterminal.cpp:47:1: error: stray '\302' in program
vterminal.cpp:47:1: error: stray '\240' in program
vterminal.cpp:48:1: error: stray '\302' in program
    if(a==0 or a==1 or a%2==0)

 ^
vterminal.cpp:48:1: error: stray '\240' in program
vterminal.cpp:48:1: error: stray '\302' in program
vterminal.cpp:48:1: error: stray '\240' in program
vterminal.cpp:48:1: error: stray '\302' in program
vterminal.cpp:48:1: error: stray '\240' in program
vterminal.cpp:48:1: error: stray '\302' in program
vterminal.cpp:48:1: error: stray '\240' in program
vterminal.cpp:48:1: error: stray '\302' in program
vterminal.cpp:48:1: error: stray '\240' in program
vterminal.cpp:48:1: error: stray '\302' in program
vterminal.cpp:48:1: error: stray '\240' in program
vterminal.cpp:48:1: error: stray '\302' in program
vterminal.cpp:48:1: error: stray '\240' in program
vterminal.cpp:49:1: error: stray '\302' in program
       return 0;

 ^
vterminal.cpp:49:1: error: stray '\240' in program
vterminal.cpp:49:1: error: stray '\302' in program
vterminal.cpp:49:1: error: stray '\240' in program
vterminal.cpp:49:1: error: stray '\302' in program
vterminal.cpp:49:1: error: stray '\240' in program
vterminal.cpp:49:1: error: stray '\302' in program
vterminal.cpp:49:1: error: stray '\240' in program
vterminal.cpp:49:1: error: stray '\302' in program
vterminal.cpp:49:1: error: stray '\240' in program
vterminal.cpp:49:1: error: stray '\302' in program
vterminal.cpp:49:1: error: stray '\240' in program
vterminal.cpp:49:1: error: stray '\302' in program
vterminal.cpp:49:1: error: stray '\240' in program
vterminal.cpp:50:1: error: stray '\302' in program
    for(i=3;i*i<=a and a%i;i+=2)

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

 ^
vterminal.cpp:51:1: error: stray '\240' in program
vterminal.cpp:51:1: error: stray '\302' in program
vterminal.cpp:51:1: error: stray '\240' in program
vterminal.cpp:51:1: error: stray '\302' in program
vterminal.cpp:51:1: error: stray '\240' in program
vterminal.cpp:51:1: error: stray '\302' in program
vterminal.cpp:51:1: error: stray '\240' in program
vterminal.cpp:51:1: error: stray '\302' in program
vterminal.cpp:51:1: error: stray '\240' in program
vterminal.cpp:51:1: error: stray '\302' in program
vterminal.cpp:51:1: error: stray '\240' in program
vterminal.cpp:52:1: error: stray '\302' in program
    return i*i>a;

 ^
vterminal.cpp:52:1: error: stray '\240' in program
vterminal.cpp:52:1: error: stray '\302' in program
vterminal.cpp:52:1: error: stray '\240' in program
vterminal.cpp:52:1: error: stray '\302' in program
vterminal.cpp:52:1: error: stray '\240' in program
vterminal.cpp:52:1: error: stray '\302' in program
vterminal.cpp:52:1: error: stray '\240' in program
vterminal.cpp:5:1: error: 'ifstream' does not name a type
 ifstream fin("vterminal.in");

 ^
vterminal.cpp:6:1: error: 'ofstream' does not name a type
 ofstream fout("vterminal.out");

 ^
vterminal.cpp: In function 'int main()':
vterminal.cpp:14:9: error: 'fin' was not declared in this scope
     fin >> n;

         ^
vterminal.cpp:38:9: error: 'fout' was not declared in this scope
     fout << k;

         ^

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