Borderou de evaluare (job #1922679)

Utilizator CONTULETZCONTULETZ CONTULETZ Data 10 martie 2017 18:24:14
Problema Logic Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘int evaluare(char*)’: user.cpp:77:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] int nr = cod[s[i]]; ^ user.cpp: In function ‘int main()’: user.cpp:118:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (isalpha (s1[j]) && !f1[s1[j]]) { ^ user.cpp:119:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] f1[s1[j]] = true; ^ user.cpp:124:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (isalpha (s2[j]) && !f2[s2[j]]) { ^ user.cpp:125:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] f2[s2[j]] = true; ^ user.cpp:152:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (isalpha (s1[j]) && !cod[s1[j]]) ^ user.cpp:153:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[s1[j]] = v[++k]; ^ user.cpp:103:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("logic.in", "r", stdin); ^ user.cpp:104:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("logic.out", "w", stdout); ^ user.cpp:107:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d\n", &N); ^ user.cpp:111:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (s1); ^ user.cpp:112:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (s2); ^ user.cpp:57:24: warning: ‘y’ may be used uninitialized in this function [-Wmaybe-uninitialized] rez[++top1] = (x | y); ^ user.cpp:41:7: note: ‘y’ was declared here int y; ^ user.cpp:49:24: warning: ‘y’ may be used uninitialized in this function [-Wmaybe-uninitialized] rez[++top1] = (x & y); ^ user.cpp:41:7: note: ‘y’ was declared here int y; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms240kbOK10
20ms244kbOK10
30ms244kbOK10
40ms244kbOK10
58ms244kbOK10
60ms248kbIncorect0
70ms244kbOK10
80ms244kbOK10
90ms248kbOK10
100ms240kbOK10
Punctaj total90

Ceva nu functioneaza?