Pagini recente » Borderou de evaluare (job #2334607) | Borderou de evaluare (job #3127660) | Borderou de evaluare (job #3127736) | Borderou de evaluare (job #3127986) | Borderou de evaluare (job #3127984)
Borderou de evaluare (job #3127984)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<fstream>
| ^~~~~~
main.cpp: In function 'int a(int)':
main.cpp:2:143: warning: no return statement in function returning non-void [-Wreturn-type]
2 | int n,d,k,v[512][512],i,j,t,I;int a(int p){for(I=1,t=0;I<=v[p][0]||I<=v[p-1][0]||t;t=t+v[p][I]+v[p-1][I],v[p][I]=t%10,I++,t=t/10);v[p][0]=I-1;}main(){std::ifstream("expozitie.in")>>n>>d>>k;std::ofstream g("expozitie.out");for(n-=d*k,k=n+d-1,n<0?g<<0,exit(0),1:0,k^=n^=k^=n,v[0][0]=v[0][1]=1;++i<=n;)for(j=i;j>=1;a(j--));for(i=v[k][0];i>=1;g<<v[k][i--]);}
| ^
main.cpp: At global scope:
main.cpp:2:144: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | int n,d,k,v[512][512],i,j,t,I;int a(int p){for(I=1,t=0;I<=v[p][0]||I<=v[p-1][0]||t;t=t+v[p][I]+v[p-1][I],v[p][I]=t%10,I++,t=t/10);v[p][0]=I-1;}main(){std::ifstream("expozitie.in")>>n>>d>>k;std::ofstream g("expozitie.out");for(n-=d*k,k=n+d-1,n<0?g<<0,exit(0),1:0,k^=n^=k^=n,v[0][0]=v[0][1]=1;++i<=n;)for(j=i;j>=1;a(j--));for(i=v[k][0];i>=1;g<<v[k][i--]);}
| ^~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 10ms | 393kb | Killed by Signal 11 | 0 |
2 | 6ms | 393kb | Killed by Signal 11 | 0 |
3 | 9ms | 393kb | Killed by Signal 11 | 0 |
4 | 9ms | 389kb | Killed by Signal 11 | 0 |
5 | 9ms | 389kb | Killed by Signal 11 | 0 |
6 | 9ms | 393kb | Killed by Signal 11 | 0 |
7 | 4ms | 393kb | Killed by Signal 11 | 0 |
8 | 9ms | 393kb | Killed by Signal 11 | 0 |
9 | 0ms | 303kb | Incorect | 0 |
10 | 9ms | 389kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |