Pagini recente » Borderou de evaluare (job #1630043) | Borderou de evaluare (job #1636194) | Borderou de evaluare (job #2470503) | Borderou de evaluare (job #2058970) | Borderou de evaluare (job #1722424)
Borderou de evaluare (job #1722424)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:19:54: warning: operation on ‘st’ may be undefined [-Wsequence-point]
else if( x == 2 ) printf("%d %d\n",st++,st++);
^
user.cpp:20:49: warning: operation on ‘dr’ may be undefined [-Wsequence-point]
else printf("%d %d %d\n",dr--,dr--,dr--);
^
user.cpp:20:49: warning: operation on ‘dr’ may be undefined [-Wsequence-point]
user.cpp:10:18: warning: unused variable ‘j’ [-Wunused-variable]
int n, m, i, j, st, dr, x, y;
^
user.cpp:10:32: warning: unused variable ‘y’ [-Wunused-variable]
int n, m, i, j, st, dr, x, y;
^
user.cpp:7:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("trenul.in","r",stdin);
^
user.cpp:8:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("trenul.out","w",stdout);
^
user.cpp:12:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
user.cpp:17:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 268kb | Corect | 10 |
2 | 0ms | 268kb | Corect | 10 |
3 | 8ms | 260kb | Corect | 10 |
4 | 12ms | 268kb | Corect | 10 |
5 | 20ms | 264kb | Corect | 10 |
6 | 32ms | 264kb | Corect | 10 |
7 | 28ms | 264kb | Corect | 10 |
8 | 28ms | 264kb | Corect | 10 |
9 | 32ms | 268kb | Corect | 10 |
10 | 32ms | 268kb | Corect | 10 |
Punctaj total | 100 |