QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#585595#5145. Shortest Path3un_larryfuncCompile Error//C++239.9kb2024-09-23 21:24:302024-09-23 21:24:33

Details

answer.code:270:9: error: ‘cnt’ does not name a type; did you mean ‘int’?
  270 |         cnt=0;
      |         ^~~
      |         int
answer.code:271:9: error: expected unqualified-id before ‘for’
  271 |         for(int i=1;i<=len;i++){
      |         ^~~
answer.code:271:21: error: ‘i’ does not name a type
  271 |         for(int i=1;i<=len;i++){
      |                     ^
answer.code:271:28: error: ‘i’ does not name a type
  271 |         for(int i=1;i<=len;i++){
      |                            ^
answer.code:309:14: error: expected constructor, destructor, or type conversion before ‘(’ token
  309 |         solve(0);
      |              ^
answer.code:310:14: error: expected constructor, destructor, or type conversion before ‘(’ token
  310 |         solve(1);
      |              ^
answer.code:312:15: error: expected constructor, destructor, or type conversion before ‘(’ token
  312 |         printf("%d\n",Ans);
      |               ^
answer.code:313:5: error: expected declaration before ‘}’ token
  313 |     }
      |     ^
answer.code:315:5: error: expected unqualified-id before ‘return’
  315 |     return 0;
      |     ^~~~~~
answer.code:316:1: error: expected declaration before ‘}’ token
  316 | }*/
      | ^
answer.code:316:3: error: expected unqualified-id before ‘/’ token
  316 | }*/
      |   ^
answer.code: In function ‘int main()’:
answer.code:65:16: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   65 |     int T;scanf("%d",&T);
      |           ~~~~~^~~~~~~~~
answer.code:67:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   67 |         scanf("%d%d%d",&n,&m,&lim);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~
answer.code:71:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   71 |             scanf("%d%d%d",&x,&y,&c);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~