Problem | weddingcoins |
---|---|
User | sergius |
Submission Time | 2024-06-20 10:33:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:7:6: error: two or more data types in declaration of ‘a’
7 | int a;
| ^
weddingcoins.cpp:8:6: error: two or more data types in declaration of ‘ans’
8 | int ans = 0;
| ^~~
weddingcoins.cpp:9:9: error: ‘a’ was not declared in this scope
9 | cin >> a;
| ^
weddingcoins.cpp:10:14: error: two or more data types in declaration of ‘coins’
10 | int coins[13] = {1, 5, 10, 50, 100, 500, 1000, 5000, 10000, 50000, 100000, 500000, 100000};
| ^
weddingcoins.cpp:3:18: error: ‘long long long’ is too long for GCC
3 | #define int long long
| ^~~~
weddingcoins.cpp:4:19: note: in expansion of macro ‘int’
4 | #define long long int
| ^~~
weddingcoins.cpp:11:6: note: in expansion of macro ‘long’
11 | for(long long i = 13; i > -1; i--){
|