Borderou de evaluare (job #1259988)

Utilizator Yasin_ibraimIbraim Yasin Yasin_ibraim Data 10 noiembrie 2014 19:30:08
Problema Schi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void update(int)’: user.cpp:11:15: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] x += x&(x-1)^x; ^ user.cpp: In function ‘int query(int)’: user.cpp:22:15: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] x -= x&(x-1)^x; ^ user.cpp: In function ‘int main()’: user.cpp:52:30: error: expected primary-expression before ‘)’ token fin=fopen("schi.in", "r",); ^ user.cpp:53:39: error: too many arguments to function ‘FILE* fopen(const char*, const char*)’ fout=fopen("schi.out", "w", stdout); ^ In file included from /usr/include/c++/4.8/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:273:14: note: declared here extern FILE *fopen (__const char *__restrict __filename, ^ user.cpp:55:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:58:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i]); ^

Ceva nu functioneaza?