Submission #1306543
Source Code Expand
#include<bits/stdc++.h> #define INF 2000000000 #define int long long int #define MOD 1000000007 #define pb push_back #define cin1(n) (cin >> n) #define cin2(a,b) (cin >> a >> b) #define cin3(a,b,c) (cin >> a >> b >> c) #define cout(n) (cout << n << endl) #define for_(i,a,b) for(int i=(a);i<(b);++i) #define fr first #define sc second #define EPS (1e-10) using namespace std; typedef vector<int> vi; typedef vector< vector<int> > vvi; typedef vector<pair<int,int>> vpii; typedef vector<string> vs; typedef vector<vector<string>> vss; typedef pair<int,int> pii; int dx[] = {1,-1,0,0}; int dy[] = {0,0,1,-1}; int n,m; int a,b; int p,q; signed main() { int t,e; cin3(n,t,e); for_(i,0,n) { int x; cin1(x); for_(j,t-e,t+e+1) { if (j % x == 0) { c+1+1out(i+1); return 0; } } } cout(-1); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - アルデンテ |
User | kikuchi0408 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 887 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:42:5: error: ‘c’ was not declared in this scope c+1+1out(i+1); ^ ./Main.cpp:42:9: error: unable to find numeric literal operator ‘operator""out’ c+1+1out(i+1); ^