Pagini recente » Borderou de evaluare (job #1205366) | Borderou de evaluare (job #274848) | Borderou de evaluare (job #3254593) | Borderou de evaluare (job #680829) | Borderou de evaluare (job #2244868)
Borderou de evaluare (job #2244868)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:25:20: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (v[i]>0)
^
user.cpp:9:17: warning: unused variable ‘max1’ [-Wunused-variable]
int t,n,i,d,max1,vmax=0,a,b,j;
^~~~
user.cpp:9:31: warning: unused variable ‘b’ [-Wunused-variable]
int t,n,i,d,max1,vmax=0,a,b,j;
^
user.cpp:11:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("minlcm.in","r",stdin);
^
user.cpp:12:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("minlcm.out","w",stdout);
^
user.cpp:13:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
user.cpp:15:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:18: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 | 192ms | 1708kb | Incorect | 0 |
Punctaj total | 0 |