Problem weddingcoins
User Pushkaltoocool
Submission Time 2023-07-06 16:59:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:6:16: error: found ‘:’ in nested-name-specifier, expected ‘::’
6 | long long n:
| ^
| ::
weddingcoins.cpp:6:15: error: ‘n’ has not been declared
6 | long long n:
| ^
weddingcoins.cpp:7:8: error: qualified-id in declaration before ‘>>’ token
7 | cin>>n;
| ^~
weddingcoins.cpp:11:13: error: ‘n’ was not declared in this scope
11 | while (n>0){
| ^
weddingcoins.cpp:17:18: error: expected ‘}’ at end of input
17 | cout<<counter;
| ^
weddingcoins.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^