Borderou de evaluare (job #1425081)

Utilizator ialexia_ioanaAlexia Ichim ialexia_ioana Data 26 aprilie 2015 17:01:28
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘void update(int, int)’: user.cpp:9: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:15: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:24: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:25: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:27: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:30:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &c); ^ user.cpp:35:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &tip); ^ user.cpp:38: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:43: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:48: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
10ms256kbOK10
24ms256kbOK10
3108ms272kbOK10
4Depăşit352kbTime limit exceeded.0
5Depăşit388kbTime limit exceeded.0
6Depăşit508kbTime limit exceeded.0
7Depăşit580kbTime limit exceeded.0
8Depăşit632kbTime limit exceeded.0
9Depăşit640kbTime limit exceeded.0
10Depăşit636kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?