Borderou de evaluare (job #2053444)

Utilizator B_RazvanBaboiu Razvan B_Razvan Data 31 octombrie 2017 19:10:24
Problema Calcul Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void read()’: user.cpp:15:23: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[100005]’ [-Wformat=] scanf("%s\n", &str); ^ user.cpp:23:23: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[100005]’ [-Wformat=] scanf("%s\n", &str); ^ user.cpp:41:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &c); ^ user.cpp: In function ‘void print()’: user.cpp:75:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d", v[i]); ^ user.cpp: In function ‘void read()’: user.cpp:15:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", &str); ^ user.cpp:23:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", &str); ^ user.cpp:41:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &c); ^ user.cpp: In function ‘int main()’: user.cpp:80:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("calcul.in", "r", stdin); ^ user.cpp:81:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("calcul.out", "w", stdout); ^ user.cpp: In function ‘void read()’: user.cpp:37:55: warning: ‘cifra’ may be used uninitialized in this function [-Wmaybe-uninitialized] biti[4 * (lung - i - 1) + j + 1] = (cifra & (1<<j)); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms456kbOK5
20ms452kbOK5
30ms456kbOK5
40ms456kbOK5
50ms464kbOK5
60ms460kbOK5
70ms464kbOK5
80ms456kbOK5
90ms548kbOK5
100ms520kbOK5
110ms460kbOK5
120ms460kbOK5
130ms568kbOK5
144ms572kbOK5
154ms496kbOK5
164ms548kbOK5
178ms604kbOK5
1812ms640kbOK5
1920ms740kbOK5
2020ms740kbOK5
Punctaj total100

Ceva nu functioneaza?