Borderou de evaluare (job #1701330)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 12 mai 2016 19:22:55
Problema Timbre Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:25:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%d%d%d",&N,&K,&M); ^ user.cpp:25:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:25:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:26:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=N;i++) ^ user.cpp:29:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=N&&P<N;i++) ^ user.cpp:31:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(v[i].x>P) ^ user.cpp:35:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(v[i].y==cost&&i<=N) ^ user.cpp:37:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(v[i].y>P+K) ^ user.cpp:46:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] printf("%d",S); ^ user.cpp:22:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("timbre.in","r",stdin); ^ user.cpp:23:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("timbre.out","w",stdout); ^ user.cpp:25:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&N,&K,&M); ^ user.cpp:27:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&v[i].x,&v[i].y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms260kbBah, i-ai mancat inghetata fetei!0
24ms268kbBah, i-ai mancat inghetata fetei!0
30ms264kbBah, i-ai mancat inghetata fetei!0
40ms256kbBah, i-ai mancat inghetata fetei!0
50ms260kbBah, i-ai mancat inghetata fetei!0
60ms264kbBah, i-ai mancat inghetata fetei!0
70ms264kbBah, i-ai mancat inghetata fetei!0
80ms268kbBah, i-ai mancat inghetata fetei!0
90ms260kbBah, i-ai mancat inghetata fetei!0
100ms256kbBah, i-ai mancat inghetata fetei!0
Punctaj total0

Ceva nu functioneaza?