Submission #201301

#TimeUsernameProblemLanguageResultExecution timeMemory
201301ArKCaProsjek (COCI14_prosjek)C++17
50 / 50
5 ms504 KiB
#include<bits/stdc++.h> #define f1 first #define s2 second #define pb push_back #define pob pop_back #define int ll #define ll long long #define N 102 using namespace std; int n,a,sum; int dizi[N]; int32_t main(){ // freopen("a.gir","r",stdin); // freopen("a.cik","w",stdout); scanf("%lld",&n); for(int i=1;i<=n;i++){ scanf("%lld",&a); printf("%lld ",a*i-sum ); sum+=a*i-sum; } printf("\n"); }

Compilation message (stderr)

prosjek.cpp: In function 'int32_t main()':
prosjek.cpp:20:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld",&n);
  ~~~~~^~~~~~~~~~~
prosjek.cpp:23:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld",&a);
   ~~~~~^~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...