Borderou de evaluare (job #1316024)

Utilizator obidanDan Ganea obidan Data 13 ianuarie 2015 14:21:45
Problema Deque Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:16:5: error: expected ‘;’ before ‘for’ for(i=1;i<=n;i++) ^ user.cpp:16:14: warning: statement has no effect [-Wunused-value] for(i=1;i<=n;i++) ^ user.cpp:16:21: error: expected ‘;’ before ‘)’ token for(i=1;i<=n;i++) ^ user.cpp:25:56: error: lvalue required as decrement operand while((first <= last) && (v[i] <= v[deq[last]]) --last; ^ user.cpp:25:58: error: expected ‘)’ before ‘last’ while((first <= last) && (v[i] <= v[deq[last]]) --last; ^ user.cpp:25:62: warning: statement has no effect [-Wunused-value] while((first <= last) && (v[i] <= v[deq[last]]) --last; ^ user.cpp:11:34: 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:12:36: 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); ^ user.cpp:16:12: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i=1;i<=n;i++) ^

Ceva nu functioneaza?