Problem sumint
User 00cqx7
Submission Time 2023-01-02 23:04:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp:1:7: error: expected nested-name-specifier before ‘<’ token
1 | using <bits/stdc++.h>
| ^
sumint.cpp: In function ‘int main()’:
sumint.cpp:5:2: error: ‘ios’ has not been declared
5 | ios:::sync_with_stdio(0);cin.tie(0);
| ^~~
sumint.cpp:5:7: error: expected unqualified-id before ‘:’ token
5 | ios:::sync_with_stdio(0);cin.tie(0);
| ^
sumint.cpp:5:27: error: ‘cin’ was not declared in this scope
5 | ios:::sync_with_stdio(0);cin.tie(0);
| ^~~
sumint.cpp:11:16: error: ‘n’ was not declared in this scope
11 | for(int i=0;i<n;i++){
| ^
sumint.cpp:16:2: error: ‘cout’ was not declared in this scope
16 | cout << sum << '\n';
| ^~~~