Borderou de evaluare (job #1922728)

Utilizator CONTULETZCONTULETZ CONTULETZ Data 10 martie 2017 18:38:18
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:78:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] int nr = cod[s[i]]; ^ user.cpp: In function ‘int main()’: user.cpp:119:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (isalpha (s1[j]) && !f1[s1[j]]) { ^ user.cpp:120:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] f1[s1[j]] = true; ^ user.cpp:125:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (isalpha (s2[j]) && !f2[s2[j]]) { ^ user.cpp:126:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] f2[s2[j]] = true; ^ user.cpp:157:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (isalpha (s1[j]) && !cod[s1[j]]) ^ user.cpp:158:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] cod[s1[j]] = v[++k]; ^ user.cpp:104: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:105: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:108:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d\n", &N); ^ user.cpp:112:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (s1); ^ user.cpp:113: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
10ms244kbOK10
20ms244kbOK10
30ms244kbOK10
40ms252kbOK10
58ms252kbOK10
60ms248kbIncorect0
70ms248kbOK10
80ms252kbOK10
90ms244kbOK10
100ms248kbOK10
Punctaj total90

Ceva nu functioneaza?