Pagini recente » Borderou de evaluare (job #427053) | Borderou de evaluare (job #423363) | Borderou de evaluare (job #124565) | Borderou de evaluare (job #233381) | Borderou de evaluare (job #2244859)
Borderou de evaluare (job #2244859)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:22:20: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (v[i]>0 && i%d==0)
^
user.cpp:9:15: warning: unused variable ‘max1’ [-Wunused-variable]
int t,n,i,max1,vmax=0,a,b,minn=2000000000,j;
^~~~
user.cpp:9:29: warning: unused variable ‘b’ [-Wunused-variable]
int t,n,i,max1,vmax=0,a,b,minn=2000000000,j;
^
user.cpp:10:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
user.cpp:12:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:15:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a),v[a]++;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1320kb | Fisier de iesire lipsa | 0 |
Punctaj total | 0 |