Submission #1112397

# Submission time Handle Problem Language Result Execution time Memory
1112397 2024-11-14T07:12:16 Z vjudge1 Baloni (COCI15_baloni) C
0 / 100
63 ms 3888 KB
#include <stdio.h>
int main(){
int N;
scanf("%d", &N);
int b[N];
for (int i = 0; i < N; i++){
scanf("%d", &b[i]);}
int out = 0;
int target = -1;
for (int i = 0; i < N; i++){
if (b[i] > target){
out++;
target = b[i];}
}printf("%d\n", out);
return 0;}

Compilation message

baloni.c: In function 'main':
baloni.c:4:1: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
    4 | scanf("%d", &N);
      | ^~~~~~~~~~~~~~~
baloni.c:7:1: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
    7 | scanf("%d", &b[i]);}
      | ^~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Output isn't correct
2 Incorrect 1 ms 336 KB Output isn't correct
3 Incorrect 1 ms 336 KB Output isn't correct
4 Incorrect 1 ms 336 KB Output isn't correct
5 Incorrect 63 ms 3504 KB Output isn't correct
6 Incorrect 50 ms 3888 KB Output isn't correct
7 Incorrect 41 ms 3152 KB Output isn't correct
8 Incorrect 41 ms 3152 KB Output isn't correct
9 Incorrect 45 ms 3412 KB Output isn't correct
10 Incorrect 43 ms 3408 KB Output isn't correct