0_0_38573547_2593.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_38573547_2593.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_38573547_2593.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_38573547_2593.cpp: In function 'bool dfs(int)':
0_0_38573547_2593.cpp:12:14: error: expected ';' before '{' token
for(int i=0;i{
^
;
0_0_38573547_2593.cpp:12:14: error: expected primary-expression before '{' token
0_0_38573547_2593.cpp:12:14: error: expected ')' before '{' token
for(int i=0;i{
~ ^
)
0_0_38573547_2593.cpp:16:10: error: expected ')' before '{' token
if(val[i] {
~ ^~
)
0_0_38573547_2593.cpp:21:13: error: 'j' was not declared in this scope
for(int j=0;j {
^
0_0_38573547_2593.cpp: In function 'bool Yes()':
0_0_38573547_2593.cpp:35:1: error: 'memset' was not declared in this scope
memset(val,0,sizeof(val));
^~~~~~
0_0_38573547_2593.cpp:35:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_38573547_2593.cpp:1:1:
+#include <cstring>
#include
0_0_38573547_2593.cpp:35:1:
memset(val,0,sizeof(val));
^~~~~~
0_0_38573547_2593.cpp:36:10: error: expected ';' before '{' token
for(i=0;i {
^~
;
0_0_38573547_2593.cpp:36:11: error: expected primary-expression before '{' token
for(i=0;i {
^
0_0_38573547_2593.cpp:36:10: error: expected ')' before '{' token
for(i=0;i {
~ ^~
)
0_0_38573547_2593.cpp: In function 'int main()':
0_0_38573547_2593.cpp:44:7: error: 'cin' was not declared in this scope
while(cin>>n>>m)
^~~
0_0_38573547_2593.cpp:44:7: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_38573547_2593.cpp:1:1:
+#include <iostream>
#include
0_0_38573547_2593.cpp:44:7:
while(cin>>n>>m)
^~~
0_0_38573547_2593.cpp:46:1: error: 'memset' was not declared in this scope
memset(map,0,sizeof(map));
^~~~~~
0_0_38573547_2593.cpp:46:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_38573547_2593.cpp:47:14: error: expected ';' before '{' token
for(int i=0;i {
^~
;
0_0_38573547_2593.cpp:47:15: error: expected primary-expression before '{' token
for(int i=0;i {
^
0_0_38573547_2593.cpp:47:14: error: expected ')' before '{' token
for(int i=0;i {
~ ^~
)
0_0_38573547_2593.cpp:48:14: error: expected ';' before '{' token
for(int j=0;j {
^~
;
0_0_38573547_2593.cpp:48:15: error: expected primary-expression before '{' token
for(int j=0;j {
^
0_0_38573547_2593.cpp:48:14: error: expected ')' before '{' token
for(int j=0;j {
~ ^~
)
0_0_38573547_2593.cpp:49:1: error: 'scanf' was not declared in this scope
scanf("%d",&map[i][j]);
^~~~~
0_0_38573547_2593.cpp:52:14: error: expected ';' before 'if'
for(int i=0;i if(Yes())
^~~
;
0_0_38573547_2593.cpp:52:15: error: expected primary-expression before 'if'
for(int i=0;i if(Yes())
^~
0_0_38573547_2593.cpp:52:14: error: expected ')' before 'if'
for(int i=0;i if(Yes())
~ ^~~
)
0_0_38573547_2593.cpp:53:1: error: 'printf' was not declared in this scope
printf("YES");
^~~~~~
0_0_38573547_2593.cpp:53:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_38573547_2593.cpp:1:1:
+#include <cstdio>
#include
0_0_38573547_2593.cpp:53:1:
printf("YES");
^~~~~~
0_0_38573547_2593.cpp:55:1: error: 'printf' was not declared in this scope
printf("NO");
^~~~~~
0_0_38573547_2593.cpp:55:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
|