제출 #332136

#제출 시각아이디문제언어결과실행 시간메모리
332136LittleFlowers__Roller Coaster Railroad (IOI16_railroad)C++17
컴파일 에러
0 ms0 KiB
#include "railroad.h" #include <bits/stdc++.h> long long plan_roller_coaster(vector<int> s, vector<int> t){ }

컴파일 시 표준 에러 (stderr) 메시지

railroad.cpp:3:31: error: 'long long int plan_roller_coaster' redeclared as different kind of entity
    3 | long long plan_roller_coaster(vector<int> s, vector<int> t){
      |                               ^~~~~~
In file included from railroad.cpp:1:
railroad.h:5:11: note: previous declaration 'long long int plan_roller_coaster(std::vector<int>, std::vector<int>)'
    5 | long long plan_roller_coaster(std::vector<int> s, std::vector<int> t);
      |           ^~~~~~~~~~~~~~~~~~~
railroad.cpp:3:31: error: 'vector' was not declared in this scope
    3 | long long plan_roller_coaster(vector<int> s, vector<int> t){
      |                               ^~~~~~
railroad.cpp:3:31: note: suggested alternatives:
In file included from /usr/include/c++/9/vector:67,
                 from railroad.h:3,
                 from railroad.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:386:11: note:   'std::vector'
  386 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
In file included from railroad.h:3,
                 from railroad.cpp:1:
/usr/include/c++/9/vector:90:13: note:   'std::pmr::vector'
   90 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
railroad.cpp:3:38: error: expected primary-expression before 'int'
    3 | long long plan_roller_coaster(vector<int> s, vector<int> t){
      |                                      ^~~
railroad.cpp:3:46: error: 'vector' was not declared in this scope
    3 | long long plan_roller_coaster(vector<int> s, vector<int> t){
      |                                              ^~~~~~
railroad.cpp:3:46: note: suggested alternatives:
In file included from /usr/include/c++/9/vector:67,
                 from railroad.h:3,
                 from railroad.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:386:11: note:   'std::vector'
  386 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
In file included from railroad.h:3,
                 from railroad.cpp:1:
/usr/include/c++/9/vector:90:13: note:   'std::pmr::vector'
   90 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
railroad.cpp:3:53: error: expected primary-expression before 'int'
    3 | long long plan_roller_coaster(vector<int> s, vector<int> t){
      |                                                     ^~~