QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#32943#141. 8 染色flowerCompile Error//C++1410.0kb2022-05-25 23:44:362023-01-15 14:36:21

詳細信息

Alice.code: In function ‘int main()’:
Alice.code:132:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  132 |         scanf("%d%lld%lld",&n,&lx,&ly);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Alice.code:135:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  135 |                 scanf("%s%d%d",st1+1,&s[i][1],&s[i][2]);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccyGXayJ.o: in function `main':
grader_Alice.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccDT5C1K.o:Alice.code:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccyGXayJ.o: in function `main':
grader_Alice.cpp:(.text.startup+0x148): undefined reference to `Alice(int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status