Detalii evaluare #12607109

Rezumat problemă

#437 Conex

Se dă lista muchiilor unui graf neorientat. Să se verifice dacă graful este sau nu conex.

Detalii

Problema Conex Operații I/O conex.in/conex.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #12607109 Utilizator Stirban George Florin (Florin122001)
Fișier conex.cpp Dimensiune 696 B
Data încărcării 06 Decembrie 2018, 17:26 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

conex.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include <iostream>

         ^
conex.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
 #include <fstream>

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

 ^
conex.cpp:3:1: error: stray '\240' in program
conex.cpp:3:1: error: stray '\302' in program
conex.cpp:3:1: error: stray '\240' in program
conex.cpp:7:1: error: stray '\302' in program
 int n , a[105][105];

 ^
conex.cpp:7:1: error: stray '\240' in program
conex.cpp:7:1: error: stray '\302' in program
conex.cpp:7:1: error: stray '\240' in program
conex.cpp:7:1: error: stray '\302' in program
conex.cpp:7:1: error: stray '\240' in program
conex.cpp:8:1: error: stray '\302' in program
 int x[105], v[105]; 

 ^
conex.cpp:8:1: error: stray '\240' in program
conex.cpp:8:1: error: stray '\302' in program
conex.cpp:8:1: error: stray '\240' in program
conex.cpp:8:1: error: stray '\302' in program
conex.cpp:8:1: error: stray '\240' in program
conex.cpp:11:1: error: stray '\302' in program
 int conex()

 ^
conex.cpp:11:1: error: stray '\240' in program
conex.cpp:13:1: error: stray '\302' in program
 int st, dr;

 ^
conex.cpp:13:1: error: stray '\240' in program
conex.cpp:13:1: error: stray '\302' in program
conex.cpp:13:1: error: stray '\240' in program
conex.cpp:14:1: error: stray '\302' in program
 st = dr = 1;

 ^
conex.cpp:14:1: error: stray '\240' in program
conex.cpp:14:1: error: stray '\302' in program
conex.cpp:14:1: error: stray '\240' in program
conex.cpp:14:1: error: stray '\302' in program
conex.cpp:14:1: error: stray '\240' in program
conex.cpp:14:1: error: stray '\302' in program
conex.cpp:14:1: error: stray '\240' in program
conex.cpp:15:1: error: stray '\302' in program
 v[1] = 1;

 ^
conex.cpp:15:1: error: stray '\240' in program
conex.cpp:15:1: error: stray '\302' in program
conex.cpp:15:1: error: stray '\240' in program
conex.cpp:16:1: error: stray '\302' in program
 x[1] = 1;

 ^
conex.cpp:16:1: error: stray '\240' in program
conex.cpp:16:1: error: stray '\302' in program
conex.cpp:16:1: error: stray '\240' in program
conex.cpp:17:1: error: stray '\302' in program
 while(st <= dr)

 ^
conex.cpp:17:1: error: stray '\240' in program
conex.cpp:17:1: error: stray '\302' in program
conex.cpp:17:1: error: stray '\240' in program
conex.cpp:19:1: error: stray '\302' in program
 int k = x[st];

 ^
conex.cpp:19:1: error: stray '\240' in program
conex.cpp:19:1: error: stray '\302' in program
conex.cpp:19:1: error: stray '\240' in program
conex.cpp:19:1: error: stray '\302' in program
conex.cpp:19:1: error: stray '\240' in program
conex.cpp:20:1: error: stray '\302' in program
 for(int i = 1; i <= n ; ++i)

 ^
conex.cpp:20:1: error: stray '\240' in program
conex.cpp:20:1: error: stray '\302' in program
conex.cpp:20:1: error: stray '\240' in program
conex.cpp:20:1: error: stray '\302' in program
conex.cpp:20:1: error: stray '\240' in program
conex.cpp:20:1: error: stray '\302' in program
conex.cpp:20:1: error: stray '\240' in program
conex.cpp:20:1: error: stray '\302' in program
conex.cpp:20:1: error: stray '\240' in program
conex.cpp:20:1: error: stray '\302' in program
conex.cpp:20:1: error: stray '\240' in program
conex.cpp:20:1: error: stray '\302' in program
conex.cpp:20:1: error: stray '\240' in program
conex.cpp:20:1: error: stray '\302' in program
conex.cpp:20:1: error: stray '\240' in program
conex.cpp:21:1: error: stray '\302' in program
 if(v[i] == 0 && a[k][i] == 1)

 ^
