Borderou de evaluare (job #1568654)

Utilizator raluca1234Tudor Raluca raluca1234 Data 14 ianuarie 2016 16:33:54
Problema K-BubbleSort Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:4:15: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] #define limq 1<<23 ^ user.cpp:23:27: note: in expansion of macro ‘limq’ c[dr&(limq-1)]=i-2; ^ user.cpp:4:15: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] #define limq 1<<23 ^ user.cpp:30:23: note: in expansion of macro ‘limq’ pos=c[st&(limq-1)]; ^ user.cpp:4:15: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] #define limq 1<<23 ^ user.cpp:35:23: note: in expansion of macro ‘limq’ c[dr&(limq-1)]=pos-1; ^ user.cpp:4:15: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] #define limq 1<<23 ^ user.cpp:46:23: note: in expansion of macro ‘limq’ c[dr&(limq-1)]=i-1; ^ user.cpp:11:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("kbubblesort.in", "r", stdin); ^ user.cpp:12:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("kbubblesort.out", "w", stdout); ^ user.cpp:13:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &k); ^ user.cpp:16:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i]); ^ user.cpp:10:33: warning: ‘pos’ may be used uninitialized in this function [-Wmaybe-uninitialized] int n, k, i, st, dr, ultim, pos; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
1Depăşit248kbTime limit exceeded.00
2Depăşit284kbTime limit exceeded.00
3Depăşit4156kbTime limit exceeded.00
4Depăşit4156kbTime limit exceeded.0
5Depăşit4156kbTime limit exceeded.00
6Depăşit4156kbTime limit exceeded.00
7Depăşit4152kbTime limit exceeded.00
8Depăşit4152kbTime limit exceeded.00
9Depăşit4156kbTime limit exceeded.0
10Depăşit4156kbTime limit exceeded.00
Punctaj total0

Ceva nu functioneaza?