Compile Error
foo.cc: In function 'int main()': foo.cc:5:12: error: 'cin' was not declared in this scope 5 | int n; cin >> n; | ^~~ foo.cc:7:22: error: 'cout' was not declared in this scope 7 | if(tot<=100) cout << "YES\n"; | ^~~~ foo.cc:8:14: error: 'cout' was not declared in this scope 8 | else cout << "NO\n"; | ^~~~
Code
#include <stdio.h>
int main()
{
int n; cin >> n;
int tot = n+n;
if(tot<=100) cout << "YES\n";
else cout << "NO\n";
}
Information
- Submit By
- Type
- Submission
- Problem
- P1056 Grown up boy sunny
- Contest
- Brain Booster #3
- Language
- C++20 (G++ 13.2.0)
- Submit At
- 2024-05-06 15:26:17
- Judged At
- 2024-11-11 03:34:27
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes