Problem | sumint |
---|---|
User | Law |
Submission Time | 2024-06-20 09:51:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:5:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | int arr[n]
| ^
| yn
sumint.cpp:6:3: error: expected initializer before ‘for’
6 | for(int i=0; i=n; i++) {
| ^~~
sumint.cpp:6:16: error: ‘i’ was not declared in this scope
6 | for(int i=0; i=n; i++) {
| ^
sumint.cpp:12:13: error: ‘arr’ was not declared in this scope
12 | cin >> x+=arr[i];
| ^~~
sumint.cpp:13:14: error: no match for ‘operator=’ (operand types are ‘std::basic_ostream<char>’ and ‘int’)
13 | cout << x=8;
| ^
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x8