Borderou de evaluare (job #1545103)

Utilizator MKLOLDragos Ristache MKLOL Data 6 decembrie 2015 15:13:48
Problema Seriale Status done
Runda Algoritmiada 2016 - Runda 1, Seniori Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int check(int)’: user.cpp:44:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(nst < v1.size() && st < l.size() && (l[st] < v1[nst])) ++st; ^ user.cpp:44:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(nst < v1.size() && st < l.size() && (l[st] < v1[nst])) ++st; ^ user.cpp:46:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(st < l.size() && is[l[st]] != num && isa[v1[nst]] != num){ ^ user.cpp:61:9: error: redeclaration of ‘int st’ int st = 0,dr=l.size()-1; ^ user.cpp:25:9: error: ‘int st’ previously declared here int st=0,dr=v.size()-1; ^ user.cpp:61:16: error: redeclaration of ‘int dr’ int st = 0,dr=l.size()-1; ^ user.cpp:25:14: error: ‘int dr’ previously declared here int st=0,dr=v.size()-1; ^ user.cpp:75:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<v.size();++i){ ^ user.cpp: In function ‘int main()’: user.cpp:86:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("seriale.in","r",stdin); ^ user.cpp:87:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("seriale.out","w",stdout); ^ user.cpp:88:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&N,&K); ^ user.cpp:92:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x); ^ user.cpp:117:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x); ^

Ceva nu functioneaza?