conex.cpp:21:1: error: stray '\240' in program
conex.cpp:21:1: error: stray '\302' in program
conex.cpp:21:1: error: stray '\240' in program
conex.cpp:21:1: error: stray '\302' in program
conex.cpp:21:1: error: stray '\240' in program
conex.cpp:21:1: error: stray '\302' in program
conex.cpp:21:1: error: stray '\240' in program
conex.cpp:21:1: error: stray '\302' in program
conex.cpp:21:1: error: stray '\240' in program
conex.cpp:21:1: error: stray '\302' in program
conex.cpp:21:1: error: stray '\240' in program
conex.cpp:23:1: error: stray '\302' in program
 dr ++;

 ^
conex.cpp:23:1: error: stray '\240' in program
conex.cpp:24:1: error: stray '\302' in program
 v[i] = 1;

 ^
conex.cpp:24:1: error: stray '\240' in program
conex.cpp:24:1: error: stray '\302' in program
conex.cpp:24:1: error: stray '\240' in program
conex.cpp:25:1: error: stray '\302' in program
 x[dr] = i;

 ^
conex.cpp:25:1: error: stray '\240' in program
conex.cpp:25:1: error: stray '\302' in program
conex.cpp:25:1: error: stray '\240' in program
conex.cpp:27:1: error: stray '\302' in program
 st ++;

 ^
conex.cpp:27:1: error: stray '\240' in program
conex.cpp:29:1: error: stray '\302' in program
 for(int i = 1 ; i <= n ; ++i)

 ^
conex.cpp:29:1: error: stray '\240' in program
conex.cpp:29:1: error: stray '\302' in program
conex.cpp:29:1: error: stray '\240' in program
conex.cpp:29:1: error: stray '\302' in program
conex.cpp:29:1: error: stray '\240' in program
conex.cpp:29:1: error: stray '\302' in program
conex.cpp:29:1: error: stray '\240' in program
conex.cpp:29:1: error: stray '\302' in program
conex.cpp:29:1: error: stray '\240' in program
conex.cpp:29:1: error: stray '\302' in program
conex.cpp:29:1: error: stray '\240' in program
conex.cpp:29:1: error: stray '\302' in program
conex.cpp:29:1: error: stray '\240' in program
conex.cpp:29:1: error: stray '\302' in program
conex.cpp:29:1: error: stray '\240' in program
conex.cpp:29:1: error: stray '\302' in program
conex.cpp:29:1: error: stray '\240' in program
conex.cpp:30:1: error: stray '\302' in program
 if(v[i] == 0)

 ^
conex.cpp:30:1: error: stray '\240' in program
conex.cpp:30:1: error: stray '\302' in program
conex.cpp:30:1: error: stray '\240' in program
conex.cpp:31:1: error: stray '\302' in program
 return 0;

 ^
conex.cpp:31:1: error: stray '\240' in program
conex.cpp:32:1: error: stray '\302' in program
 return 1;

 ^
conex.cpp:32:1: error: stray '\240' in program
conex.cpp:35:1: error: stray '\302' in program
 int main()

 ^
conex.cpp:35:1: error: stray '\240' in program
conex.cpp:37:1: error: stray '\302' in program
     int i , j;

 ^
conex.cpp:37:1: error: stray '\240' in program
conex.cpp:37:1: error: stray '\302' in program
conex.cpp:37:1: error: stray '\240' in program
conex.cpp:37:1: error: stray '\302' in program
conex.cpp:37:1: error: stray '\240' in program
conex.cpp:37:1: error: stray '\302' in program
conex.cpp:37:1: error: stray '\240' in program
conex.cpp:37:1: error: stray '\302' in program
conex.cpp:37:1: error: stray '\240' in program
conex.cpp:37:1: error: stray '\302' in program
conex.cpp:37:1: error: stray '\240' in program
conex.cpp:37:1: error: stray '\302' in program
conex.cpp:37:1: error: stray '\240' in program
conex.cpp:38:1: error: stray '\302' in program
     cin >> n;

 ^
conex.cpp:38:1: error: stray '\240' in program
conex.cpp:38:1: error: stray '\302' in program
conex.cpp:38:1: error: stray '\240' in program
conex.cpp:38:1: error: stray '\302' in program
conex.cpp:38:1: error: stray '\240' in program
conex.cpp:38:1: error: stray '\302' in program
conex.cpp:38:1: error: stray '\240' in program
conex.cpp:38:1: error: stray '\302' in program
conex.cpp:38:1: error: stray '\240' in program
conex.cpp:38:1: error: stray '\302' in program
conex.cpp:38:1: error: stray '\240' in program
conex.cpp:39:1: error: stray '\302' in program
     while(cin>> i >> j)

 ^
conex.cpp:39:1: error: stray '\240' in program
conex.cpp:39:1: error: stray '\302' in program
conex.cpp:39:1: error: stray '\240' in program
conex.cpp:39:1: error: stray '\302' in program
conex.cpp:39:1: error: stray '\240' in program
conex.cpp:39:1: error: stray '\302' in program
conex.cpp:39:1: error: stray '\240' in program
conex.cpp:39:1: error: stray '\302' in program
conex.cpp:39:1: error: stray '\240' in program
conex.cpp:39:1: error: stray '\302' in program
conex.cpp:39:1: error: stray '\240' in program
conex.cpp:39:1: error: stray '\302' in program
conex.cpp:39:1: error: stray '\240' in program
conex.cpp:40:1: error: stray '\302' in program
     {

 ^
conex.cpp:40:1: error: stray '\240' in program
conex.cpp:40:1: error: stray '\302' in program
conex.cpp:40:1: error: stray '\240' in program
conex.cpp:40:1: error: stray '\302' in program
conex.cpp:40:1: error: stray '\240' in program
conex.cpp:40:1: error: stray '\302' in program
conex.cpp:40:1: error: stray '\240' in program
conex.cpp:41:1: error: stray '\302' in program
      a[i][j] = a[j][i] = 1;

 ^
conex.cpp:41:1: error: stray '\240' in program
conex.cpp:41:1: error: stray '\302' in program
conex.cpp:41:1: error: stray '\240' in program
conex.cpp:41:1: error: stray '\302' in program
conex.cpp:41:1: error: stray '\240' in program
conex.cpp:41:1: error: stray '\302' in program
conex.cpp:41:1: error: stray '\240' in program
conex.cpp:41:1: error: stray '\302' in program
conex.cpp:41:1: error: stray '\240' in program
conex.cpp:41:1: error: stray '\302' in program
conex.cpp:41:1: error: stray '\240' in program
conex.cpp:41:1: error: stray '\302' in program
conex.cpp:41:1: error: stray '\240' in program
conex.cpp:41:1: error: stray '\302' in program
conex.cpp:41:1: error: stray '\240' in program
conex.cpp:42:1: error: stray '\302' in program
     }

 ^
conex.cpp:42:1: error: stray '\240' in program
conex.cpp:42:1: error: stray '\302' in program
conex.cpp:42:1: error: stray '\240' in program
conex.cpp:42:1: error: stray '\302' in program
conex.cpp:42:1: error: stray '\240' in program
conex.cpp:42:1: error: stray '\302' in program
conex.cpp:42:1: error: stray '\240' in program
conex.cpp:44:1: error: stray '\302' in program
     if(conex())

 ^
conex.cpp:44:1: error: stray '\240' in program
conex.cpp:44:1: error: stray '\302' in program
conex.cpp:44:1: error: stray '\240' in program
conex.cpp:44:1: error: stray '\302' in program
conex.cpp:44:1: error: stray '\240' in program
conex.cpp:44:1: error: stray '\302' in program
conex.cpp:44:1: error: stray '\240' in program
conex.cpp:47:1: error: stray '\302' in program
 cout << "NU";

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

 ^
conex.cpp:49:1: error: stray '\240' in program
conex.cpp:49:1: error: stray '\302' in program
conex.cpp:49:1: error: stray '\240' in program
conex.cpp:49:1: error: stray '\302' in program
conex.cpp:49:1: error: stray '\240' in program
conex.cpp:49:1: error: stray '\302' in program
conex.cpp:49:1: error: stray '\240' in program
conex.cpp:49:1: error: stray '\302' in program
conex.cpp:49:1: error: stray '\240' in program
conex.cpp: In function 'int main()':
conex.cpp:38:9: error: 'cin' was not declared in this scope
     cin >> n;

         ^
conex.cpp:45:1: error: 'cout' was not declared in this scope
 cout<<"DA";

 ^
conex.cpp:47:1: error: 'cout' was not declared in this scope
 cout << "NU";

 ^

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