Submission #767614

#TimeUsernameProblemLanguageResultExecution timeMemory
767614Pichon5Sjekira (COCI20_sjekira)C++17
0 / 110
7 ms1876 KiB
#include <iostream> #include <vector> #include <set> #include <map> #include <algorithm> #include <string> #include <sstream> #include <fstream> #include <cmath> #include <queue> #include <stack> #include <unordered_map> #include <unordered_set> #include <bitset> #define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0); #define ll long long int #define vi vector<int> #define vll vector<ll> #define pb push_back #define F first #define S second #define mp make_pair #define int long long using namespace std; signed main(){ fast //quiero sacar el factorial de 10 int n,x,a,b; cin>>n; vi v(n+1); int res=0; for(int i=1;i<=n;i++){ cin>>x; res+=x; if(i!=1 && i!=n)res+=x; } cout<<res<<endl; return 0; }

Compilation message (stderr)

sjekira.cpp: In function 'int main()':
sjekira.cpp:29:13: warning: unused variable 'a' [-Wunused-variable]
   29 |     int n,x,a,b;
      |             ^
sjekira.cpp:29:15: warning: unused variable 'b' [-Wunused-variable]
   29 |     int n,x,a,b;
      |               ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...