Compile Error
foo.cc:2:5: error: expected unqualified-id before 'while' 2 | while (t--) { | ^~~~~ foo.cc:8:1: error: expected declaration before '}' token 8 | } | ^ foo.cc: In function 'int main()': foo.cc:12:5: error: 'saklan' was not declared in this scope 12 | saklan | ^~~~~~ foo.cc:16:5: error: 'solve' was not declared in this scope 16 | solve(); | ^~~~~
Code
while (t--) {
ll n, m, k;
cin >> n >> m >> k;
ll ans = n+m+k;
cout << ans << endl;
}
}
int main() {
saklan
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
#endif
solve();
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:54:25
- Judged At
- 2025-06-13 16:54:25
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes