fork download
  1. #include <iostream>
  2. #include <queue>
  3. #include <vector>
  4. #include <map>
  5. #include <utility>
  6. #include <algorithm>
  7. using namespace std;
  8.  
  9.  
  10. int n;
  11. int m;
  12.  
  13. int main() {
  14. while (cin >> n >> m) {
  15. map <int, set<int>> conec;
  16. while (m--) {
  17. string p;
  18. cin >> p;
  19. if (p == con) {
  20. int x, y;
  21. cin >> x >> y;
  22.  
  23. }
  24. if (p == dis) {
  25. int x, y;
  26. cin >> x >> y;
  27. }
  28. if (p == coach) {
  29.  
  30. }
  31. }
  32. cout << "--------------------" << endl;
  33. }
  34. }
  35.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:15:13: error: 'set' was not declared in this scope
   map <int, set<int>> conec;
             ^
prog.cpp:15:20: error: template argument 2 is invalid
   map <int, set<int>> conec;
                    ^
prog.cpp:15:20: error: template argument 4 is invalid
prog.cpp:19:13: error: 'con' was not declared in this scope
    if (p == con) {
             ^
prog.cpp:24:13: error: 'dis' was not declared in this scope
    if (p == dis) {
             ^
prog.cpp:28:13: error: 'coach' was not declared in this scope
    if (p == coach) {
             ^
stdout
Standard output is empty