Borderou de evaluare (job #1371804)

Utilizator atatomirTatomir Alex atatomir Data 4 martie 2015 08:42:25
Problema Text3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:54:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] prov[i] = ant[c]; ^ user.cpp:55:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] cnt[i] = cnt[ant[c]]+1; ^ user.cpp:57:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(cnt[i]>cnt[ant[w[i][len[i]]]]) ^ user.cpp:58:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] ant[w[i][len[i]]] = i; ^ user.cpp:30:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("text3.in","r",stdin); ^ user.cpp:31:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("text3.out","w",stdout); ^ user.cpp:33:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); ^ user.cpp:36:22: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); ^ user.cpp:49:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); ^ /tmp/ccsIB6uZ.o: In function `main': user.cpp:(.text.startup+0x56): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit500kbTime limit exceeded.0
2Depăşit476kbTime limit exceeded.0
3Depăşit432kbTime limit exceeded.0
4Depăşit380kbTime limit exceeded.0
5Depăşit776kbTime limit exceeded.0
64ms584kbKilled by signal 6(SIGABRT).0
7Depăşit372kbTime limit exceeded.0
8Depăşit1144kbTime limit exceeded.0
9Depăşit396kbTime limit exceeded.0
10Depăşit416kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?