Pagini recente » Cod sursa (job #748263) | Borderou de evaluare (job #9126) | Borderou de evaluare (job #2303849)
Borderou de evaluare (job #2303849)
Raport evaluator
Compilare:
main.cpp: In function 'void update(int, int)':
main.cpp:13:30: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
for (; x <= N; x += x^(x-1) & x)
~~~~~~^~~
main.cpp: In function 'int query(int)':
main.cpp:20:25: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
for (; x; x -= x^(x-1) & x)
~~~~~~^~~
main.cpp: In function 'int main()':
main.cpp:30:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("scmax_test9.in", "r", stdin);
^
main.cpp:31:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("scmax.out", "w", stdout);
^
main.cpp:33:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
main.cpp:35:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &V[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | Lungime incorecta! | 0 | 0 |
2 | 2ms | 131kb | Lungime incorecta! | 0 | 0 |
3 | 2ms | 131kb | Lungime incorecta! | 0 | 0 |
4 | 2ms | 131kb | Lungime incorecta! | 0 | 0 |
5 | 2ms | 131kb | Lungime incorecta! | 0 | 0 |
6 | 2ms | 131kb | Lungime incorecta! | 0 | 0 |
7 | 2ms | 131kb | Lungime incorecta! | 0 | 0 |
8 | 2ms | 131kb | Lungime incorecta! | 0 | 0 |
9 | 2ms | 131kb | Lungime incorecta! | 0 |
10 | 2ms | 131kb | Lungime incorecta! | 0 |
Punctaj total | 0 |