Borderou de evaluare (job #2021927)

Utilizator GavrilaVladGavrila Vlad GavrilaVlad Data 14 septembrie 2017 22:51:41
Problema Pitici4 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:45:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d", &n); ^ user.cpp:48:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d", &a, &b); ^ user.cpp:48:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:75:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n", sol); ^ user.cpp:43:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pitici4.in", "r", stdin); ^ user.cpp:44:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pitici4.out", "w", stdout); ^ user.cpp:45:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:48:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &a, &b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms8100kbOK10
28ms8108kbOK10
312ms8128kbOK10
412ms8180kbIncorect0
512ms8152kbOK10
668ms8500kbOK10
776ms9092kbIncorect0
8144ms9948kbIncorect0
9144ms9020kbOK10
10136ms8896kbOK10
Punctaj total70

Ceva nu functioneaza?