Submission #604062

# Submission time Handle Problem Language Result Execution time Memory
604062 2022-07-24T16:24:03 Z hyakup Prosjek (COCI18_prosjek) C++17
0 / 50
0 ms 212 KB
#include <bits/stdc++.h>
using namespace std;


int main(){
    
    int n; scanf("%d", &n);
    
    multiset<double> s;
    
    for( int i = 0; i < n; i++){
        double g; scanf("%lf", &g);
        s.insert(g);
    }
    
    
    
    printf("sla");
    
    
}

Compilation message

prosjek.cpp: In function 'int main()':
prosjek.cpp:7:17: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    7 |     int n; scanf("%d", &n);
      |            ~~~~~^~~~~~~~~~
prosjek.cpp:12:24: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   12 |         double g; scanf("%lf", &g);
      |                   ~~~~~^~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Expected double, but "sla" found
2 Incorrect 0 ms 212 KB Expected double, but "sla" found
3 Incorrect 0 ms 212 KB Expected double, but "sla" found
4 Incorrect 0 ms 212 KB Expected double, but "sla" found
5 Incorrect 0 ms 212 KB Expected double, but "sla" found
6 Incorrect 0 ms 212 KB Expected double, but "sla" found
7 Incorrect 0 ms 212 KB Expected double, but "sla" found
8 Incorrect 0 ms 212 KB Expected double, but "sla" found
9 Incorrect 0 ms 212 KB Expected double, but "sla" found
10 Incorrect 0 ms 212 KB Expected double, but "sla" found