Borderou de evaluare (job #1671339)

Utilizator TudoseSanzianaTudose Sanziana TudoseSanziana Data 1 aprilie 2016 16:22:03
Problema Palalila2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:8:35: warning: unused variable ‘stare’ [-Wunused-variable] int i, n, poz = n - 1, lmax = 0, stare = 0; ^ user.cpp:6:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("palalila2.in", "r", stdin); ^ user.cpp:7:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("palalila2.out", "w", stdout); ^ user.cpp:9:9: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:8:22: warning: ‘n’ is used uninitialized in this function [-Wuninitialized] int i, n, poz = n - 1, lmax = 0, stare = 0; ^ /tmp/ccgTHXl7.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
1Depăşit204kbTime limit exceeded.0
20ms244kbOK10
30ms240kbOK10
40ms244kbOK10
5Depăşit212kbTime limit exceeded.0
6Depăşit220kbTime limit exceeded.0
70ms336kbOK10
84ms584kbOK10
9Depăşit692kbTime limit exceeded.0
104ms724kbOK10
Punctaj total60

Ceva nu functioneaza?