Borderou de evaluare (job #1617973)

Utilizator h_town_fanShazam Connor h_town_fan Data 27 februarie 2016 17:25:51
Problema And Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:13:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] for(i=1;i<=n;++i) scanf("%d",v[i]); ^ user.cpp:17:29: error: expected ‘;’ before ‘)’ token for(i=2;i<=n && (x1 & v[i]) ) x1 = x1 & v[i]; ^ user.cpp:25:34: error: expected ‘;’ before ‘)’ token for(j=i;j<=n && ( x1 & v[j]) ) x1 = x1 & v[j]; ^ user.cpp:28:36: error: expected ‘;’ before ‘)’ token for(j=i;j>ultim && (x1 & v[j]) ) x1 = x1 & v[j]; ^ user.cpp:7:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("and.in","r",stdin); ^ user.cpp:8:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("and.out","w",stdout); ^ user.cpp:11:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:13:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i=1;i<=n;++i) scanf("%d",v[i]); ^

Ceva nu functioneaza?