Borderou de evaluare (job #1997412)

Utilizator mjmilan11Mujdar Milan mjmilan11 Data 4 iulie 2017 11:50:45
Problema Mate Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void update(int, int)’: user.cpp:11:26: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define LSB(x) ((x)^(x-1)&(x)) ^ user.cpp:18:22: note: in expansion of macro ‘LSB’ for(; x < 2*N; x += LSB(x)) ^ user.cpp: In function ‘int query(int)’: user.cpp:11:26: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define LSB(x) ((x)^(x-1)&(x)) ^ user.cpp:25:20: note: in expansion of macro ‘LSB’ for(; x > 0; x -= LSB(x)) ^ user.cpp: In function ‘void clear(int)’: user.cpp:11:26: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define LSB(x) ((x)^(x-1)&(x)) ^ user.cpp:32:22: note: in expansion of macro ‘LSB’ for(; x < 2*N; x += LSB(x)) ^ user.cpp: In function ‘void solve()’: user.cpp:45:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0; j < Poz[i].size(); j++) ^ user.cpp:55:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(j == Poz[i].size()-1) ^ user.cpp:65:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0; j < Poz[i].size(); j++) ^ user.cpp:38:15: warning: unused variable ‘q’ [-Wunused-variable] int i, j, k, q, last, prev, val, add, val2; ^ user.cpp: In function ‘void read_data()’: user.cpp:75:9: warning: unused variable ‘j’ [-Wunused-variable] int i, j, k, x; ^ user.cpp:75:12: warning: unused variable ‘k’ [-Wunused-variable] int i, j, k, x; ^ user.cpp:76:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &N); ^ user.cpp:78:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d" , &x), Poz[x].push_back(i); ^ user.cpp: In function ‘int main()’: user.cpp:88:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("mate.in", "rt", stdin);
Test Timp executie Memorie folosita Mesaj Punctaj/test
116ms12004kbOK10
216ms12028kbOK10
320ms12096kbOK10
444ms12788kbOK10
572ms13460kbOK10
6108ms14340kbOK10
7148ms15108kbOK10
8208ms16436kbOK10
9324ms18500kbOK10
10372ms19564kbOK10
Punctaj total100

Ceva nu functioneaza?