Pagini recente » Borderou de evaluare (job #2427437) | Borderou de evaluare (job #247645) | Borderou de evaluare (job #1850340) | Borderou de evaluare (job #468755) | Borderou de evaluare (job #2312880)
Borderou de evaluare (job #2312880)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:13:19: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'ULL* {aka long long unsigned int*}' [-Wformat=]
scanf("%d", &n);
^
main.cpp:15:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1; i<=n; ++i) put[i]=put[i-1]*2;
~^~~
main.cpp:17:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=2; i<=n; ++i)
~^~~
main.cpp:25:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'ULL {aka long long unsigned int}' [-Wformat=]
printf("%d\n", H[n]);
^
main.cpp:10:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("hanoi4.in", "r", stdin);
^
main.cpp:11:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("hanoi4.out", "w", stdout);
^
main.cpp:13:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 2ms | 131kb | OK | 10 |
5 | 2ms | 131kb | OK | 10 |
6 | 2ms | 131kb | OK | 10 |
7 | 2ms | 131kb | Incorect | 0 |
8 | 2ms | 131kb | Incorect | 0 |
9 | 2ms | 131kb | Incorect | 0 |
10 | 2ms | 131kb | Incorect | 0 |
Punctaj total | 60 |