Borderou de evaluare (job #1750990)

Utilizator delia_ioanaCeapa Delia Ioana delia_ioana Data 31 august 2016 15:41:28
Problema Vila 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:1: error: reference to ‘deque’ is ambiguous deque<int> bigger, smaller; ^ user.cpp:7:17: note: candidates are: int deque [5000010] int nums[maxn], deque[maxn], n, k, sol = INT_MIN; ^ In file included from /usr/include/c++/4.8/deque:64:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_deque.h:730:11: note: template<class _Tp, class _Alloc> class std::deque class deque : protected _Deque_base<_Tp, _Alloc> ^ user.cpp:8:1: error: ‘deque’ does not name a type deque<int> bigger, smaller; ^ user.cpp: In function ‘int main()’: user.cpp:18:11: error: ‘bigger’ was not declared in this scope while (!bigger.empty() && nums[i] >= nums[bigger.back()]) ^ user.cpp:20:11: error: ‘smaller’ was not declared in this scope while (!smaller.empty() && nums[i] <= nums[smaller.back()]) ^ user.cpp:23:3: error: ‘bigger’ was not declared in this scope bigger.push_back(i); ^ user.cpp:24:3: error: ‘smaller’ was not declared in this scope smaller.push_back(i); ^ user.cpp:11:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("vila2.in", "r", stdin); ^ user.cpp:12:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("vila2.out", "w", stdout); ^ user.cpp:14:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &k); ^ user.cpp:17:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nums[i]); ^

Ceva nu functioneaza?