Pagini recente » Borderou de evaluare (job #850883) | Borderou de evaluare (job #1400494) | Borderou de evaluare (job #436408) | Borderou de evaluare (job #1738641) | Borderou de evaluare (job #1922708)
Borderou de evaluare (job #1922708)
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:153:42: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (isalpha (s1[j]) && !cod[s1[j]])
^
user.cpp:154: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 |
1 | 0ms | 252kb | OK | 10 |
2 | 0ms | 252kb | OK | 10 |
3 | 0ms | 252kb | OK | 10 |
4 | 0ms | 252kb | OK | 10 |
5 | 8ms | 248kb | OK | 10 |
6 | 0ms | 248kb | Incorect | 0 |
7 | 0ms | 252kb | OK | 10 |
8 | 0ms | 256kb | OK | 10 |
9 | 0ms | 248kb | OK | 10 |
10 | 0ms | 252kb | OK | 10 |
Punctaj total | 90 |