Borderou de evaluare (job #2002715)

Utilizator GavrilaVladGavrila Vlad GavrilaVlad Data 20 iulie 2017 17:05:20
Problema H Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:69:16: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d", &n); ^ user.cpp:72:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d%d", &v[i].x, &v[i].yj, &v[i].ys); ^ user.cpp:72:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:72:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:108:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n", sol); ^ user.cpp:67:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("h.in", "r", stdin); ^ user.cpp:68:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("h.out", "w", stdout); ^ user.cpp:69:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:72:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &v[i].x, &v[i].yj, &v[i].ys); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
1276ms7980kbOK10100
2376ms8224kbOK10
3412ms8480kbOK10
4348ms8224kbOK10
5340ms8472kbOK10
6364ms8472kbOK10
7372ms8116kbOK10
8324ms8196kbOK10
9216ms7968kbOK10
10344ms8476kbOK10
Punctaj total100

Ceva nu functioneaza?