Language: C++

#include <vector>
#include <iostream>

using namaspase std;

int main(void)
{
	int n, m;
    cin >> n >> m;
    
    vector<int> a(m);
    vector<int> b(m);

	for (int i = 0; i < m; i++) {
    	cin >> a[i] >> b[i];
	}
    
    bool ans = false;
    for (int i = 0; i < m; i++) {
    	if (a[i] == 1) {
        	int tmp = b[i];
            for (int j = 0; j < m; j++) {
            	if (a[j] == tmp){
                	if (b[j] == n) {
                    	ans = true;
                        break;
					}
                }
			}
            if (ans) break;
        }
	}
    
    if (ans) {
    	cout << "POSSIBLE" << endl;
    } else {
    	cout << "IMPOSSIBLE" << endl;
	}
}

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'namaspase'
    4 | using namaspase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin >> n >> m;
      |     ^~~
      |     std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:5: error: 'vector' was not declared in this scope
   11 |     vector<int> a(m);
      |     ^~~~~~
a.cc:11:5: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:11:12: error: expected primary-expression before 'int'
   11 |     vector<int> a(m);
      |            ^~~
a.cc:12:12: error: expected primary-expression before 'int'
   12 |     vector<int> b(m);
      |            ^~~
a.cc:15:16: error: 'a' was not declared in this scope
   15 |         cin >> a[i] >> b[i];
      |                ^
a.cc:15:24: error: 'b' was not declared in this scope
   15 |         cin >> a[i] >> b[i];
      |                        ^
a.cc:20:13: error: 'a' was not declared in this scope
   20 |         if (a[i] == 1) {
      |             ^
a.cc:21:27: error: 'b' was not declared in this scope
   21 |                 int tmp = b[i];
      |                           ^
a.cc:35:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   35 |         cout << "POSSIBLE" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:35:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   35 |         cout << "POSSIBLE" << endl;
      |                               ^~~~
      |                               std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:37:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   37 |         cout << "IMPOSSIBLE" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:37:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   37 |         cout << "IMPOSSIBLE" << endl;
      |                                 ^~~~
      |                                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~