Pagini recente » Borderou de evaluare (job #955210) | Borderou de evaluare (job #2932142) | Borderou de evaluare (job #847542) | Borderou de evaluare (job #914516) | Borderou de evaluare (job #1426037)
Borderou de evaluare (job #1426037)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int)’:
user.cpp:29:28: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for( ; poz<=n; poz+=poz&(poz-1)^poz)
^
user.cpp: In function ‘int query(int)’:
user.cpp:35:25: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for( ; poz; poz-=poz&(poz-1)^poz)
^
user.cpp: In function ‘int main()’:
user.cpp:46:32: warning: unused variable ‘s’ [-Wunused-variable]
int m, a, b, c, tip, i, j, s, ok;
^
user.cpp:46:35: warning: unused variable ‘ok’ [-Wunused-variable]
int m, a, b, c, tip, i, j, s, ok;
^
user.cpp:44:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("aib.in", "r", stdin);
^
user.cpp:45:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("aib.out", "w", stdout);
^
user.cpp:47:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:50:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &c);
^
user.cpp:55:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &tip);
^
user.cpp:58:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &a, &b);
^
user.cpp:63:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &a, &b);
^
user.cpp:68:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 248kb | OK | 10 |
2 | 0ms | 256kb | OK | 10 |
3 | 4ms | 276kb | OK | 10 |
4 | 28ms | 348kb | OK | 10 |
5 | 64ms | 392kb | OK | 10 |
6 | 96ms | 512kb | OK | 10 |
7 | 104ms | 584kb | OK | 10 |
8 | 152ms | 644kb | OK | 10 |
9 | 152ms | 636kb | OK | 10 |
10 | 152ms | 644kb | OK | 10 |
Punctaj total | 100 |