Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
	int n, m;// n 個の都市 m 本の道路
	cin >> n >> m;
	int a, b;
    vector<int>	c (n);
    for (int i = 0; i < m; i++) {
    	cin >> a >> b ;
        c.at(a - 1)++;
        c.at(b - 1)++;
    }
    for (int j = 0; j < n; j++) {
    	cout << c.at(j) << endl;
    }
}#include <bits/stdc++.h>
using namespace std;

int main() {
	int n, m;// n 個の都市 m 本の道路
	cin >> n >> m;
	int a, b;
    vector<int>	c (n);
    for (int i = 0; i < m; i++) {
    	cin >> a >> b ;
        c.at(a - 1)++;
        c.at(b - 1)++;
    }
    for (int j = 0; j < n; j++) {
    	cout << c.at(j) << endl;
    }
}#include <bits/stdc++.h>
using namespace std;

int main() {
	int n, m;// n 個の都市 m 本の道路
	cin >> n >> m;
	int a, b;
    vector<int>	c (n);
    for (int i = 0; i < m; i++) {
    	cin >> a >> b ;
        c.at(a - 1)++;
        c.at(b - 1)++;
    }
    for (int j = 0; j < n; j++) {
    	cout << c.at(j) << endl;
    }
}#include <bits/stdc++.h>
using namespace std;

int main() {
	int n, m;// n 個の都市 m 本の道路
	cin >> n >> m;
	int a, b;
    vector<int>	c (n);
    for (int i = 0; i < m; i++) {
    	cin >> a >> b ;
        c.at(a - 1)++;
        c.at(b - 1)++;
    }
    for (int j = 0; j < n; j++) {
    	cout << c.at(j) << endl;
    }
}#include <bits/stdc++.h>
using namespace std;

int main() {
	int n, m;// n 個の都市 m 本の道路
	cin >> n >> m;
	int a, b;
    vector<int>	c (n);
    for (int i = 0; i < m; i++) {
    	cin >> a >> b ;
        c.at(a - 1)++;
        c.at(b - 1)++;
    }
    for (int j = 0; j < n; j++) {
    	cout << c.at(j) << endl;
    }
}#include <bits/stdc++.h>
using namespace std;

int main() {
	int n, m;// n 個の都市 m 本の道路
	cin >> n >> m;
	int a, b;
    vector<int>	c (n);
    for (int i = 0; i < m; i++) {
    	cin >> a >> b ;
        c.at(a - 1)++;
        c.at(b - 1)++;
    }
    for (int j = 0; j < n; j++) {
    	cout << c.at(j) << endl;
    }
}#include <bits/stdc++.h>
using namespace std;

int main() {
	int n, m;// n 個の都市 m 本の道路
	cin >> n >> m;
	int a, b;
    vector<int>	c (n);
    for (int i = 0; i < m; i++) {
    	cin >> a >> b ;
        c.at(a - 1)++;
        c.at(b - 1)++;
    }
    for (int j = 0; j < n; j++) {
    	cout << c.at(j) << endl;
    }
}#include <bits/stdc++.h>
using namespace std;

int main() {
	int n, m;// n 個の都市 m 本の道路
	cin >> n >> m;
	int a, b;
    vector<int>	c (n);
    for (int i = 0; i < m; i++) {
    	cin >> a >> b ;
        c.at(a - 1)++;
        c.at(b - 1)++;
    }
    for (int j = 0; j < n; j++) {
    	cout << c.at(j) << endl;
    }
}#include <bits/stdc++.h>
using namespace std;

int main() {
	int n, m;// n 個の都市 m 本の道路
	cin >> n >> m;
	int a, b;
    vector<int>	c (n);
    for (int i = 0; i < m; i++) {
    	cin >> a >> b ;
        c.at(a - 1)++;
        c.at(b - 1)++;
    }
    for (int j = 0; j < n; j++) {
    	cout << c.at(j) << endl;
    }
}#include <bits/stdc++.h>
using namespace std;

int main() {
	int n, m;// n 個の都市 m 本の道路
	cin >> n >> m;
	int a, b;
    vector<int>	c (n);
    for (int i = 0; i < m; i++) {
    	cin >> a >> b ;
        c.at(a - 1)++;
        c.at(b - 1)++;
    }
    for (int j = 0; j < n; j++) {
    	cout << c.at(j) << endl;
    }
}#include <bits/stdc++.h>
using namespace std;

int main() {
	int n, m;// n 個の都市 m 本の道路
	cin >> n >> m;
	int a, b;
    vector<int>	c (n);
    for (int i = 0; i < m; i++) {
    	cin >> a >> b ;
        c.at(a - 1)++;
        c.at(b - 1)++;
    }
    for (int j = 0; j < n; j++) {
    	cout << c.at(j) << endl;
    }
}#include <bits/stdc++.h>
using namespace std;

int main() {
	int n, m;// n 個の都市 m 本の道路
	cin >> n >> m;
	int a, b;
    vector<int>	c (n);
    for (int i = 0; i < m; i++) {
    	cin >> a >> b ;
        c.at(a - 1)++;
        c.at(b - 1)++;
    }
    for (int j = 0; j < n; j++) {
    	cout << c.at(j) << endl;
    }
}

Compiler output:
a.cc:17:2: error: stray '#' in program
   17 | }#include <bits/stdc++.h>
      |  ^
a.cc:33:2: error: stray '#' in program
   33 | }#include <bits/stdc++.h>
      |  ^
a.cc:49:2: error: stray '#' in program
   49 | }#include <bits/stdc++.h>
      |  ^
a.cc:65:2: error: stray '#' in program
   65 | }#include <bits/stdc++.h>
      |  ^
a.cc:81:2: error: stray '#' in program
   81 | }#include <bits/stdc++.h>
      |  ^
a.cc:97:2: error: stray '#' in program
   97 | }#include <bits/stdc++.h>
      |  ^
a.cc:113:2: error: stray '#' in program
  113 | }#include <bits/stdc++.h>
      |  ^
a.cc:129:2: error: stray '#' in program
  129 | }#include <bits/stdc++.h>
      |  ^
a.cc:145:2: error: stray '#' in program
  145 | }#include <bits/stdc++.h>
      |  ^
a.cc:161:2: error: stray '#' in program
  161 | }#include <bits/stdc++.h>
      |  ^
a.cc:177:2: error: stray '#' in program
  177 | }#include <bits/stdc++.h>
      |  ^
a.cc:17:3: error: 'include' does not name a type
   17 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:20:5: error: redefinition of 'int main()'
   20 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:33:3: error: 'include' does not name a type
   33 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:36:5: error: redefinition of 'int main()'
   36 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:49:3: error: 'include' does not name a type
   49 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:52:5: error: redefinition of 'int main()'
   52 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:65:3: error: 'include' does not name a type
   65 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:68:5: error: redefinition of 'int main()'
   68 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:81:3: error: 'include' does not name a type
   81 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:84:5: error: redefinition of 'int main()'
   84 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:97:3: error: 'include' does not name a type
   97 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:100:5: error: redefinition of 'int main()'
  100 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:113:3: error: 'include' does not name a type
  113 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:116:5: error: redefinition of 'int main()'
  116 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:129:3: error: 'include' does not name a type
  129 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:132:5: error: redefinition of 'int main()'
  132 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:145:3: error: 'include' does not name a type
  145 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:148:5: error: redefinition of 'int main()'
  148 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:161:3: error: 'include' does not name a type
  161 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:164:5: error: redefinition of 'int main()'
  164 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:177:3: error: 'include' does not name a type
  177 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:180:5: error: redefinition of 'int main()'
  180 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~