Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
73648 黄睿杰 18删除成绩 C++ Compile Error 0 MS 0 KB 1177 2024-05-19 14:31:42

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int a[1000000]; int main(){ int n,m; cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; cin>>m; for(int i=m;i<=n;i++) a[i]=a[i+1]; for(int i=1;i<n;i++) cout<<a[i]<<" "; return 0; }#include<bits/stdc++.h> using namespace std; int a[1000000]; int main(){ int n,m; cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; cin>>m; for(int i=m;i<=n;i++) a[i]=a[i+1]; for(int i=1;i<n;i++) cout<<a[i]<<" "; return 0; }#include<bits/stdc++.h> using namespace std; int a[1000000]; int main(){ int n,m; cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; cin>>m; for(int i=m;i<=n;i++) a[i]=a[i+1]; for(int i=1;i<n;i++) cout<<a[i]<<" "; return 0; }#include<bits/stdc++.h> using namespace std; int a[1000000]; int main(){ int n,m; cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; cin>>m; for(int i=m;i<=n;i++) a[i]=a[i+1]; for(int i=1;i<n;i++) cout<<a[i]<<" "; return 0; }#include<bits/stdc++.h> using namespace std; int a[1000000]; int main(){ int n,m; cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; cin>>m; for(int i=m;i<=n;i++) a[i]=a[i+1]; for(int i=1;i<n;i++) cout<<a[i]<<" "; return 0; }vv


Run Info:

Main.cc:12:2: error: stray '#' in program
 }#include
  ^
Main.cc:23:2: error: stray '#' in program
 }#include
  ^
Main.cc:34:2: error: stray '#' in program
 }#include
  ^
Main.cc:45:2: error: stray '#' in program
 }#include
  ^
Main.cc:12:3: error: 'include' does not name a type
 }#include
   ^
Main.cc:14:14: error: redefinition of 'int a [1000000]'
 int a[1000000];
              ^
Main.cc:3:5: note: 'int a [1000000]' previously declared here
 int a[1000000];
     ^
Main.cc: In function 'int main()':
Main.cc:15:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:4:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:23:3: error: 'include' does not name a type
 }#include
   ^
Main.cc:25:14: error: redefinition of 'int a [1000000]'
 int a[1000000];
              ^
Main.cc:3:5: note: 'int a [1000000]' previously declared here
 int a[1000000];
     ^
Main.cc: In function 'int main()':
Main.cc:26:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:4:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:34:3: error: 'include' does not name a type
 }#include
   ^
Main.cc:36:14: error: redefinition of 'int a [1000000]'
 int a[1000000];
              ^
Main.cc:3:5: note: 'int a [1000000]' previously declared here
 int a[1000000];
     ^
Main.cc: In function 'int main()':
Main.cc:37:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:4:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:45:3: error: 'include' does not name a type
 }#include
   ^
Main.cc:47:14: error: redefinition of 'int a [1000000]'
 int a[1000000];
              ^
Main.cc:3:5: note: 'int a [1000000]' previously declared here
 int a[1000000];
     ^
Main.cc: In function 'int main()':
Main.cc:48:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:4:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:56:2: error: 'vv' does not name a type
 }vv
  ^