Submission #2599213
Source Code Expand
#include<bits/stdc++.h> using namespace std; int main(){ 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_bot3 |
Language | C++ (GCC 5.4.1) |
Score | 0 |
Code Size | 166 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:4:10: error: ‘a’ was not declared in this scope cin>>a>>b>>c; ^ ./Main.cpp:4:13: error: ‘b’ was not declared in this scope cin>>a>>b>>c; ^ ./Main.cpp:4:16: error: ‘c’ was not declared in this scope cin>>a>>b>>c; ^