Pagini recente » Borderou de evaluare (job #1095017) | Borderou de evaluare (job #2442819) | Borderou de evaluare (job #987448) | Borderou de evaluare (job #2685646) | Borderou de evaluare (job #1264838)
Borderou de evaluare (job #1264838)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int)’:
user.cpp:7:27: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(; poz<=n; poz+=poz&(poz-1)^poz)
^
user.cpp: In function ‘void decrease(int, int)’:
user.cpp:14:27: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(; poz<=n; poz+=poz&(poz-1)^poz)
^
user.cpp: In function ‘int query(int)’:
user.cpp:22:24: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(; day; day-=day&(day-1)^day)
^
user.cpp: In function ‘int difquery(int, int)’:
user.cpp:27:8: warning: variable ‘v’ set but not used [-Wunused-but-set-variable]
{ int v;
^
user.cpp:29:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:32:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("datorii.in","r",stdin);
^
user.cpp:33:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("datorii.out","w",stdout);
^
user.cpp:35:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
user.cpp:38:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&sum);
^
user.cpp:43:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&operation);
^
user.cpp:47:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&day1,&sum);
^
user.cpp:51:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&day1,&day2);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 84ms | 296kb | Raspuns incorect | 0 |
2 | 84ms | 300kb | Raspuns incorect | 0 |
3 | 84ms | 296kb | Raspuns incorect | 0 |
4 | 84ms | 300kb | Raspuns incorect | 0 |
5 | 84ms | 296kb | Raspuns incorect | 0 |
Punctaj total | 0 |