Problem laptop
User swaggS4SB4R
Submission Time 2024-06-21 15:46:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

laptop.cpp: In function ‘int main()’:
laptop.cpp:8:8: error: ‘c’ was not declared in this scope
8 | for (c=0; c<T; c++)
| ^
laptop.cpp:9:12: error: ‘greatest’ was not declared in this scope
9 | if (c < greatest C){
| ^~~~~~~~
laptop.cpp:9:20: error: expected ‘)’ before ‘C’
9 | if (c < greatest C){
| ~ ^~
| )
laptop.cpp:12:12: error: expected primary-expression before ‘return’
12 | else (return 0);
| ^~~~~~
laptop.cpp:12:12: error: expected ‘)’ before ‘return’
12 | else (return 0);
| ~^~~~~~
| )
laptop.cpp:15:9: error: ‘c’ was not declared in this scope
15 | for (c=0; c<T; c++)
| ^
laptop.cpp:16:13: error: ‘greatest’ was not declared in this scope
16 | if (c < greatest c{
| ^~~~~~~~
laptop.cpp:16