Borderou de evaluare (job #2312880)

Utilizator PopeangaMihneaPopeanga Mihnea- Stefan PopeangaMihnea Data 5 ianuarie 2019 17:50:51
Problema Hanoi4 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 60

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
12ms131kbOK10
22ms131kbOK10
32ms131kbOK10
42ms131kbOK10
52ms131kbOK10
62ms131kbOK10
72ms131kbIncorect0
82ms131kbIncorect0
92ms131kbIncorect0
102ms131kbIncorect0
Punctaj total60

Ceva nu functioneaza?