Borderou de evaluare (job #1217024)

Utilizator radudurlesteanuDurlesteanu Radu Stefan radudurlesteanu Data 6 august 2014 14:40:49
Problema Trapez Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:23:14: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&n); ^ user.cpp:25:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d",&a[i].x,&a[i].y); ^ user.cpp:25:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:41:15: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d",nr); ^ user.cpp:21:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trapez.in","r",stdin); ^ user.cpp:22:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trapez.out","w",stdout); ^ user.cpp:23:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:25:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&a[i].x,&a[i].y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbOk!10
2488ms8084kbOk!10
30ms344kbOk!10
4472ms8080kbOk!10
50ms340kbOk!10
68ms444kbOk!10
7480ms8072kbOk!10
8108ms2220kbOk!10
9468ms8076kbOk!10
10452ms7876kbOk!10
Punctaj total100

Ceva nu functioneaza?