Submission #3258289
Source Code Expand
#include <cstdio> #include <iostream> #include <vector> #include <string> #include <map> #include <queue> #include <algorithm> #include <cmath> #include <cassert> #include <sstream> #include <string.h> #define ll long long #define pb push_back using namespace std; int main() { int a,b; cin>>a>>b; for(int i==1;i<=3;i++) if(i*a*b % 2!=0) cout<<"YES"; else cout<<"NO"; system ("pause"); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - ABC333 |
User | ssslzh |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 448 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:20:14: error: expected ‘;’ before ‘==’ token for(int i==1;i<=3;i++) ^ ./Main.cpp:20:14: error: expected primary-expression before ‘==’ token ./Main.cpp:20:22: error: expected ‘)’ before ‘;’ token for(int i==1;i<=3;i++) ^ ./Main.cpp:20:23: error: ‘i’ was not declared in this scope for(int i==1;i<=3;i++) ^ ./Main.cpp:23:5: error: ‘else’ without a previous ‘if’ else cout<<"NO"; ^ ./Main.cpp:24:17: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result] system ("pause"); ^