Compile Error
foo.cc: In function 'int main()': foo.cc:13:5: error: 'll' was not declared in this scope 13 | ll count = 0; | ^~ foo.cc:17:7: error: 'count' was not declared in this scope 17 | count += 1LL * n; | ^~~~~ foo.cc:21:7: error: 'count' was not declared in this scope 21 | count += 1LL * m; | ^~~~~ foo.cc:25:7: error: 'count' was not declared in this scope 25 | count += 1LL * k; | ^~~~~ foo.cc:26:5: error: 'count' was not declared in this scope 26 | count += 1LL*maxio; | ^~~~~
Code
#include <iostream>
using namespace std;
int main()
{
int t;
cin >> t;
while (t--) {
int n, m, k;
cin >> n >> m >> k;
int maxio = 0;
ll count = 0;
if (n % 2 != 0)
maxio = max(maxio, n);
else
count += 1LL * n;
if (m % 2 != 0)
maxio = max(maxio, m);
else
count += 1LL * m;
if (k % 2 != 0)
maxio = max(maxio, k);
else
count += 1LL * k;
count += 1LL*maxio;
cout << count << endl;
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1195 B. Palindrome
- Contest
- Brain Booster #10
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-06-13 16:00:09
- Judged At
- 2025-06-13 16:00:09
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes