Borderou de evaluare (job #1257653)

Utilizator deresurobertoFMI - Deresu Roberto deresuroberto Data 8 noiembrie 2014 00:36:01
Problema Trompeta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:22:67: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(!q.empty() && q.back() < s[i] && q.size() + n-i >= k) q.pop_back(); ^ user.cpp:14:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trompeta.in","r",stdin); ^ user.cpp:15:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trompeta.out","w",stdout); ^ user.cpp:16:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n",&n,&k); ^ user.cpp:17:11: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); ^ /tmp/ccGzE62f.o: In function `main': user.cpp:(.text.startup+0x77): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK10
20ms264kbOK10
30ms264kbOK10
40ms272kbOK10
50ms264kbOK10
68ms476kbOK10
74ms420kbOK10
8Depăşit2132kbTime limit exceeded.0
9Depăşit2288kbTime limit exceeded.0
10Depăşit2128kbTime limit exceeded.0
Punctaj total70

Ceva nu functioneaza?