F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39787088_15380.cpp:4:9: error: expected unqualified-id before 'for'
    4 |         for (int i = 0; i < n; i++) {
      |         ^~~
0_0_39787088_15380.cpp:4:29: error: 'n' was not declared in this scope
    4 |         for (int i = 0; i < n; i++) {
      |                             ^
0_0_39787088_15380.cpp:4:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:4:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:4:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:4:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:4:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:4:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:4:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:4:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:4:25: error: 'i' does not name a type
    4 |         for (int i = 0; i < n; i++) {
      |                         ^
0_0_39787088_15380.cpp:4:32: error: 'i' does not name a type
    4 |         for (int i = 0; i < n; i++) {
      |                                ^
0_0_39787088_15380.cpp:7:9: error: 'cout' does not name a type
    7 |         cout << endl;
      |         ^~~~
0_0_39787088_15380.cpp:10:9: error: expected unqualified-id before 'for'
   10 |         for (int j = 0; j < m; j++) {
      |         ^~~
0_0_39787088_15380.cpp:10:29: error: 'm' was not declared in this scope
   10 |         for (int j = 0; j < m; j++) {
      |                             ^
0_0_39787088_15380.cpp:10:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:10:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:10:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:10:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:10:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:10:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:10:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:10:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:10:25: error: 'j' does not name a type
   10 |         for (int j = 0; j < m; j++) {
      |                         ^
0_0_39787088_15380.cpp:10:32: error: 'j' does not name a type
   10 |         for (int j = 0; j < m; j++) {
      |                                ^
0_0_39787088_15380.cpp:13:9: error: 'cout' does not name a type
   13 |         cout << endl;
      |         ^~~~
0_0_39787088_15380.cpp:17:9: error: expected unqualified-id before 'for'
   17 |         for (int i = 0; i < n; i++) {
      |         ^~~
0_0_39787088_15380.cpp:17:29: error: 'n' was not declared in this scope
   17 |         for (int i = 0; i < n; i++) {
      |                             ^
0_0_39787088_15380.cpp:17:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:17:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:17:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:17:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:17:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:17:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:17:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:17:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:17:25: error: 'i' does not name a type
   17 |         for (int i = 0; i < n; i++) {
      |                         ^
0_0_39787088_15380.cpp:17:32: error: 'i' does not name a type
   17 |         for (int i = 0; i < n; i++) {
      |                                ^
0_0_39787088_15380.cpp:29:9: error: 'cout' does not name a type
   29 |         cout << count << endl;
      |         ^~~~
0_0_39787088_15380.cpp:31:9: error: 'cout' does not name a type
   31 |         cout << endl;  // Êä³ö¿ÕÐÐ
      |         ^~~~
0_0_39787088_15380.cpp:32:5: error: expected declaration before '}' token
   32 |     }
      |     ^
0_0_39787088_15380.cpp:33:5: error: expected unqualified-id before 'return'
   33 |     return 0;
      |     ^~~~~~
0_0_39787088_15380.cpp:34:1: error: expected declaration before '}' token
   34 | }
      | ^
0_0_39787088_15380.cpp:37:9: error: expected unqualified-id before 'for'
   37 |         for (int i = 0; i < n; i++) {
      |         ^~~
0_0_39787088_15380.cpp:37:29: error: 'n' was not declared in this scope
   37 |         for (int i = 0; i < n; i++) {
      |                             ^
0_0_39787088_15380.cpp:37:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:37:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:37:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:37:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:37:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:37:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:37:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:37:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:37:25: error: 'i' does not name a type
   37 |         for (int i = 0; i < n; i++) {
      |                         ^
0_0_39787088_15380.cpp:37:32: error: 'i' does not name a type
   37 |         for (int i = 0; i < n; i++) {
      |                                ^
0_0_39787088_15380.cpp:40:9: error: 'cout' does not name a type
   40 |         cout << endl;
      |         ^~~~
0_0_39787088_15380.cpp:43:9: error: expected unqualified-id before 'for'
   43 |         for (int j = 0; j < m; j++) {
      |         ^~~
0_0_39787088_15380.cpp:43:29: error: 'm' was not declared in this scope
   43 |         for (int j = 0; j < m; j++) {
      |                             ^
0_0_39787088_15380.cpp:43:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:43:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:43:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:43:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:43:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:43:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:43:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:43:29: error: 'm' was not declared in this scope
0_0_39787088_15380.cpp:43:25: error: 'j' does not name a type
   43 |         for (int j = 0; j < m; j++) {
      |                         ^
0_0_39787088_15380.cpp:43:32: error: 'j' does not name a type
   43 |         for (int j = 0; j < m; j++) {
      |                                ^
0_0_39787088_15380.cpp:46:9: error: 'cout' does not name a type
   46 |         cout << endl;
      |         ^~~~
0_0_39787088_15380.cpp:49:13: error: redefinition of 'int count'
   49 |         int count = 0;
      |             ^~~~~
0_0_39787088_15380.cpp:16:13: note: 'int count' previously defined here
   16 |         int count = 0;
      |             ^~~~~
0_0_39787088_15380.cpp:50:9: error: expected unqualified-id before 'for'
   50 |         for (int i = 0; i < n; i++) {
      |         ^~~
0_0_39787088_15380.cpp:50:29: error: 'n' was not declared in this scope
   50 |         for (int i = 0; i < n; i++) {
      |                             ^
0_0_39787088_15380.cpp:50:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:50:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:50:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:50:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:50:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:50:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:50:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:50:29: error: 'n' was not declared in this scope
0_0_39787088_15380.cpp:50:25: error: 'i' does not name a type
   50 |         for (int i = 0; i < n; i++) {
      |                         ^
0_0_39787088_15380.cpp:50:32: error: 'i' does not name a type
   50 |         for (int i = 0; i < n; i++) {
      |                                ^
0_0_39787088_15380.cpp:62:9: error: 'cout' does not name a type
   62 |         cout << count << endl;
      |         ^~~~
0_0_39787088_15380.cpp:64:9: error: 'cout' does not name a type
   64 |         cout << endl;  // Êä³ö¿ÕÐÐ
      |         ^~~~
0_0_39787088_15380.cpp:65:5: error: expected declaration before '}' token
   65 |     }
      |     ^
0_0_39787088_15380.cpp:66:5: error: expected unqualified-id before 'return'
   66 |     return 0;
      |     ^~~~~~
0_0_39787088_15380.cpp:67:1: error: expected declaration before '}' token
   67 | }
      | ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-15 18:37:59, Gzip enabled