Submission #300303

#TimeUsernameProblemLanguageResultExecution timeMemory
300303nadidaditConnecting Supertrees (IOI20_supertrees)C++17
Compilation error
0 ms0 KiB
#include<iostream> using namespace std; int main() { int n; cin>>n; int arra[n][n],adit[n][n]; for(int i=0;i<n;i++) { for(int j=0;j<n;j++) { adit[i][j]=0; } } for(int i=0;i<n;i++) { for(int j=0;j<n;j++) { cin>>arra[i][j]; } } for(int i=0;i<n;i++) { for(int j=0;j<n;j++) { if(i-j==1 || j-i==1 || i==j) { adit[i][j]=1; } } } cout<<"1"<<endl; for(int i=0;i<n;i++) { for(int j=0;j<n;j++) { if(j<n-1) { cout<<adit[i][j]<<" "; } } cout<<endl; } return 0; }

Compilation message (stderr)

/tmp/ccBvtsHj.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccDdukUu.o:supertrees.cpp:(.text.startup+0x0): first defined here
/tmp/ccBvtsHj.o: In function `main':
grader.cpp:(.text.startup+0x3b2): undefined reference to `construct(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >)'
collect2: error: ld returned 1 exit status