# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
332135 | LittleFlowers__ | Roller Coaster Railroad (IOI16_railroad) | C++17 | 컴파일 에러 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "railroad.h"
long long plan_roller_coaster(vector<int> s, vector<int> t){
}
컴파일 시 표준 에러 (stderr) 메시지
railroad.cpp:2:31: error: 'long long int plan_roller_coaster' redeclared as different kind of entity 2 | 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:2:31: error: 'vector' was not declared in this scope 2 | long long plan_roller_coaster(vector<int> s, vector<int> t){ | ^~~~~~ railroad.cpp:2: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:2:38: error: expected primary-expression before 'int' 2 | long long plan_roller_coaster(vector<int> s, vector<int> t){ | ^~~ railroad.cpp:2:46: error: 'vector' was not declared in this scope 2 | long long plan_roller_coaster(vector<int> s, vector<int> t){ | ^~~~~~ railroad.cpp:2: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:2:53: error: expected primary-expression before 'int' 2 | long long plan_roller_coaster(vector<int> s, vector<int> t){ | ^~~