Submission #510061

#TimeUsernameProblemLanguageResultExecution timeMemory
510061Jean7Tarifa (COCI16_tarifa)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #define fastio ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define int long long using namespace std ; int main () { fastio int x , n , y , ans ; cin >> x >> n ; ans = x * (n+1) ; for ( int i = 0 ; i < n ; i++ ) { cin >> y ; ans -= y ; } cout << ans ; return 0 ; }

Compilation message (stderr)

cc1plus: error: '::main' must return 'int'