Borderou de evaluare (job #1463959)

Utilizator miki880Nechita Mihai miki880 Data 21 iulie 2015 22:04:09
Problema Cel mai lung subsir comun Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:8: error: expected constructor, destructor, or type conversion before ‘(’ token freopen("cmlsc.in","r",stdin); ^ user.cpp:5:8: error: expected constructor, destructor, or type conversion before ‘(’ token freopen("cmlsc.out","w",stdout); ^ user.cpp: In function ‘void readvector(int*, int)’: user.cpp:9:1: error: expected ‘;’ before ‘}’ token } ^ user.cpp: In function ‘int main()’: user.cpp:24:5: error: ‘res’ was not declared in this scope res[mx++]=v[i]; ^ user.cpp:31:17: error: ‘res’ was not declared in this scope printf("%d ",res[i]); ^ user.cpp:16:6: warning: unused variable ‘resp’ [-Wunused-variable] int resp[1024]; ^ user.cpp:20:7: warning: unused variable ‘ok’ [-Wunused-variable] bool ok=true; ^ user.cpp: In function ‘void readvector(int*, int)’: user.cpp:9:1: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] } ^ user.cpp: In function ‘int main()’: user.cpp:12:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&m); ^ user.cpp:13:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^

Ceva nu functioneaza?