Submission #2670882
Source Code Expand
using namespace std; int main() { int a,b,c; cin>>a>>b>>c; for(int i=1;i<=127;i++) if(i%3==a&&i%5==b&&i%7==c) cout<<i<<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 孫子算経 |
User | luogu_bot4 |
Language | C++ (GCC 5.4.1) |
Score | 0 |
Code Size | 181 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:5:5: error: ‘cin’ was not declared in this scope cin>>a>>b>>c; ^ ./Main.cpp:8:13: error: ‘cout’ was not declared in this scope cout<<i<<endl; ^ ./Main.cpp:8:22: error: ‘endl’ was not declared in this scope cout<<i<<endl; ^