Borderou de evaluare (job #1183877)

Utilizator tudormaximTudor Maxim tudormaxim Data 10 mai 2014 14:05:09
Problema Iepuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:47:16: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&t); ^ user.cpp:51:80: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld %ld %ld %ld %ld %ld %ld",&x0,&x1,&x2,&a[2][2],&a[2][1],&a[2][0],&n); ^ user.cpp:51:80: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:51:80: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:51:80: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 5 has type ‘long long int*’ [-Wformat=] user.cpp:51:80: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 6 has type ‘long long int*’ [-Wformat=] user.cpp:51:80: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 7 has type ‘long long int*’ [-Wformat=] user.cpp:51:80: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 8 has type ‘long long int*’ [-Wformat=] user.cpp:66:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%ld\n",n); ^ user.cpp:45:32: 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:46:34: 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:47:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&t); ^ user.cpp:51:81: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld %ld %ld %ld %ld %ld",&x0,&x1,&x2,&a[2][2],&a[2][1],&a[2][0],&n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms260kbOk!10
20ms260kbOk!10
30ms260kbOk!10
40ms264kbOk!10
50ms260kbOk!10
60ms260kbOk!10
70ms252kbOk!10
80ms256kbOk!10
90ms260kbOk!10
104ms260kbOk!10
Punctaj total100

Ceva nu functioneaza?