QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#19421#2279. WellsqwqCompile Error//C++205.1kb2022-01-31 00:11:212022-05-18 04:06:44

详细

answer.code:148:6: error: expected unqualified-id before ‘try’
  148 | void try(int r) {
      |      ^~~
answer.code: In function ‘int main()’:
answer.code:234:28: error: expected ‘{’ before ‘(’ token
  234 |                         try(r);
      |                            ^
answer.code:234:28: error: expected ‘catch’ before ‘(’ token
answer.code:234:29: error: ‘r’ does not name a type
  234 |                         try(r);
      |                             ^
answer.code:234:31: error: expected ‘{’ before ‘;’ token
  234 |                         try(r);
      |                               ^
answer.code:235:9: error: ‘else’ without a previous ‘if’
  235 |         else {
      |         ^~~~
answer.code:184:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  184 |         scanf("%d%d", &n, &k);
      |         ~~~~~^~~~~~~~~~~~~~~~
answer.code:191:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  191 |                 scanf("%d%d", &i, &j), i--, j--;
      |                 ~~~~~^~~~~~~~~~~~~~~~