Borderou de evaluare (job #1249525)

Utilizator tudorcomanTudor Coman tudorcoman Data 27 octombrie 2014 09:15:44
Problema Deque Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void citire()’: user.cpp:9:21: warning: too many arguments for format [-Wformat-extra-args] scanf("%d",&n,&k); ^ user.cpp: In function ‘int main()’: user.cpp:19:5: error: ‘f’ was not declared in this scope f=1; ^ user.cpp:20:5: error: ‘b’ was not declared in this scope b=0; ^ user.cpp:26:25: error: ‘d’ was not declared in this scope if(i>=k)suma+=a[d[front]]; ^ user.cpp:28:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n",suma); ^ user.cpp: In function ‘void citire()’: user.cpp:9:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n,&k); ^ user.cpp:11:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i]); ^ user.cpp: In function ‘int main()’: user.cpp:15: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:16: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); ^

Ceva nu functioneaza?