Borderou de evaluare (job #2038559)

Utilizator LucianTLucian Trepteanu LucianT Data 13 octombrie 2017 19:52:09
Problema Frequent Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 95

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:142:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("frequent.in","r",stdin); ^ user.cpp:143:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("frequent.out","w",stdout); ^ user.cpp:145:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&k); ^ user.cpp:147:24: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str+len+1); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:46, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:147:24: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/ccabD5wG.o: In function `main': user.cpp:(.text.startup+0x7a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms540kbOK5
20ms588kbOK5
34ms756kbOK5
444ms1744kbOK5
532ms1436kbOK5
644ms1728kbOK5
7380ms7888kbOK5
8544ms11676kbOK5
9532ms10656kbOK5
10632ms12412kbOK5
11636ms11904kbOK5
12716ms14056kbOK5
13704ms13204kbOK5
14820ms15916kbOK5
151040ms18752kbOK5
161232ms21352kbOK5
171352ms24040kbOK5
181560ms27164kbOK5
191656ms28820kbOK5
20Depăşit34920kbTime limit exceeded.0
Punctaj total95

Ceva nu functioneaza?