Problem exam
User Theo
Submission Time 2026-06-26 03:28:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
exam.cpp:5:2: note: in expansion of macro ‘int’
5 | int x;cin>>x;
| ^~~
exam.cpp:5:6: error: ‘x’ was not declared in this scope
5 | int x;cin>>x;
| ^
exam.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
exam.cpp:9:1: note: in expansion of macro ‘int’
9 | int A,B;cin>>A>>B;
| ^~~
exam.cpp:9:5: error: ‘A’ was not declared in this scope
9 | int A,B;cin>>A>>B;
| ^
exam.cpp:9:7: error: ‘B’ was not declared in this scope
9 | int A,B;cin>>A>>B;
| ^
exam.cpp:10:5: error: expected ‘;’ before ‘A’
10 | cout A*B;
| ^~
| ;
exam.cpp:11: