Pagini recente » Borderou de evaluare (job #2135675) | Borderou de evaluare (job #1054015) | Borderou de evaluare (job #1054183) | Borderou de evaluare (job #2661518) | Borderou de evaluare (job #2304616)
Borderou de evaluare (job #2304616)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:5:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("trompeta.in","r",stdin);
^
main.cpp:6:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("trompeta.out","w",stdout);
^
main.cpp:7:44: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
char c;int n,m,k;scanf("%d %d\n",&n,&m);
^
main.cpp:8:43: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1; i<=n; i++){scanf("%c",&c);
^
main.cpp:9:30: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
while(k&&(s[k]<c)&&(k+n-i>=m))--k;
~^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 131kb | Killed by Signal 11 | 0 |
2 | 2ms | 131kb | Killed by Signal 11 | 0 |
3 | 2ms | 131kb | Killed by Signal 11 | 0 |
4 | 2ms | 131kb | Killed by Signal 11 | 0 |
5 | 3ms | 131kb | Killed by Signal 11 | 0 |
6 | 2ms | 131kb | Killed by Signal 11 | 0 |
7 | 2ms | 131kb | Killed by Signal 11 | 0 |
8 | 2ms | 131kb | Killed by Signal 11 | 0 |
9 | 2ms | 131kb | Killed by Signal 11 | 0 |
10 | 2ms | 131kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |