Submission #362681

# Submission time Handle Problem Language Result Execution time Memory
362681 2021-02-04T05:46:36 Z nighthallo Treasure (different grader from official contest) (CEOI13_treasure2) C++14
Compilation error
0 ms 0 KB
#include "treasure.h"

void findTreasure (int N) {
    int arr[101][101];

    for(int i = 1 ; i <= N ; i++){
        for(int j = 1 ; j <= N ; j++){
            if(countTreasure(i, j, i, j)){
                Report(i, j)
            }
        }
    }
}

Compilation message

treasure.cpp: In function 'void findTreasure(int)':
treasure.cpp:9:29: error: expected ';' before '}' token
    9 |                 Report(i, j)
      |                             ^
      |                             ;
   10 |             }
      |             ~                
treasure.cpp:4:9: warning: unused variable 'arr' [-Wunused-variable]
    4 |     int arr[101][101];
      |         ^~~