#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 | #14479038 | Utilizator | |
Fișier | gradmax.cpp | Dimensiune | 734 B |
Data încărcării | 05 Martie 2019, 18:46 | Scor / rezultat | Eroare de compilare |
gradmax.cpp:6:1: error: expected ',' or ';' before 'ofstream' ofstream out("gradmax.out") ^ gradmax.cpp: In function 'void citire()': gradmax.cpp:11:9: error: 'n' was not declared in this scope in>>n; ^ gradmax.cpp:12:21: error: 'A' was not declared in this scope while(in>>x>>y){A[x][y]=A[y][x]=1;} ^ gradmax.cpp: In function 'int main()': gradmax.cpp:18:9: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ gradmax.cpp:18:16: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ gradmax.cpp:20:13: error: 'j' was not declared in this scope for(j=1;j<=n;j++) ^ gradmax.cpp:21:16: error: 'A' was not declared in this scope s+=A[i][j]; ^ gradmax.cpp:22:9: error: 'A' was not declared in this scope A[i][0]=s; ^ gradmax.cpp:24:9: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ gradmax.cpp:24:16: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ gradmax.cpp:25:12: error: 'A' was not declared in this scope if(A[i][0]>maxx) ///parcurg coloana 0 deci ma duc pe linii cu for ^ gradmax.cpp:27:9: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ gradmax.cpp:27:16: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ gradmax.cpp:28:12: error: 'A' was not declared in this scope if(A[i][0]==maxx)m++; ^ gradmax.cpp:29:9: error: 'out' was not declared in this scope out<<m<<" "; ^ gradmax.cpp:30:9: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ gradmax.cpp:30:16: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ gradmax.cpp:31:12: error: 'A' was not declared in this scope if(A[i][0]==maxx) ^
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ă.