Pagini recente » Borderou de evaluare (job #1295599) | Borderou de evaluare (job #2671017) | Borderou de evaluare (job #124342) | Borderou de evaluare (job #814547) | Borderou de evaluare (job #1702499)
Borderou de evaluare (job #1702499)
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 |
1 | 0ms | 264kb | Killed by signal 11(SIGSEGV). | 0 |
2 | 0ms | 268kb | Killed by signal 11(SIGSEGV). | 0 |
3 | 0ms | 272kb | Killed by signal 11(SIGSEGV). | 0 |
4 | 0ms | 304kb | Bah, i-ai mancat inghetata fetei! | 0 |
5 | 0ms | 296kb | Bah, i-ai mancat inghetata fetei! | 0 |
6 | 4ms | 312kb | Killed by signal 11(SIGSEGV). | 0 |
7 | 0ms | 344kb | Killed by signal 11(SIGSEGV). | 0 |
8 | 4ms | 372kb | Killed by signal 11(SIGSEGV). | 0 |
9 | 4ms | 392kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 0ms | 260kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 0 |