Borderou de evaluare (job #1257650)

Utilizator deresurobertoFMI - Deresu Roberto deresuroberto Data 8 noiembrie 2014 00:27:39
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/cc5uqH0q.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
10ms280kbOK10
20ms280kbOK10
30ms284kbOK10
40ms280kbOK10
50ms284kbOK10
68ms424kbOK10
74ms400kbOK10
8Depăşit1808kbTime limit exceeded.0
9Depăşit2200kbTime limit exceeded.0
10Depăşit1872kbTime limit exceeded.0
Punctaj total70

Ceva nu functioneaza?