Submission #1301121

#TimeUsernameProblemLanguageResultExecution timeMemory
1301121yus1f_mArranging Shoes (IOI19_shoes)C++20
Compilation error
0 ms0 KiB
//#pragma GCC optimize("O3") #include <bits/stdc++.h> #include "shoes.h" long long count_swap(vector<int>nums) { long long ans; if(nums[0]<0) { ans=0; } else { ans=1; } return ans; }

Compilation message (stderr)

shoes.cpp:4:22: error: 'vector' was not declared in this scope
    4 | long long count_swap(vector<int>nums)
      |                      ^~~~~~
shoes.cpp:4:22: note: suggested alternatives:
In file included from /usr/include/c++/13/vector:66,
                 from /usr/include/c++/13/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:53,
                 from shoes.cpp:2:
/usr/include/c++/13/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/13/vector:86:13: note:   'std::pmr::vector'
   86 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
shoes.cpp:4:29: error: expected primary-expression before 'int'
    4 | long long count_swap(vector<int>nums)
      |                             ^~~