Pagini recente » Borderou de evaluare (job #3116016) | Borderou de evaluare (job #736208) | Borderou de evaluare (job #1246285) | Cod sursa (job #2698618) | Borderou de evaluare (job #1922679)
Borderou de evaluare (job #1922679)
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 |
1 | 0ms | 240kb | OK | 10 |
2 | 0ms | 244kb | OK | 10 |
3 | 0ms | 244kb | OK | 10 |
4 | 0ms | 244kb | OK | 10 |
5 | 8ms | 244kb | OK | 10 |
6 | 0ms | 248kb | Incorect | 0 |
7 | 0ms | 244kb | OK | 10 |
8 | 0ms | 244kb | OK | 10 |
9 | 0ms | 248kb | OK | 10 |
10 | 0ms | 240kb | OK | 10 |
Punctaj total | 90 |