Borderou de evaluare (job #1388207)

Utilizator geniucosOncescu Costin geniucos Data 15 martie 2015 12:03:45
Problema Mesaj2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:25:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] last[i][sir[i]] = i; ^ user.cpp:36:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] ap[curr[i]] ++; ^ user.cpp:41:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (ap[sir[i]]) ^ user.cpp:42:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] ap[sir[i]] --, economisesc ++; ^ user.cpp:49:45: warning: array subscript has type ‘char’ [-Wchar-subscripts] j = last[j - 1][curr[pos --]]; ^ user.cpp:12:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("mesaj2.in", "r", stdin); ^ user.cpp:13:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("mesaj2.out", "w", stdout); ^ user.cpp:15:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (sir + 1); ^ user.cpp:28:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d\n", &N); ^ user.cpp:33:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (curr + 1); ^ /tmp/ccbSya5M.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
10ms304kbOK10
20ms328kbOK10
30ms428kbOK10
48ms588kbOK10
532ms628kbOK10
624ms684kbOK10
736ms788kbOK10
848ms780kbOK10
9Depăşit780kbTime limit exceeded.0
10Depăşit776kbTime limit exceeded.0
Punctaj total80

Ceva nu functioneaza?