Borderou de evaluare (job #1530583)

Utilizator florin.elfusFlorin Elfus florin.elfus Data 21 noiembrie 2015 12:33:48
Problema Calandrinon Status done
Runda FMI No Stress 6 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:41:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] L[x[i]] = i; ^ user.cpp:45:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (L[x[i]] == i && !killed[x[i]]) { ^ user.cpp:45:41: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (L[x[i]] == i && !killed[x[i]]) { ^ user.cpp:47:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (!killed[x[j]]) ^ user.cpp:49:36: warning: array subscript has type ‘char’ [-Wchar-subscripts] killed[x[j]] = 1; ^ user.cpp:52:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (!killed[x[j]] && query(x[j] - 'a') - query(x[j] - 'a' - 1) > 0) ^ user.cpp:57:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (!killed[x[i]]) ^ user.cpp:34:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("calandrinon.in", "r", stdin); ^ user.cpp:35:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("calandrinon.out", "w", stdout); ^ user.cpp:38:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:39:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(x + 1); ^ /tmp/cccAaHvN.o: In function `main': user.cpp:(.text.startup+0x6a): warning: the `gets' function is dangerous and should not be used.
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms440kbIncorect0
20ms444kbIncorect0
30ms436kbIncorect0
40ms436kbIncorect0
50ms440kbIncorect0
60ms444kbIncorect0
70ms436kbIncorect0
80ms444kbIncorect0
90ms444kbIncorect0
100ms440kbIncorect0
110ms536kbIncorect0
120ms536kbIncorect0
130ms532kbIncorect0
140ms540kbIncorect0
1528ms1412kbIncorect0
1628ms1412kbIncorect0
1728ms1412kbIncorect0
1828ms1412kbIncorect0
1932ms1412kbIncorect0
2028ms1408kbIncorect0
Punctaj total0

Ceva nu functioneaza?