Borderou de evaluare (job #1494513)

Utilizator alexandru822Bosinta Alexandru alexandru822 Data 1 octombrie 2015 11:56:20
Problema Deque Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/lib/gcc/i686-linux-gnu/4.8/include/stdint.h:9:0, from /usr/include/c++/4.8/cstdint:41, from /usr/include/c++/4.8/bits/char_traits.h:376, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: user.cpp:8:11: error: expected unqualified-id before numeric constant const int SIZE_MAX = 500000; ^ user.cpp:8:11: error: expected ‘)’ before numeric constant user.cpp:9:18: error: size of array ‘date’ is too large int date[SIZE_MAX], v[SIZE_MAX]; ^ user.cpp:9:31: error: size of array ‘v’ is too large int date[SIZE_MAX], v[SIZE_MAX]; ^ user.cpp: In function ‘void pushFront(int)’: user.cpp:19:5: error: ‘date’ was not declared in this scope date[top%SIZE_MAX] = val; ^ user.cpp: In function ‘int topDeque()’: user.cpp:25:12: error: ‘date’ was not declared in this scope return date[(top-1)%SIZE_MAX]; ^ user.cpp: In function ‘int bottomDeque()’: user.cpp:30:12: error: ‘date’ was not declared in this scope return date[bottom%SIZE_MAX]; ^ user.cpp: In function ‘bool isInSequence(int)’: user.cpp:45:25: error: ‘v’ was not declared in this scope if(bottomDeque() == v[i-k]) ^ user.cpp: In function ‘int main()’: user.cpp:56:5: error: ‘v’ was not declared in this scope v[1] = val; ^ user.cpp: In function ‘int topDeque()’: user.cpp:26:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int bottomDeque()’: user.cpp:31:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘bool isInSequence(int)’: user.cpp:49:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?