Pagini recente » Borderou de evaluare (job #1530702) | Borderou de evaluare (job #2660563) | Borderou de evaluare (job #2381742) | Borderou de evaluare (job #1704933) | Borderou de evaluare (job #1608371)
Borderou de evaluare (job #1608371)
Raport evaluator
Compilare:
user.cpp: In function ‘bool sePoate(char, int, int)’:
user.cpp:19:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (!calculat[subst][st][dr]) {
^
user.cpp:23:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return posibil[subst][st][dr];
^
user.cpp: In function ‘int main()’:
user.cpp:41:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
sparg[inst].push_back(make_pair(c1, c2));
^
user.cpp:44:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
trans[inst][c1] = true;
^
user.cpp:44:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
trans[inst][c1] = true;
^
user.cpp:64:58: warning: array subscript has type ‘char’ [-Wchar-subscripts]
posibil[st][dr][subst] = trans[subst][sir[st]];
^
user.cpp:68:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < sparg[subst].size() && !flag; ++i) {
^
user.cpp:70:59: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (posibil[st][poz][sparg[subst][i].first] &&
^
user.cpp:71:64: warning: array subscript has type ‘char’ [-Wchar-subscripts]
posibil[poz + 1][dr][sparg[subst][i].second]) {
^
user.cpp:27:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("minerale.in", "r", stdin);
^
user.cpp:28:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("minerale.out", "w", stdout);
^
user.cpp:31:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &r, &n);
^
user.cpp:35:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n%c %c", &inst, &c1);
^
user.cpp:38:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c", &c2);
^
user.cpp:52:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n%s", sir);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 784kb | OK | 10 |
2 | 0ms | 784kb | OK | 10 |
3 | 4ms | 784kb | OK | 10 |
4 | 16ms | 780kb | OK | 10 |
5 | 12ms | 780kb | OK | 10 |
6 | 64ms | 784kb | OK | 10 |
7 | 48ms | 788kb | OK | 10 |
8 | 308ms | 780kb | OK | 10 |
9 | 572ms | 788kb | OK | 10 |
10 | 720ms | 784kb | OK | 10 |
Punctaj total | 100 |