Problem conductslip
User asbx
Submission Time 2024-01-02 07:21:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

conductslip.cpp: In function ‘int main()’:
conductslip.cpp:64:5: error: conflicting declaration ‘ll s’
64 | ll s,n;
| ^
conductslip.cpp:47:8: note: previous declaration as ‘ll s [(l + 1)]’
47 | ll s[l+1];
| ^
conductslip.cpp:64:7: error: conflicting declaration ‘ll n’
64 | ll s,n;
| ^
conductslip.cpp:46:10: note: previous declaration as ‘bool n [l]’
46 | bool n[l];
| ^
conductslip.cpp:65:14: error: incompatible types in assignment of ‘std::vector<long long int>::size_type’ {aka ‘long unsigned int’} to ‘ll [(l + 1)]’ {aka ‘long long int [(l + 1)]’}
65 | s=slip.size();
| ^
conductslip.cpp:66:16: error: incompatible types in assignment of ‘std::vector<long long int>::size_type’ {aka ‘long unsigned int’} to ‘bool [l]’
66 | n=noslip.size();
| ^
conductslip.cpp:67:11: error: conversion from ‘ll*’ {aka ‘lon