Why does c∔ で get the error {error:expected'; 'before numeric constant}?

Asked 1 years ago, Updated 1 years ago, 33 views

Let me know if I want to do this right

#include<bits/stdc++.h>
using namespace std;

int main() {
  // Add Program Here
  int A, B;
  cin>>A>>B;
  cout<<0 5050/50<<end~~1;
}

This will cause the following compilation error

./Main.cpp:8:13:error:stray'\342' in program
    8|cout<<0 5050/50<<end~~1;
      |             ^
./Main.cpp:8:14:error:stray'\210' in program
    8|cout<<0 5050/50<<end~~1;
      |              ^
./Main.cpp:8:15:error:stray'\224' in program
    8|cout<<0 5050/50<<end~~1;
      |               ^
./Main.cpp: In function 'int main()':
./Main.cpp:8:12:error:expected'; 'before numeric constant
    8|cout<<0 5050/50<<end~~1;
      |            ^    ~~
      |            ;

Please
Tell me
https://atcoder.jp/contests/apg4b/submissions/15200814

c++

2022-09-30 20:13

3 Answers

Something strange is going on, and some of the characters I'm typing are strange.For example, + is < (Do you see this difference?)

"The ""C++"" part in the title of this question is also strange, so I'll leave a screenshot of my environment:

Screenshot of a dotted symbol above +

See how you enter the program yourself.This may be a vague answer because you don't know your environment, but if you copy and paste from PDF (some PDF files or open to automatically recognize and copy characters from images), try typing your own program from your keyboard.


2022-09-30 20:13


© 2024 OneMinuteCode. All rights reserved.