Pentru această operație este nevoie să te autentifici.
Borderou de evaluare (job #804935)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Munte (clasa a 6-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 18 ian. 2025 20:21:02 | Scor | 54 |
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:23:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
23 | if(v[j]=-1)
| ^
main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | fscanf(fin,"%d",&n);
| ^~~~~~~~~~~~~~~~~~~
main.c:13:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | fscanf(fin,"%d",&v[i]);
| ^~~~~~~~~~~~~~~~~~~~~~
main.c:21:25: warning: 'j' may be used uninitialized [-Wmaybe-uninitialized]
21 | while(v[i]>v[j]){
| ~^~~
main.c:9:29: note: 'j' was declared here
9 | int n,i,cnt=0,m=1,t=0,e,j;
| ^
Test | Timp execuție | Memorie folosită | Mesaj | Punctaj/test |
---|---|---|---|---|
1 | 1 ms | 245 kb | a) OK; b) linie incorecta; c) linie incorecta | 2 |
2 | 2 ms | 245 kb | OK | 10 |
3 | 2 ms | 245 kb | OK | 10 |
4 | 1 ms | 512 kb | Killed by Signal 11 | 0 |
5 | 1 ms | 245 kb | a) OK; b) linie incorecta; c) linie incorecta | 2 |
6 | 1 ms | 245 kb | OK | 10 |
7 | 1 ms | 245 kb | OK | 10 |
8 | 2 ms | 507 kb | OK | 10 |
9 | 1 ms | 249 kb | Killed by Signal 11 | 0 |
10 | 1 ms | 249 kb | Killed by Signal 11 | 0 |
Punctaj total | 54 |