0_0_13810825_2982.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13810825_2982.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13810825_2982.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13810825_2982.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13810825_2982.cpp: In function 'int main()':
0_0_13810825_2982.cpp:19:23: error: 'scanf' was not declared in this scope
while(scanf("%d", &gn) == 1 && gn) {
^
0_0_13810825_2982.cpp:22:3: error: expected ';' before 'for'
for(int i = 0; i
^
0_0_13810825_2982.cpp:22:3: error: expected primary-expression before 'for'
0_0_13810825_2982.cpp:22:3: error: expected ')' before 'for'
0_0_13810825_2982.cpp:23:4: error: expected ';' before 'scanf'
scanf("%d%d", &x, &y);
^
0_0_13810825_2982.cpp:23:25: error: expected ')' before ';' token
scanf("%d%d", &x, &y);
^
0_0_13810825_2982.cpp:32:4: error: expected ';' before 'if'
if(f[i] == i) cnt++;
^
0_0_13810825_2982.cpp:32:4: error: expected primary-expression before 'if'
0_0_13810825_2982.cpp:32:4: error: expected ')' before 'if'
0_0_13810825_2982.cpp: At global scope:
0_0_13810825_2982.cpp:34:9: error: expected constructor, destructor, or type conversion before '(' token
printf("%d\n", cnt-1);
^
0_0_13810825_2982.cpp:35:2: error: expected declaration before '}' token
}
^
|