Pagini recente » Borderou de evaluare (job #1359349) | Borderou de evaluare (job #2646173) | Borderou de evaluare (job #896926) | Borderou de evaluare (job #460754) | Borderou de evaluare (job #2261548)
Borderou de evaluare (job #2261548)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:22:19: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=]
scanf("%d", &n);
^
main.cpp:25:37: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=]
scanf("%d", &mat[i][j].h);
^
main.cpp:26:46: warning: narrowing conversion of 'i' from 'int' to 'short int' inside { } [-Wnarrowing]
sir[(i-1)*n+j]={i, j, mat[i][j].h};
^
main.cpp:27:49: warning: narrowing conversion of 'i' from 'int' to 'short int' inside { } [-Wnarrowing]
vec[mat[i][j].h].push_back({i, j, 0});
^
main.cpp:18:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
{ freopen("alpin.in", "r",stdin);
^
main.cpp:19:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("alpin.out", "w",stdout);
^
main.cpp:22:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:25:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &mat[i][j].h);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 12ms | 655kb | Alpinistul si-a indeplinit sarcina! | 10 |
2 | 12ms | 1179kb | Alpinistul si-a indeplinit sarcina! | 10 |
3 | 17ms | 2228kb | Alpinistul si-a indeplinit sarcina! | 10 |
4 | 22ms | 2359kb | Alpinistul si-a indeplinit sarcina! | 10 |
5 | 70ms | 5505kb | Alpinistul si-a indeplinit sarcina! | 10 |
6 | 147ms | 8388kb | Alpinistul si-a indeplinit sarcina! | 10 |
7 | 450ms | 18481kb | Alpinistul si-a indeplinit sarcina! | 10 |
8 | 600ms | 23199kb | Time limit exceeded | 0 |
9 | 600ms | 21151kb | Time limit exceeded | 0 |
10 | 600ms | 28311kb | Time limit exceeded | 0 |
Punctaj total | 70 |