Borderou de evaluare (job #1867275)

Utilizator MoodyFaresFares Mohamad MoodyFares Data 3 februarie 2017 22:02:59
Problema Teatru Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:21:14: warning: array subscript has type ‘char’ [-Wchar-subscripts] ++f[s[dr]]; ^ user.cpp:22:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (f[s[dr]] == 1) { ^ user.cpp:33:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] --f[s[st]]; ^ user.cpp:34:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (f[s[st]] == 0) { ^ user.cpp:10:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("teatru.in", "r", stdin); ^ user.cpp:11:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("teatru.out", "w", stdout); ^ user.cpp:14:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d\n", &z, &c); ^ user.cpp:15:11: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (s); ^ user.cpp:42:3: warning: ‘drmin’ may be used uninitialized in this function [-Wmaybe-uninitialized] for (int i = stmin; i <= drmin; ++i) { ^ user.cpp:42:3: warning: ‘stmin’ may be used uninitialized in this function [-Wmaybe-uninitialized] /tmp/ccPwyFRj.o: In function `main': user.cpp:(.text.startup+0x72): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK10
20ms268kbOK10
30ms312kbOK10
40ms316kbOK10
50ms312kbOK10
60ms284kbOK10
74ms292kbOK10
80ms288kbOK10
94ms312kbOK10
104ms316kbOK10
Punctaj total100

Ceva nu functioneaza?