제출 #1121983

#제출 시각아이디문제언어결과실행 시간메모리
1121983vjudge1Calvinball championship (CEOI15_teams)C++17
0 / 100
2 ms336 KiB
#include <bits/stdc++.h> using namespace std; #define int long long const int sz=2e6+5; const int INF=1e18; const int MOD=1e6+7; int arr[sz]; void solve() { int n; cin>>n; for(int i=0;i<n;i++) cin>>arr[i]; int res=1; for(int i=0;i<n;i++) res*=arr[i];res%=MOD; cout<<res; } signed main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int t=1; //cin>>t; while(t--) { solve(); } }

컴파일 시 표준 에러 (stderr) 메시지

teams.cpp: In function 'void solve()':
teams.cpp:26:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   26 |     for(int i=0;i<n;i++)
      |     ^~~
teams.cpp:27:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   27 |         res*=arr[i];res%=MOD;
      |                     ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...