Submission #362681

#TimeUsernameProblemLanguageResultExecution timeMemory
362681nighthalloTreasure (different grader from official contest) (CEOI13_treasure2)C++14
Compilation error
0 ms0 KiB
#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 (stderr)

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];
      |         ^~~