#417
GradMax
Se dă lista muchiilor unui graf neorientat. Să se afișeze vârfurile de grad maxim.
Problema | GradMax | Operații I/O |
gradmax.in /gradmax.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #25857940 | Utilizator | |
Fișier | gradmax.cpp | Dimensiune | 349 B |
Data încărcării | 17 Noiembrie 2020, 15:47 | Scor / rezultat | Eroare de compilare |
gradmax.cpp: In function 'int main()': gradmax.cpp:3:1: error: expected primary-expression before '...' token ....... ^ gradmax.cpp:3:1: error: expected ';' before '...' token gradmax.cpp:6:7: error: 'fin' was not declared in this scope while(fin>>x>>y) ^ gradmax.cpp:6:12: error: 'x' was not declared in this scope while(fin>>x>>y) ^ gradmax.cpp:6:15: error: 'y' was not declared in this scope while(fin>>x>>y) ^ gradmax.cpp:9:18: error: 'test' was not declared in this scope if(test(x,y,nm)) ^ gradmax.cpp:11:5: error: 'f' was not declared in this scope f[x]++; ^ gradmax.cpp:15:1: error: 'maxg' was not declared in this scope maxg=f[1]=f[1]/2; ^ gradmax.cpp:15:6: error: 'f' was not declared in this scope maxg=f[1]=f[1]/2; ^ gradmax.cpp:16:5: error: 'i' was not declared in this scope for(i=2;i<=n;i++) ^ gradmax.cpp:16:12: error: 'n' was not declared in this scope for(i=2;i<=n;i++) ^ gradmax.cpp:22:1: error: 'm' was not declared in this scope m=0; ^ gradmax.cpp:23:5: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ gradmax.cpp:23:12: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ gradmax.cpp:26:1: error: 'fout' was not declared in this scope fout<<m<<endl; ^ gradmax.cpp:26:10: error: 'endl' was not declared in this scope fout<<m<<endl; ^ gradmax.cpp:27:5: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ gradmax.cpp:27:12: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ gradmax.cpp:29:18: error: expected '}' at end of input fout<<i<<" "; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema GradMax 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ă.