Borderou de evaluare (job #1481481)

Utilizator mirupetPetcan Miruna mirupet Data 4 septembrie 2015 16:46:23
Problema Abc2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:32:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] a += w[i + 1] * v[T[i]]; ^ user.cpp:38:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] a += w[i + 1] * v[S[i]]; ^ user.cpp:45:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] a += w[nr] * v[S[i]]; ^ user.cpp:49:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", SOL); ^ user.cpp: In function ‘bool Search(long long int)’: user.cpp:57:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (*it = Val) ^ user.cpp: In function ‘int main()’: user.cpp:15:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("abc2.in","r",stdin); ^ user.cpp:16:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("abc2.out","w",stdout); ^ user.cpp:18:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(S); ^ /tmp/ccmmZKOl.o: In function `main': user.cpp:(.text.startup+0x5b): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
112ms8068kbIncorect00
212ms8068kbOK10
340ms8096kbOK10
4328ms8172kbIncorect0
5Depăşit8460kbTime limit exceeded.0
6Depăşit9472kbTime limit exceeded.0
7Depăşit13688kbTime limit exceeded.0
8Depăşit18568kbTime limit exceeded.0
9Depăşit18564kbTime limit exceeded.0
10Depăşit18564kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?