Borderou de evaluare (job #1980403)

Utilizator alexandra_paticaAndreea Alexandra Patica alexandra_patica Data 13 mai 2017 00:20:21
Problema Nrsubsecv Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:16:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d %d", &n, &m); ^ user.cpp:16:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:19:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &a[i]); ^ user.cpp:53:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d %d", &a1, &a2); ^ user.cpp:53:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:55:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", nr); ^ user.cpp:13:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("nrsubsecv.in", "r", stdin); ^ user.cpp:14:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("nrsubsecv.out", "w", stdout); ^ user.cpp:16:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^ user.cpp:19:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[i]); ^ user.cpp:53:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &a1, &a2); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms312kbOK55
20ms476kbOK55
3104ms11236kbOK55
4104ms11180kbOK55
5164ms18256kbIncorect00
6164ms18260kbIncorect00
7368ms27628kbIncorect00
8504ms34664kbIncorect00
9504ms34664kbIncorect00
10312ms28160kbIncorect0
11444ms32312kbIncorect00
12416ms33952kbIncorect0
13552ms37008kbIncorect00
14476ms37664kbIncorect0
15588ms39344kbIncorect00
16508ms39760kbIncorect0
17608ms39340kbIncorect00
18516ms39940kbIncorect0
19580ms39344kbIncorect00
20484ms39964kbIncorect0
Punctaj total20

Ceva nu functioneaza?