Submission #2867381


Source Code Expand

#include <bits/stdc++.h>

using namespace sdd;
int main(){
  int a,b;
  cin >> a;
  cin >> b;
  if(a+b>9) cout << "error" << endl;
  else cout << a+b << endl;
}

Submission Info

Submission Time
Task A - Restricted
User sarugami
Language C++14 (GCC 5.4.1)
Score 0
Code Size 171 Byte
Status CE

Compile Error

./Main.cpp:3:17: error: ‘sdd’ is not a namespace-name
 using namespace sdd;
                 ^
./Main.cpp:3:20: error: expected namespace-name before ‘;’ token
 using namespace sdd;
                    ^
./Main.cpp: In function ‘int main()’:
./Main.cpp:6:3: error: ‘cin’ was not declared in this scope
   cin >> a;
   ^
./Main.cpp:6:3: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:74:0,
                 from ./Main.cpp:1:
/usr/include/c++/5/iostream:60:18: note:   ‘std::cin’
   extern istream cin;  /// Linked to standard input
                  ^
./Main.cpp:8:13: error: ‘cout’ was not declared in this scope
   if(a+b>9) cout << "error" << endl;
             ^
./Main.cpp:8:13: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:74:0,
                 from ./Main.cpp:1:
/usr/include/c++/5/iostream:61:18: note:   ‘std::cout’
   extern ostream cout;  /// Linked to standard output
                  ^
./Main.cp...