Problem exam
User yq
Submission Time 2026-06-22 15:49:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp:2:9: error: macro names must be identifiers
2 | #define 11 long long
| ^~
exam.cpp: In function ‘int main()’:
exam.cpp:6:4: error: expected ‘;’ before ‘x’
6 | 11 x;
| ^~
| ;
exam.cpp:7:9: error: ‘x’ was not declared in this scope
7 | cin >> x;
| ^
exam.cpp:10:9: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘const char [12]’ to binary ‘operator<<’
10 | count << "Hello World";
| ~~~~~~^~~~~~~~~~~~~~~~
exam.cpp:13:5: error: expected ‘;’ before ‘A’
13 | 11 A,B;
| ^~
| ;
exam.cpp:14:10: error: ‘A’ was not declared in this scope
14 | cin >> A >> B;
| ^
exam.cpp:14:15: error: ‘B’ was not declared in this scope
14 | cin >> A >> B;
| ^