Submission #104091

#TimeUsernameProblemLanguageResultExecution timeMemory
104091wiritos1Konj (COCI19_konj)C++98
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; int n; char mat[301][301]; int main() { cin>>n; int xi=300,xf=0,yi=300,yf=0; for(int a=0;a<301;a++) { for(int b=0;b<301;b++) { mat[a][b]='.'; } } set<pair<x,y> >finales; return 0; }

Compilation message (stderr)

konj.cpp: In function 'int main()':
konj.cpp:16:11: error: 'x' was not declared in this scope
  set<pair<x,y> >finales;
           ^
konj.cpp:16:11: note: suggested alternative: 'xf'
  set<pair<x,y> >finales;
           ^
           xf
konj.cpp:16:13: error: 'y' was not declared in this scope
  set<pair<x,y> >finales;
             ^
konj.cpp:16:13: note: suggested alternative: 'yf'
  set<pair<x,y> >finales;
             ^
             yf
konj.cpp:16:14: error: template argument 1 is invalid
  set<pair<x,y> >finales;
              ^
konj.cpp:16:14: error: template argument 2 is invalid
konj.cpp:16:16: error: template argument 1 is invalid
  set<pair<x,y> >finales;
                ^
konj.cpp:16:16: error: template argument 2 is invalid
konj.cpp:16:16: error: template argument 3 is invalid
konj.cpp:8:6: warning: unused variable 'xi' [-Wunused-variable]
  int xi=300,xf=0,yi=300,yf=0;
      ^~
konj.cpp:8:13: warning: unused variable 'xf' [-Wunused-variable]
  int xi=300,xf=0,yi=300,yf=0;
             ^~
konj.cpp:8:18: warning: unused variable 'yi' [-Wunused-variable]
  int xi=300,xf=0,yi=300,yf=0;
                  ^~
konj.cpp:8:25: warning: unused variable 'yf' [-Wunused-variable]
  int xi=300,xf=0,yi=300,yf=0;
                         ^~
konj.cpp:16:17: warning: unused variable 'finales' [-Wunused-variable]
  set<pair<x,y> >finales;
                 ^~~~~~~