Borderou de evaluare (job #1892528)

Utilizator depevladVlad Dumitru-Popescu depevlad Data 25 februarie 2017 01:28:10
Problema Mesaj2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void get_jump_letter()’: user.cpp:23:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] jump_letter[len][text[len]] = len; ^ user.cpp: In function ‘void process_word()’: user.cpp:36:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] j = jump_letter[j][word[k]] + 1; ^ user.cpp: In function ‘int main()’: user.cpp:56:31: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(text + 1, LMAX, fin); ^ user.cpp:57:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d\n", &n); ^ user.cpp:64:35: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(word + 1, LMAX, fin); ^ 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* fgets(char*, int, FILE*)’, inlined from ‘int main()’ at user.cpp:56:31: /usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default] return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^ In function ‘char* fgets(char*, int, FILE*)’, inlined from ‘int main()’ at user.cpp:64:35: /usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default] return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms476kbOK10
2Depăşit484kbTime limit exceeded.0
3Depăşit588kbTime limit exceeded.0
4Depăşit740kbTime limit exceeded.0
5Depăşit780kbTime limit exceeded.0
640ms852kbOK10
7Depăşit932kbTime limit exceeded.0
8Depăşit932kbTime limit exceeded.0
9Depăşit936kbTime limit exceeded.0
10Depăşit932kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?