Pagini recente » Borderou de evaluare (job #1652307) | Borderou de evaluare (job #3283829) | Borderou de evaluare (job #3278066) | Borderou de evaluare (job #2487117) | Borderou de evaluare (job #1449676)
Borderou de evaluare (job #1449676)
Raport evaluator
Compilare:
user.cpp: In function ‘void print(std::string)’:
user.cpp:63:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=0;i<s.size();i++) printf("%c",s[i]);
^
user.cpp: In function ‘int main()’:
user.cpp:89:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (b=1;b<=se.size();b++)
^
user.cpp:67:28: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sub.in","r",stdin);
^
user.cpp:68:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sub.out","w",stdout);
^
user.cpp:69:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n1);
^
user.cpp:70:10: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s+1); n=strlen(s+1); root=new trie;
^
user.cpp:73:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s+1); n=strlen(s+1); b=i;
^
user.cpp:79:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n1);
^
user.cpp:81:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s); ss=s;
^
/tmp/ccJfMNRb.o: In function `main':
user.cpp:(.text.startup+0x6a): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 488kb | OK | 10 |
2 | 0ms | 544kb | OK | 10 |
3 | 0ms | 604kb | OK | 10 |
4 | 4ms | 1060kb | OK | 10 |
5 | 16ms | 1772kb | OK | 10 |
6 | 32ms | 1904kb | OK | 10 |
7 | 88ms | 5640kb | OK | 10 |
8 | 80ms | 5728kb | OK | 10 |
9 | 164ms | 5832kb | OK | 10 |
10 | 120ms | 5568kb | OK | 10 |
Punctaj total | 100 |