Borderou de evaluare (job #1725517)

Utilizator alittlezzCazaciuc Valentin alittlezz Data 5 iulie 2016 20:06:04
Problema Carnati Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:11:9: warning: overflow in implicit constant conversion [-Woverflow] bst = -2e9; ^ user.cpp:12:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%d %d",&n,&C); ^ user.cpp:12:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:14:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%d %d",&p[i].first, &p[i].second); ^ user.cpp:14:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:22:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(p[j].second >= P){ ^ user.cpp:32:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] printf("%d",bst); ^ user.cpp:8:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("carnati.in", "r", stdin); ^ user.cpp:9:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("carnati.out", "w", stdout); ^ user.cpp:12:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&C); ^ user.cpp:14:49: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&p[i].first, &p[i].second); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms296kbIncorect0
20ms296kbOK10
30ms296kbIncorect0
44ms300kbIncorect0
516ms300kbIncorect0
616ms300kbIncorect0
716ms304kbIncorect0
876ms304kbIncorect0
976ms300kbIncorect0
1076ms292kbIncorect0
Punctaj total10

Ceva nu functioneaza?