Submission #2405959
Source Code Expand
#include <iostream> using namespace std; int main() { long int s, c, a; cin >> s >> c; if (s >= c / 2){ cout << c / 2 << endl; }else{ cout << a = (c / 2) / 2 << endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - Scc Puzzle |
User | SoutaTanaka |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 201 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:9:30: error: invalid operands of types ‘long int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’ cout << a = (c / 2) / 2 << endl; ^