#466
GenGraf
Se dă un număr natural n
. Construiți toate grafurile neorientate cu n
vârfuri.
Problema | GenGraf | Operații I/O |
gengraf.in /gengraf.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54126672 | Utilizator | |
Fișier | gengraf.cpp | Dimensiune | 810 B |
Data încărcării | 20 Noiembrie 2024, 12:02 | Scor / rezultat | Eroare de compilare |
gengraf.cpp:10:1: error: stray '\302' in program int p=1,i,j; ^ gengraf.cpp:10:1: error: stray '\240' in program gengraf.cpp:10:1: error: stray '\302' in program gengraf.cpp:10:1: error: stray '\240' in program gengraf.cpp:11:1: error: stray '\302' in program for(i=1;i<=n;i++) ^ gengraf.cpp:11:1: error: stray '\240' in program gengraf.cpp:11:1: error: stray '\302' in program gengraf.cpp:11:1: error: stray '\240' in program gengraf.cpp:12:1: error: stray '\302' in program for(j=i+1;j<=n;j++) ^ gengraf.cpp:12:1: error: stray '\240' in program gengraf.cpp:12:1: error: stray '\302' in program gengraf.cpp:12:1: error: stray '\240' in program gengraf.cpp:12:1: error: stray '\302' in program gengraf.cpp:12:1: error: stray '\240' in program gengraf.cpp:12:1: error: stray '\302' in program gengraf.cpp:12:1: error: stray '\240' in program gengraf.cpp:13:1: error: stray '\302' in program a[i][j]=a[j][i]=st[p++]; ^ gengraf.cpp:13:1: error: stray '\240' in program gengraf.cpp:13:1: error: stray '\302' in program gengraf.cpp:13:1: error: stray '\240' in program gengraf.cpp:13:1: error: stray '\302' in program gengraf.cpp:13:1: error: stray '\240' in program gengraf.cpp:13:1: error: stray '\302' in program gengraf.cpp:13:1: error: stray '\240' in program gengraf.cpp:14:1: error: stray '\302' in program for(i=1;i<=n;i++) ^ gengraf.cpp:14:1: error: stray '\240' in program gengraf.cpp:14:1: error: stray '\302' in program gengraf.cpp:14:1: error: stray '\240' in program gengraf.cpp:15:1: error: stray '\302' in program { ^ gengraf.cpp:15:1: error: stray '\240' in program gengraf.cpp:15:1: error: stray '\302' in program gengraf.cpp:15:1: error: stray '\240' in program gengraf.cpp:16:1: error: stray '\302' in program for(j=1;j<=n;j++) ^ gengraf.cpp:16:1: error: stray '\240' in program gengraf.cpp:16:1: error: stray '\302' in program gengraf.cpp:16:1: error: stray '\240' in program gengraf.cpp:16:1: error: stray '\302' in program gengraf.cpp:16:1: error: stray '\240' in program gengraf.cpp:16:1: error: stray '\302' in program gengraf.cpp:16:1: error: stray '\240' in program gengraf.cpp:17:1: error: stray '\302' in program fout<<a[i][j]<<" "; ^ gengraf.cpp:17:1: error: stray '\240' in program gengraf.cpp:17:1: error: stray '\302' in program gengraf.cpp:17:1: error: stray '\240' in program gengraf.cpp:17:1: error: stray '\302' in program gengraf.cpp:17:1: error: stray '\240' in program gengraf.cpp:17:1: error: stray '\302' in program gengraf.cpp:17:1: error: stray '\240' in program gengraf.cpp:17:1: error: stray '\302' in program gengraf.cpp:17:1: error: stray '\240' in program gengraf.cpp:17:1: error: stray '\302' in program gengraf.cpp:17:1: error: stray '\240' in program gengraf.cpp:18:1: error: stray '\302' in program fout<<'\n'; ^ gengraf.cpp:18:1: error: stray '\240' in program gengraf.cpp:18:1: error: stray '\302' in program gengraf.cpp:18:1: error: stray '\240' in program gengraf.cpp:18:1: error: stray '\302' in program gengraf.cpp:18:1: error: stray '\240' in program gengraf.cpp:18:1: error: stray '\302' in program gengraf.cpp:18:1: error: stray '\240' in program gengraf.cpp:19:1: error: stray '\302' in program } ^ gengraf.cpp:19:1: error: stray '\240' in program gengraf.cpp:19:1: error: stray '\302' in program gengraf.cpp:19:1: error: stray '\240' in program gengraf.cpp:20:1: error: stray '\302' in program fout<<'\n'; ^ gengraf.cpp:20:1: error: stray '\240' in program gengraf.cpp:20:1: error: stray '\302' in program gengraf.cpp:20:1: error: stray '\240' in program gengraf.cpp:26:1: error: stray '\302' in program for(int i=0;i<=1;i++) ^ gengraf.cpp:26:1: error: stray '\240' in program gengraf.cpp:26:1: error: stray '\302' in program gengraf.cpp:26:1: error: stray '\240' in program gengraf.cpp:27:1: error: stray '\302' in program { ^ gengraf.cpp:27:1: error: stray '\240' in program gengraf.cpp:27:1: error: stray '\302' in program gengraf.cpp:27:1: error: stray '\240' in program gengraf.cpp:28:1: error: stray '\302' in program st[k]=i; ^ gengraf.cpp:28:1: error: stray '\240' in program gengraf.cpp:28:1: error: stray '\302' in program gengraf.cpp:28:1: error: stray '\240' in program gengraf.cpp:28:1: error: stray '\302' in program gengraf.cpp:28:1: error: stray '\240' in program gengraf.cpp:28:1: error: stray '\302' in program gengraf.cpp:28:1: error: stray '\240' in program gengraf.cpp:29:1: error: stray '\302' in program if(k==n*(n-1)/2) ^ gengraf.cpp:29:1: error: stray '\240' in program gengraf.cpp:29:1: error: stray '\302' in program gengraf.cpp:29:1: error: stray '\240' in program gengraf.cpp:29:1: error: stray '\302' in program gengraf.cpp:29:1: error: stray '\240' in program gengraf.cpp:29:1: error: stray '\302' in program gengraf.cpp:29:1: error: stray '\240' in program gengraf.cpp:29:1: error: stray '\302' in program gengraf.cpp:29:1: error: stray '\240' in program gengraf.cpp:29:1: error: stray '\302' in program gengraf.cpp:29:1: error: stray '\240' in program gengraf.cpp:30:1: error: stray '\302' in program afis(k); ^ gengraf.cpp:30:1: error: stray '\240' in program gengraf.cpp:30:1: error: stray '\302' in program gengraf.cpp:30:1: error: stray '\240' in program gengraf.cpp:30:1: error: stray '\302' in program gengraf.cpp:30:1: error: stray '\240' in program gengraf.cpp:30:1: error: stray '\302' in program gengraf.cpp:30:1: error: stray '\240' in program gengraf.cpp:30:1: error: stray '\302' in program gengraf.cpp:30:1: error: stray '\240' in program gengraf.cpp:30:1: error: stray '\302' in program gengraf.cpp:30:1: error: stray '\240' in program gengraf.cpp:31:1: error: stray '\302' in program else ^ gengraf.cpp:31:1: error: stray '\240' in program gengraf.cpp:31:1: error: stray '\302' in program gengraf.cpp:31:1: error: stray '\240' in program gengraf.cpp:31:1: error: stray '\302' in program gengraf.cpp:31:1: error: stray '\240' in program gengraf.cpp:31:1: error: stray '\302' in program gengraf.cpp:31:1: error: stray '\240' in program gengraf.cpp:32:1: error: stray '\302' in program bkt(k+1); ^ gengraf.cpp:32:1: error: stray '\240' in program gengraf.cpp:32:1: error: stray '\302' in program gengraf.cpp:32:1: error: stray '\240' in program gengraf.cpp:32:1: error: stray '\302' in program gengraf.cpp:32:1: error: stray '\240' in program gengraf.cpp:32:1: error: stray '\302' in program gengraf.cpp:32:1: error: stray '\240' in program gengraf.cpp:32:1: error: stray '\302' in program gengraf.cpp:32:1: error: stray '\240' in program gengraf.cpp:32:1: error: stray '\302' in program gengraf.cpp:32:1: error: stray '\240' in program gengraf.cpp:33:1: error: stray '\302' in program } ^ gengraf.cpp:33:1: error: stray '\240' in program gengraf.cpp:33:1: error: stray '\302' in program gengraf.cpp:33:1: error: stray '\240' in program gengraf.cpp:37:1: error: stray '\302' in program fin>>n; ^ gengraf.cpp:37:1: error: stray '\240' in program gengraf.cpp:37:1: error: stray '\302' in program gengraf.cpp:37:1: error: stray '\240' in program gengraf.cpp:38:1: error: stray '\302' in program int p=1; ^ gengraf.cpp:38:1: error: stray '\240' in program gengraf.cpp:38:1: error: stray '\302' in program gengraf.cpp:38:1: error: stray '\240' in program gengraf.cpp:39:1: error: stray '\302' in program for(int i=1;i<=n*(n-1)/2;i++) ^ gengraf.cpp:39:1: error: stray '\240' in program gengraf.cpp:39:1: error: stray '\302' in program gengraf.cpp:39:1: error: stray '\240' in program gengraf.cpp:40:1: error: stray '\302' in program p*=2; ^ gengraf.cpp:40:1: error: stray '\240' in program gengraf.cpp:40:1: error: stray '\302' in program gengraf.cpp:40:1: error: stray '\240' in program gengraf.cpp:40:1: error: stray '\302' in program gengraf.cpp:40:1: error: stray '\240' in program gengraf.cpp:40:1: error: stray '\302' in program gengraf.cpp:40:1: error: stray '\240' in program gengraf.cpp:41:1: error: stray '\302' in program fout<<p<<'\n'; ^ gengraf.cpp:41:1: error: stray '\240' in program gengraf.cpp:41:1: error: stray '\302' in program gengraf.cpp:41:1: error: stray '\240' in program gengraf.cpp:42:1: error: stray '\302' in program bkt(1); ^ gengraf.cpp:42:1: error: stray '\240' in program gengraf.cpp:42:1: error: stray '\302' in program gengraf.cpp:42:1: error: stray '\240' in program gengraf.cpp:47:1: error: stray '\302' in program return 0; ^ gengraf.cpp:47:1: error: stray '\240' in program gengraf.cpp:47:1: error: stray '\302' in program gengraf.cpp:47:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema GenGraf face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
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ă.