Submission #2215780
Source Code Expand
include<cstdio> using namespace std; int main() { int a,b,c,i; scanf("%d%d%d",&a,&b,&c); for(i=1;i<=127;i++) if(i%3==a&&i%5==b&&i%7==c) printf("%d\n",i); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 孫子算経 |
User | luogu_bot3 |
Language | C++ (GCC 5.4.1) |
Score | 0 |
Code Size | 199 Byte |
Status | CE |
Compile Error
./Main.cpp:1:1: error: ‘include’ does not name a type include<cstdio> ^ ./Main.cpp: In function ‘int main()’: ./Main.cpp:6:28: error: ‘scanf’ was not declared in this scope scanf("%d%d%d",&a,&b,&c); ^ ./Main.cpp:9:20: error: ‘printf’ was not declared in this scope printf("%d\n",i); ^