Problem | snail |
---|---|
User | Vinayak01 |
Submission Time | 2024-02-19 18:39:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
snail.cpp: In function ‘int main()’:
snail.cpp:29:2: error: expected ‘,’ or ‘;’ before ‘if’
29 | if(sum <= 0){
| ^~
snail.cpp:52:3: error: ‘day’ was not declared in this scope; did you mean ‘days’?
52 | day = days - 1;
| ^~~
| days
snail.cpp:56:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
56 | if( prefix[i] >= sum){
| ^~~
snail.cpp:69:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
69 | if( prefix[i] >= remainder){
| ^~~~~~~~~