Problem | yogurt |
---|---|
User | NoobMugger420 |
Submission Time | 2025-02-21 13:20:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
yogurt.cpp: In function ‘int main()’:
yogurt.cpp:29:5: error: ‘x’ was not declared in this scope
29 | x = X;
| ^
yogurt.cpp:30:5: error: ‘y’ was not declared in this scope
30 | y = Y;
| ^
yogurt.cpp:35:5: error: expected primary-expression before ‘}’ token
35 | }
| ^
yogurt.cpp: At global scope:
yogurt.cpp:46:8: error: redefinition of ‘int main()’
46 | signed main() {
| ^~~~
yogurt.cpp:11:8: note: ‘int main()’ previously defined here
11 | signed main() {
| ^~~~
yogurt.cpp: In function ‘int main()’:
yogurt.cpp:62:27: error: expected ‘;’ before ‘}’ token
62 | res += (n/2)*b
| ^
| ;
63 | } else {
| ~
yogurt.cpp:64:23: error: expected ‘;’ before ‘}’ token
64 | res += n*a
|