Borderou de evaluare (job #2106254)

Utilizator andreicontorandrei contor andreicontor Data 15 ianuarie 2018 15:38:47
Problema Prefix Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘void prefix()’: user.cpp:10:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(q=2;q<=strlen(s);q++) ^ user.cpp: In function ‘int main()’: user.cpp:32:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=1;j<=strlen(s);j++) ^ user.cpp:22:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("prefix.in","r",stdin); ^ user.cpp:23:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("prefix.out","w",stdout); ^ user.cpp:24:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:25:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^ user.cpp:28:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); ^ user.cpp:30:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^ /tmp/cctkJpDA.o: In function `main': user.cpp:(.text.startup+0x95): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbOK10
20ms272kbIncorect0
3Depăşit348kbTime limit exceeded.0
4Depăşit516kbTime limit exceeded.0
5Depăşit368kbTime limit exceeded.0
6Depăşit432kbTime limit exceeded.0
7Depăşit864kbTime limit exceeded.0
8Depăşit1184kbTime limit exceeded.0
9Depăşit360kbTime limit exceeded.0
104ms280kbIncorect0
Punctaj total10

Ceva nu functioneaza?