Borderou de evaluare (job #2227427)

Utilizator inquisitorAnders inquisitor Data 31 iulie 2018 18:27:35
Problema Deque Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:44:1: error: expected initializer before ‘int’ int deque[5000001]; ^~~ user.cpp: In function ‘int main()’: user.cpp:59:9: error: ‘v’ was not declared in this scope v[i] = get_int(); ^ user.cpp:64:32: error: ‘v’ was not declared in this scope while(front <= back && v[i] <= v[deque[back]]) ^ user.cpp:64:42: error: ‘deque’ was not declared in this scope while(front <= back && v[i] <= v[deque[back]]) ^~~~~ user.cpp:69:9: error: ‘deque’ was not declared in this scope deque[++back] = i; ^~~~~ user.cpp:75:32: error: ‘v’ was not declared in this scope while(front <= back && v[i] <= v[deque[back]]) ^ user.cpp:75:42: error: ‘deque’ was not declared in this scope while(front <= back && v[i] <= v[deque[back]]) ^~~~~ user.cpp:80:9: error: ‘deque’ was not declared in this scope deque[++back] = i; ^~~~~ user.cpp:84:16: error: ‘v’ was not declared in this scope sum += v[deque[front]]; ^ user.cpp: At global scope: user.cpp:9:36: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) int get_int() ^~~~~~~ user.cpp: In function ‘int get_int()’: user.cpp:19:48: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(buffer, 1, BUFFER_SIZE, stdin); ^ user.cpp:31:48: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(buffer, 1, BUFFER_SIZE, stdin); ^ user.cpp: In function ‘int main()’: user.cpp:52:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("deque.in", "r", stdin); ^ user.cpp:53:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("deque.out", "w", stdout); ^

Ceva nu functioneaza?