Borderou de evaluare (job #1526410)

Utilizator antanaAntonia Boca antana Data 16 noiembrie 2015 11:10:34
Problema Iepuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:75:89: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%I64d%I64d%I64d%I64d%I64d%I64d%d", &m[1][1],&m[1][2],&m[1][3],&a,&b,&c,&n); ^ user.cpp:75:89: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:75:89: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:75:89: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long long int*’ [-Wformat=] user.cpp:75:89: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘long long int*’ [-Wformat=] user.cpp:75:89: warning: format ‘%d’ expects argument of type ‘int*’, but argument 7 has type ‘long long int*’ [-Wformat=] user.cpp:76:44: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%I64d\n", ridic(n-2,a, b,c)); ^ user.cpp:70:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("iepuri.in","r",stdin); ^ user.cpp:71:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("iepuri.out","w",stdout); ^ user.cpp:73:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t); ^ user.cpp:75:90: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%I64d%I64d%I64d%I64d%I64d%I64d%d", &m[1][1],&m[1][2],&m[1][3],&a,&b,&c,&n); ^ user.cpp: In function ‘long long int ridic(int, int, int, int)’: user.cpp:63:18: warning: array subscript is above array bounds [-Warray-bounds] CI[1][1]=(m[1][1]*rez[1][1]+m[1][2]*rez[2][1]+m[1][3]*rez[3][1])%mod; ^ user.cpp:63:36: warning: array subscript is above array bounds [-Warray-bounds] CI[1][1]=(m[1][1]*rez[1][1]+m[1][2]*rez[2][1]+m[1][3]*rez[3][1])%mod; ^ user.cpp:63:54: warning: array subscript is above array bounds [-Warray-bounds] CI[1][1]=(m[1][1]*rez[1][1]+m[1][2]*rez[2][1]+m[1][3]*rez[3][1])%mod; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms464kbRaspuns gresit!0
20ms460kbRaspuns gresit!0
30ms456kbRaspuns gresit!0
40ms460kbRaspuns gresit!0
50ms460kbRaspuns gresit!0
60ms464kbRaspuns gresit!0
70ms460kbRaspuns gresit!0
80ms460kbRaspuns gresit!0
90ms464kbRaspuns gresit!0
100ms464kbRaspuns gresit!0
Punctaj total0

Ceva nu functioneaza?