Borderou de evaluare (job #1696034)

Utilizator testsursaSurseTest testsursa Data 28 aprilie 2016 11:59:11
Problema Swap Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘void add(int)’: user.cpp:3:21: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define UB(i) ( (i) & ((i)-1)^(i)) ^ user.cpp:16:18: note: in expansion of macro ‘UB’ for(;x<=n;x+=UB(x)) aib[x]++; ^ user.cpp: In function ‘int query(int)’: user.cpp:3:21: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define UB(i) ( (i) & ((i)-1)^(i)) ^ user.cpp:21:15: note: in expansion of macro ‘UB’ for(;x;x-=UB(x)) s+=aib[x]; ^ user.cpp: In function ‘int main()’: user.cpp:33:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] cat1[a[i]][0]++; ^ user.cpp:35:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] A[a[i]][cat1[a[i]][0]]=i; ^ user.cpp:35:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] A[a[i]][cat1[a[i]][0]]=i; ^ user.cpp:39:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] cat2[b[i]][0]++; ^ user.cpp:40:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] aux=cat2[b[i]][0]; ^ user.cpp:41:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[i].first=A[b[i]][aux]; ^ user.cpp:26:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("swap.in","r",stdin); ^ user.cpp:27:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("swap.out","w",stdout); ^ user.cpp:28:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a+1); ^ user.cpp:29:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(b+1); ^ /tmp/cc5xmBLr.o: In function `main': user.cpp:(.text.startup+0x56): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms828kbOK10
20ms820kbOK10
30ms864kbOK10
40ms1152kbOK10
54ms1156kbOK10
612ms1340kbOK10
78ms1408kbOK10
8Depăşit1408kbTime limit exceeded.0
98ms1380kbOK10
1032ms1584kbOK10
Punctaj total90

Ceva nu functioneaza?