Pagini recente » Borderou de evaluare (job #1974331) | Borderou de evaluare (job #669626) | Borderou de evaluare (job #2610024) | Borderou de evaluare (job #1313) | Borderou de evaluare (job #2080071)
Borderou de evaluare (job #2080071)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:2:115: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘int*’ [-Wformat=]
int v[20];int main(){freopen("sumfact.in","r",stdin);freopen("sumfact.out","w",stdout);int n,i,p=1;scanf("%lld",&n);while(n) {v[++p]=n%p;n/=p;}printf("%d\n",p-1);for(i=2;i<=p;i++)printf("%d\n",v[i]);return 0;}
^
user.cpp:2:137: warning: operation on ‘p’ may be undefined [-Wsequence-point]
int v[20];int main(){freopen("sumfact.in","r",stdin);freopen("sumfact.out","w",stdout);int n,i,p=1;scanf("%lld",&n);while(n) {v[++p]=n%p;n/=p;}printf("%d\n",p-1);for(i=2;i<=p;i++)printf("%d\n",v[i]);return 0;}
^
user.cpp:2:53: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
int v[20];int main(){freopen("sumfact.in","r",stdin);freopen("sumfact.out","w",stdout);int n,i,p=1;scanf("%lld",&n);while(n) {v[++p]=n%p;n/=p;}printf("%d\n",p-1);for(i=2;i<=p;i++)printf("%d\n",v[i]);return 0;}
^
user.cpp:2:87: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
int v[20];int main(){freopen("sumfact.in","r",stdin);freopen("sumfact.out","w",stdout);int n,i,p=1;scanf("%lld",&n);while(n) {v[++p]=n%p;n/=p;}printf("%d\n",p-1);for(i=2;i<=p;i++)printf("%d\n",v[i]);return 0;}
^
user.cpp:2:116: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int v[20];int main(){freopen("sumfact.in","r",stdin);freopen("sumfact.out","w",stdout);int n,i,p=1;scanf("%lld",&n);while(n) {v[++p]=n%p;n/=p;}printf("%d\n",p-1);for(i=2;i<=p;i++)printf("%d\n",v[i]);return 0;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 260kb | OK | 10 | 100 |
2 | 0ms | 264kb | OK | 10 |
3 | 0ms | 260kb | OK | 10 |
4 | 0ms | 260kb | OK | 10 |
5 | 0ms | 260kb | OK | 10 |
6 | 0ms | 256kb | OK | 10 |
7 | 0ms | 260kb | OK | 10 |
8 | 0ms | 264kb | OK | 10 |
9 | 0ms | 264kb | OK | 10 |
10 | 0ms | 264kb | OK | 10 |
Punctaj total | 100 |