QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#602697#3426. Icons in the ToolbarZhangYiDeCompile Error//C++20595b2024-10-01 12:10:012024-10-01 12:10:03

详细

answer.code: In function ‘int main(int, const char**)’:
answer.code:5:32: error: expected ‘;’ before ‘int’
    5 |    int n; cin >> n;     9          int n; cin >> n;
      |                          ^~~~~~~   ~~~
      |                                ;
answer.code:20:2: error: expected ‘}’ at end of input
   20 | }
      |  ^
answer.code:12:27: note: to match this ‘{’
   12 | for(int i = 0; i < n; i++){
      |                           ^
answer.code:20:2: error: expected ‘}’ at end of input
   20 | }
      |  ^
answer.code:4:39: note: to match this ‘{’
    4 | int main(int argc, char const *argv[]){
      |                                       ^