Borderou de evaluare (job #2447056)

Utilizator richardbaczur1Baczur Richard richardbaczur1 Data 11 august 2019 22:21:57
Problema Rufe Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 60

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:12:40: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long unsigned int*' [-Wformat=] scanf("%d %d %d %d", &n, &m, &a, &b); ^ main.cpp:12:40: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long unsigned int*' [-Wformat=] main.cpp:12:40: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long unsigned int*' [-Wformat=] main.cpp:12:40: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'long long unsigned int*' [-Wformat=] main.cpp:35:35: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long unsigned int' [-Wformat=] printf("%d", c[indice]); ^ main.cpp:42:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long unsigned int' [-Wformat=] printf("%d", c[indice]+1); ^ main.cpp:8:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("rufe.in", "r", stdin); ^ main.cpp:9:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("rufe.out", "w", stdout); ^ main.cpp:12:41: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d", &n, &m, &a, &b); ^ main.cpp:42:26: warning: 'indice' may be used uninitialized in this function [-Wmaybe-uninitialized] printf("%d", c[indice]+1); ~~~~~~~~^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOkay ! 6
23ms131kbOkay ! 6
37ms131kbOkay ! 6
43ms131kbOkay ! 6
5212ms262kbRaspuns gresit0
62ms131kbOkay ! 6
72ms131kbOkay ! 6
82ms131kbOkay ! 6
91003ms131kbTime limit exceeded0
101001ms131kbTime limit exceeded0
11316ms262kbOkay ! 6
129ms131kbOkay ! 6
135ms131kbOkay ! 6
141000ms131kbTime limit exceeded0
151003ms131kbTime limit exceeded0
161007ms131kbTime limit exceeded0
Punctaj total60

Ceva nu functioneaza?