Pagini recente » Cod sursa (job #2412166) | Borderou de evaluare (job #48317) | Borderou de evaluare (job #2076124) | Borderou de evaluare (job #253043) | Borderou de evaluare (job #2399479)
Borderou de evaluare (job #2399479)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:14:43: warning: unused variable 'j' [-Wunused-variable]
int n,p,i,cnt=0,nrf=0,p1f=0,p2f=0,pos,j;
^
main.cpp:12:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("teatru.in","r",stdin);
^
main.cpp:13:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("teatru.out","w",stdout);
^
main.cpp:16:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%c",&n, &p,&ch);
^
main.cpp:21:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&v[i]);
^
main.cpp: In function 'void set_0()':
main.cpp:7:13: warning: iteration 30 invokes undefined behavior [-Waggressive-loop-optimizations]
f[i]=0;
~~~~^~
main.cpp:6:18: note: within this loop
for(int i=0;i<=30;i++)
~^~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 12ms | 131kb | OK | 10 |
4 | 10ms | 131kb | OK | 10 |
5 | 11ms | 131kb | OK | 10 |
6 | 8ms | 131kb | OK | 10 |
7 | 12ms | 131kb | OK | 10 |
8 | 9ms | 131kb | OK | 10 |
9 | 16ms | 262kb | OK | 10 |
10 | 18ms | 262kb | OK | 10 |
Punctaj total | 100 |