Submission #789346

#TimeUsernameProblemLanguageResultExecution timeMemory
789346JoibanglaCyberland (APIO23_cyberland)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,k,h,x[1000005],y[100005],c[1000005],arr[100005]; cin>>n>>m>>k>>h; for(i=1; i<=n ; i++){ cout<<"std::min(c[i])"<<"/n"; } cout<<endl; }

Compilation message (stderr)

cyberland.cpp: In function 'int main()':
cyberland.cpp:9:5: error: 'i' was not declared in this scope
    9 | for(i=1; i<=n ; i++){
      |     ^
cyberland.cpp:5:13: warning: unused variable 'x' [-Wunused-variable]
    5 | int n,m,k,h,x[1000005],y[100005],c[1000005],arr[100005];
      |             ^
cyberland.cpp:5:24: warning: unused variable 'y' [-Wunused-variable]
    5 | int n,m,k,h,x[1000005],y[100005],c[1000005],arr[100005];
      |                        ^
cyberland.cpp:5:34: warning: unused variable 'c' [-Wunused-variable]
    5 | int n,m,k,h,x[1000005],y[100005],c[1000005],arr[100005];
      |                                  ^
cyberland.cpp:5:45: warning: unused variable 'arr' [-Wunused-variable]
    5 | int n,m,k,h,x[1000005],y[100005],c[1000005],arr[100005];
      |                                             ^~~