#416
Grade
Se dă lista muchiilor unui graf neorientat. Să se afișeze gradul fiecărui vârf.
Problema | Grade | Operații I/O |
grade.in /grade.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54792385 | Utilizator | |
Fișier | grade.cpp | Dimensiune | 512 B |
Data încărcării | 08 Decembrie 2024, 22:31 | Scor / rezultat | Eroare de compilare |
grade.cpp:5:1: error: 'log' does not name a type log long n , m , a[101][101] , p , r , e[2500]; ^ grade.cpp: In function 'int main()': grade.cpp:8:5: error: reference to 'cin' is ambiguous cin >> n; ^ grade.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("grade.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from grade.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ grade.cpp:8:12: error: 'n' was not declared in this scope cin >> n; ^ grade.cpp:9:11: error: reference to 'cin' is ambiguous while(cin >> p >> r) ^ grade.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("grade.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from grade.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ grade.cpp:9:18: error: 'p' was not declared in this scope while(cin >> p >> r) ^ grade.cpp:9:23: error: 'r' was not declared in this scope while(cin >> p >> r) ^ grade.cpp:11:9: error: 'a' was not declared in this scope a[p][r] = 1; ^ grade.cpp:17:21: error: 'a' was not declared in this scope if (a[i][j]) e[i]++; ^ grade.cpp:17:30: error: 'e' was not declared in this scope if (a[i][j]) e[i]++; ^ grade.cpp:21:13: error: reference to 'cout' is ambiguous cout << e[i] << " "; ^ grade.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout("grade.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from grade.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ grade.cpp:21:21: error: 'e' was not declared in this scope cout << e[i] << " "; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Grade 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ă.