merchant.cpp: In function 'int main()':
merchant.cpp:29:12: warning: unused variable 'a1' [-Wunused-variable]
long long a1=0, a2=1;
^~
merchant.cpp:29:18: warning: unused variable 'a2' [-Wunused-variable]
long long a1=0, a2=1;
^~
merchant.cpp: At global scope:
merchant.cpp:44:2: error: expected unqualified-id before 'while'
while(M--) {
^~~~~
merchant.cpp:49:2: error: expected unqualified-id before 'for'
for(int k=0;k<N;k++) for(int i=0;i<N;i++) for(int j=0;j<N;j++) D[i][j]=min(D[i][j],D[i][k]+D[k][j]);
^~~
merchant.cpp:49:14: error: 'k' does not name a type
for(int k=0;k<N;k++) for(int i=0;i<N;i++) for(int j=0;j<N;j++) D[i][j]=min(D[i][j],D[i][k]+D[k][j]);
^
merchant.cpp:49:18: error: 'k' does not name a type
for(int k=0;k<N;k++) for(int i=0;i<N;i++) for(int j=0;j<N;j++) D[i][j]=min(D[i][j],D[i][k]+D[k][j]);
^
merchant.cpp:49:35: error: 'i' does not name a type
for(int k=0;k<N;k++) for(int i=0;i<N;i++) for(int j=0;j<N;j++) D[i][j]=min(D[i][j],D[i][k]+D[k][j]);
^
merchant.cpp:49:39: error: 'i' does not name a type
for(int k=0;k<N;k++) for(int i=0;i<N;i++) for(int j=0;j<N;j++) D[i][j]=min(D[i][j],D[i][k]+D[k][j]);
^
merchant.cpp:49:56: error: 'j' does not name a type
for(int k=0;k<N;k++) for(int i=0;i<N;i++) for(int j=0;j<N;j++) D[i][j]=min(D[i][j],D[i][k]+D[k][j]);
^
merchant.cpp:49:60: error: 'j' does not name a type
for(int k=0;k<N;k++) for(int i=0;i<N;i++) for(int j=0;j<N;j++) D[i][j]=min(D[i][j],D[i][k]+D[k][j]);
^
merchant.cpp:50:2: error: expected unqualified-id before 'for'
for(int k=0;k<N;k++) for(int i=0;i<N;i++) for(int j=0;j<N;j++) {
^~~
merchant.cpp:50:14: error: 'k' does not name a type
for(int k=0;k<N;k++) for(int i=0;i<N;i++) for(int j=0;j<N;j++) {
^
merchant.cpp:50:18: error: 'k' does not name a type
for(int k=0;k<N;k++) for(int i=0;i<N;i++) for(int j=0;j<N;j++) {
^
merchant.cpp:50:35: error: 'i' does not name a type
for(int k=0;k<N;k++) for(int i=0;i<N;i++) for(int j=0;j<N;j++) {
^
merchant.cpp:50:39: error: 'i' does not name a type
for(int k=0;k<N;k++) for(int i=0;i<N;i++) for(int j=0;j<N;j++) {
^
merchant.cpp:50:56: error: 'j' does not name a type
for(int k=0;k<N;k++) for(int i=0;i<N;i++) for(int j=0;j<N;j++) {
^
merchant.cpp:50:60: error: 'j' does not name a type
for(int k=0;k<N;k++) for(int i=0;i<N;i++) for(int j=0;j<N;j++) {
^
merchant.cpp:56:2: error: expected unqualified-id before 'for'
for(int i=0;i<N;i++) if(comp(a1,a2,C[i][i],D[i][i])<0) {
^~~
merchant.cpp:56:14: error: 'i' does not name a type
for(int i=0;i<N;i++) if(comp(a1,a2,C[i][i],D[i][i])<0) {
^
merchant.cpp:56:18: error: 'i' does not name a type
for(int i=0;i<N;i++) if(comp(a1,a2,C[i][i],D[i][i])<0) {
^
merchant.cpp:60:2: error: 'cout' does not name a type; did you mean 'tout'?
cout<<a1/a2<<'\n';
^~~~
tout
merchant.cpp:61:2: error: expected unqualified-id before 'return'
return 0;
^~~~~~
merchant.cpp:62:1: error: expected declaration before '}' token
}
^