#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 | #54796611 | Utilizator | |
Fișier | gradmax.cpp | Dimensiune | 581 B |
Data încărcării | 09 Decembrie 2024, 08:47 | Scor / rezultat | Eroare de compilare |
gradmax.cpp:6:16: error: expected initializer before 'n' int m[101][101]n,a,b,cont,maxi=0; ^ gradmax.cpp: In function 'int main()': gradmax.cpp:10:10: error: 'n' was not declared in this scope cin>>n; ^ gradmax.cpp:11:16: error: 'a' was not declared in this scope while(cin>>a>>b){ ^ gradmax.cpp:11:19: error: 'b' was not declared in this scope while(cin>>a>>b){ ^ gradmax.cpp:12:13: error: 'm' was not declared in this scope if(!m[a][b]){ ^ gradmax.cpp:15:24: error: 'maxi' was not declared in this scope if(m[a][0]>maxi) ^ gradmax.cpp:18:9: error: 'm' was not declared in this scope m[a][b]=1; ^ gradmax.cpp:22:12: error: 'm' was not declared in this scope if(m[i][0]==maxi) ^ gradmax.cpp:22:21: error: 'maxi' was not declared in this scope if(m[i][0]==maxi) ^ gradmax.cpp:23:9: error: 'cont' was not declared in this scope cont++; ^ gradmax.cpp:24:11: error: 'cont' was not declared in this scope cout<<cont<<" "; ^ gradmax.cpp:26:12: error: 'm' was not declared in this scope if(m[i][0]==maxi) ^ gradmax.cpp:26:21: error: 'maxi' was not declared in this scope if(m[i][0]==maxi) ^
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ă.