Pagini recente » Borderou de evaluare (job #131920) | Borderou de evaluare (job #69459) | Borderou de evaluare (job #311342) | Borderou de evaluare (job #25676) | Borderou de evaluare (job #1940323)
Borderou de evaluare (job #1940323)
Raport evaluator
Compilare:
user.cpp: In function ‘int turnInt(char&)’:
user.cpp:25:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:49:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
p[initSt[i]] = i;
^
user.cpp:56:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (p[finSt[i]] > first)
^
user.cpp:58:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
initSt[p[finSt[i]]] = '*';
^
user.cpp:59:45: warning: array subscript has type ‘char’ [-Wchar-subscripts]
ans += 1LL * (i - p[finSt[i]] + add[finSt[i]]);
^
user.cpp:59:61: warning: array subscript has type ‘char’ [-Wchar-subscripts]
ans += 1LL * (i - p[finSt[i]] + add[finSt[i]]);
^
user.cpp:61:59: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (j != finSt[i] && p[j] > p[finSt[i]])
^
user.cpp:64:30: warning: array subscript has type ‘char’ [-Wchar-subscripts]
-- p[finSt[i]];
^
user.cpp:68:40: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (p[initSt[p[st]]] < p[st])
^
user.cpp:35:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
user.cpp:40:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:42:49: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n%s\n%s", initSt + 1, finSt + 1);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 8ms | 4344kb | Incorect | 0 |
2 | 16ms | 4396kb | Incorect | 0 |
3 | 32ms | 4532kb | Incorect | 0 |
4 | 44ms | 4636kb | Incorect | 0 |
5 | 52ms | 4692kb | Incorect | 0 |
6 | 56ms | 4732kb | Incorect | 0 |
7 | 208ms | 5900kb | Incorect | 0 |
8 | 244ms | 6096kb | Incorect | 0 |
9 | 256ms | 6284kb | Incorect | 0 |
10 | 8ms | 4340kb | Incorect | 0 |
Punctaj total | 0 |