#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 | #9422607 | Utilizator | |
Fișier | gradmax.cpp | Dimensiune | 709 B |
Data încărcării | 03 Mai 2018, 09:55 | Scor / rezultat | Eroare de compilare |
gradmax.cpp: In function 'int main()': gradmax.cpp:10:11: error: expected unqualified-id before ',' token int n,,x,x,v[101], a[101][101], maxx=0,t=1; ^ gradmax.cpp:10:14: error: redeclaration of 'int x' int n,,x,x,v[101], a[101][101], maxx=0,t=1; ^ gradmax.cpp:10:12: error: 'int x' previously declared here int n,,x,x,v[101], a[101][101], maxx=0,t=1; ^ gradmax.cpp:11:13: error: 'k' was not declared in this scope fin>>n>>k; ^ gradmax.cpp:12:16: error: cannot bind 'std::basic_istream<char>' lvalue to 'std::basic_istream<char>&&' while(fin>>a>>b) ^ In file included from /usr/include/c++/4.8/iostream:40:0, from gradmax.cpp:1: /usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = int [101][101]]' operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ gradmax.cpp:12:19: error: 'b' was not declared in this scope while(fin>>a>>b) ^ gradmax.cpp:14:14: error: 'y' was not declared in this scope a[x][y]=a[y][x]=1; ^ gradmax.cpp:24:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(v[i]=maxx) ^ gradmax.cpp:34:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(v[i]=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ă.