Problem | potatosalad |
---|---|
User | Quackadodo110411 |
Submission Time | 2024-05-04 09:28:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:5:39: error: invalid use of member function ‘std::basic_ostream<_CharT, _Traits>* std::basic_ios<_CharT, _Traits>::tie(std::basic_ostream<_CharT, _Traits>*) [with _CharT = char; _Traits = std::char_traits<char>]’ (did you forget the ‘()’ ?)
5 | ios_base::sync_with_stdio(false);cin.tie.(0);
| ~~~~^~~
potatosalad.cpp:9:33: error: ‘arr’ cannot be used as a function
9 | for(int i=0;i<n;i++) cin>>arr(i);
| ^
potatosalad.cpp:15:13: error: invalid types ‘int[int]’ for array subscript
15 | sum+=arr[i];
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from potatosalad.cpp:1:
/usr/include/c++/9/bits/stl_algo.h: In instantiation of ‘void std::__insertion_sor