Borderou de evaluare (job #1702499)

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

Raport evaluator

Compilare: user.cpp: In function ‘void Maxify(long long unsigned int, long long unsigned int)’: user.cpp:20:15: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(l<=hlenght&&v[l].end>v[pos].end||(v[l].end==v[pos].end&&v[l].val<v[pos].val)) ^ user.cpp:24:15: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(r<=hlenght&&v[r].end>v[smallest].end||(v[r].end==v[smallest].end&&v[r].val<v[smallest].val)) ^ user.cpp: In function ‘void checkforcheaper(int&, int, int)’: user.cpp:43:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(l<=msize&&v[l].end>=minval&&v[l].val<=v[pos].val) ^ user.cpp:48:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(r<=msize&&v[r].end>minval&&v[r].val<=v[pos].val) ^ user.cpp: In function ‘int main()’: user.cpp:59:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%d%d%d",&N,&M,&K); ^ user.cpp:59:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:59:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:60:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=M;i++) ^ user.cpp:61:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%d%d",&v[i].end,&v[i].val); ^ user.cpp:61:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:77:15: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] printf("%d",S); ^ user.cpp:56:32: 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:57:34: 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:59:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&N,&M,&K); ^ user.cpp:61:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&v[i].end,&v[i].val); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbKilled by signal 11(SIGSEGV).0
20ms268kbKilled by signal 11(SIGSEGV).0
30ms272kbKilled by signal 11(SIGSEGV).0
40ms304kbBah, i-ai mancat inghetata fetei!0
50ms296kbBah, i-ai mancat inghetata fetei!0
64ms312kbKilled by signal 11(SIGSEGV).0
70ms344kbKilled by signal 11(SIGSEGV).0
84ms372kbKilled by signal 11(SIGSEGV).0
94ms392kbKilled by signal 11(SIGSEGV).0
100ms260kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?