Pagini recente » Borderou de evaluare (job #1023318) | Borderou de evaluare (job #959346) | Borderou de evaluare (job #2527736) | Borderou de evaluare (job #1912697) | Borderou de evaluare (job #2320127)
Borderou de evaluare (job #2320127)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:38:22: warning: self-comparison always evaluates to true [-Wtautological-compare]
if((v[i-1].p2>=v[i-1].p2 && v[i-1].p3<=v[i].p3)&& (!v[i-1].p2==v[i-1].p2 || !v[i-1].p3==v[i].p3))
~~~~~~~~~^~~~~~~~~~~
main.cpp:38:70: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if((v[i-1].p2>=v[i-1].p2 && v[i-1].p3<=v[i].p3)&& (!v[i-1].p2==v[i-1].p2 || !v[i-1].p3==v[i].p3))
^~
main.cpp:38:95: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if((v[i-1].p2>=v[i-1].p2 && v[i-1].p3<=v[i].p3)&& (!v[i-1].p2==v[i-1].p2 || !v[i-1].p3==v[i].p3))
^~
main.cpp:17:11: warning: unused variable 'm' [-Wunused-variable]
int n,m,i,j,k,l,cm,x;
^
main.cpp:17:15: warning: unused variable 'j' [-Wunused-variable]
int n,m,i,j,k,l,cm,x;
^
main.cpp:17:17: warning: unused variable 'k' [-Wunused-variable]
int n,m,i,j,k,l,cm,x;
^
main.cpp:17:19: warning: unused variable 'l' [-Wunused-variable]
int n,m,i,j,k,l,cm,x;
^
main.cpp:15:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("calorifer.in","r",stdin);
^
main.cpp:16:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("calorifer.out","w",stdout);
^
main.cpp:18:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:19:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[1].c);
^
main.cpp:23:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i].c);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 82ms | 1310kb | Incorect | 0 |
4 | 2ms | 131kb | Incorect | 0 |
5 | 3ms | 131kb | Incorect | 0 |
6 | 12ms | 262kb | Incorect | 0 |
7 | 87ms | 1310kb | Incorect | 0 |
8 | 72ms | 1310kb | Incorect | 0 |
9 | 71ms | 1310kb | Incorect | 0 |
10 | 2ms | 131kb | Incorect | 0 |
Punctaj total | 20 |